Gossipd: cleanup extra repeated code

This commit is contained in:
trueptolemy 2019-05-06 15:04:10 +08:00 committed by Rusty Russell
parent bc5dbb6a80
commit fefe7dfbab

View File

@ -1362,9 +1362,6 @@ bool routing_add_channel_announcement(struct routing_state *rstate,
if (taken(msg)) if (taken(msg))
tal_steal(tmpctx, msg); tal_steal(tmpctx, msg);
if (taken(msg))
tal_steal(tmpctx, msg);
if (!fromwire_channel_announcement( if (!fromwire_channel_announcement(
tmpctx, msg, &node_signature_1, &node_signature_2, tmpctx, msg, &node_signature_1, &node_signature_2,
&bitcoin_signature_1, &bitcoin_signature_2, &features, &chain_hash, &bitcoin_signature_1, &bitcoin_signature_2, &features, &chain_hash,