mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
onchaind: Eliminate a chicken-and-egg problem with msg parsing
Turns out that if we have the init message contain both the chainparams as well as a transaction that needs to be parsed we need to set the parser to elements mode before we reach the transaction...
This commit is contained in:
committed by
Rusty Russell
parent
fad9a74662
commit
314622028f
@@ -513,6 +513,7 @@ enum watch_result onchaind_funding_spent(struct channel *channel,
|
||||
|
||||
msg = towire_onchain_init(channel,
|
||||
&channel->their_shachain.chain,
|
||||
chainparams->is_elements,
|
||||
&chainparams->genesis_blockhash,
|
||||
channel->funding,
|
||||
&channel->channel_info.old_remote_per_commit,
|
||||
|
||||
Reference in New Issue
Block a user