opening: Use the correct chainparams to open a channel

We were using the bitcoin genesis blockhash for all networks, which is
not correct, and would result in the open being aborted when talking
to other implementations.

Reported-by: @sstone and @pm47
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2017-07-11 15:50:10 +02:00
committed by Rusty Russell
parent fbc2b65a3d
commit 83c8c3fc52
3 changed files with 9 additions and 11 deletions

View File

@@ -22,8 +22,6 @@ struct bitcoin_block {
struct bitcoin_tx **tx;
};
const struct sha256_double genesis_blockhash;
struct bitcoin_block *bitcoin_block_from_hex(const tal_t *ctx,
const char *hex, size_t hexlen);