devtools: fixup chainparams crash (global now)

This commit is contained in:
lisa neigut 2019-11-18 11:17:49 -06:00 committed by Rusty Russell
parent c5e79432e6
commit a3ef71b182

View File

@ -52,10 +52,10 @@ int main(int argc, char *argv[])
const struct utxo **utxomap; const struct utxo **utxomap;
struct bitcoin_signature sig; struct bitcoin_signature sig;
struct bitcoin_txid txid; struct bitcoin_txid txid;
const struct chainparams *chainparams = chainparams_for_network("bitcoin");
u8 **witnesses; u8 **witnesses;
setup_locale(); setup_locale();
chainparams = chainparams_for_network("bitcoin");
secp256k1_ctx = secp256k1_context_create(SECP256K1_CONTEXT_VERIFY | secp256k1_ctx = secp256k1_context_create(SECP256K1_CONTEXT_VERIFY |
SECP256K1_CONTEXT_SIGN); SECP256K1_CONTEXT_SIGN);