Christian Decker
e10cde3516
chainparams: Remove index from chainparams
We no longer use it to reference chainparams, so we can remove it completely.
6 years ago
Christian Decker
f417dfa0e1
chainparams: Always retrieve chainparams by the chain_hash
6 years ago
Christian Decker
2d7e603ac1
chainparams: Move the BOLT2 quote to the chainparams where we set it
6 years ago
Christian Decker
8d95917e7c
chainparams: Add max_funding_satoshi and max_payment_msat to chainparams
6 years ago
Saibato
09407b9fd8
fix Litecoin testnet bip173 name
Signed-off-by: Saibato <saibato.naga@protonmail.com>
7 years ago
nicolas.dorier
e36cf354aa
Update when_lightning_became_cool for LTC
7 years ago
Rusty Russell
6620305606
wallet: use last_processed_block to determine scan start.
With fallback depending on chainparams: this means the first upgrade
will be slow, but after that it'll be fast.
Fixes : #990
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Luca Vaccaro
4dac2da8fc
Fix litecoin mainnet & testnet chainparams
7 years ago
William Casarin
b30fb952e6
chainparams: fix regtest bip173_name
regtest bech32 hrp is bcrt, not tb
Signed-off-by: William Casarin <jb55@jb55.com>
7 years ago
Luca Vaccaro
af26c91a2c
Add litecoin testnet support
7 years ago
Rusty Russell
810abb6b21
bitcoin: create new wrapper type bitcoin_blkid, log backward endianness.
It's just a sha256_double, but importantly when we convert it to a
string (in type_to_string, which is used in logging) we use
bitcoin_blkid_to_hex() so it's reversed as people expect.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
58604a0497
chainparams: add bip173 name.
Google lead me to a discussion about litecint, it suggested they would use
'ltc' and I don't really care.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
56d89b02c7
chainparams: fix order of chain hashes.
See https://github.com/lightningnetwork/lightning-rfc/issues/237
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Christian Decker
f085a474b2
fix: Only add cli_args if we have some defined
This was causing calls to `bitcoin-cli` to fail on mainnet since it
was interpreting the empty string as the RPC method to call.
7 years ago
Christian Decker
5fdb8a58aa
fix: Addressing feedback from PR #192
8 years ago
Christian Decker
df056e5973
bitcoin: Added chainparams grouping blockchain specific parameters
8 years ago