Browse Source

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>
travis-debug
Christian Decker 5 years ago
committed by Rusty Russell
parent
commit
9f3922344b
  1. 1
      onchaind/onchaind.c

1
onchaind/onchaind.c

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

Loading…
Cancel
Save