onchaind: Pass genesis hash to onchaind so it knows the chainparams

It'll be creating quite a few transactions and we will have to know which
params to use.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2019-07-30 16:24:13 +02:00 committed by Rusty Russell
parent d0708a483a
commit 9f3922344b

View File

@ -2662,6 +2662,7 @@ int main(int argc, char *argv[])
}
tx->chainparams = chainparams_by_chainhash(&chain_hash);
is_elements = tx->chainparams->is_elements;
status_debug("feerate_per_kw = %u", feerate_per_kw);
bitcoin_txid(tx, &txid);