Karl-Johan Alm
46c184a50e
signet: update genesis hash to use new POW-valid version
5 years ago
trueptolemy
cdbfa4229c
bitcoin: Add the `cli_min_supported_version` field in `chainparams`
Set the min supported numeric version of cli as 150000.
5 years ago
Karl-Johan Alm
918e130448
add signet support
6 years ago
Karl-Johan Alm
ff2bfe3bdb
dynamically generate string of network names
6 years ago
trueptolemy
285da33e9e
Chainparam: Add 'bip70_name' field for blockchain
'bip70_name' is corresponding to the 'chain' field of
the API 'getblockchaininfo'.
At the beginning of lightningd, we use the 'chain' field of 'getblockchaininfo' to check if we are on right blockchain.
6 years ago
Christian Decker
6d618511fc
chainparams: Add p2pkh and p2sh versions to chinparams
Signed-off-by: Christian Decker <decker.christian@gmail.com>
Co-authored-by: bisoge <bisoge@gmx.de>
6 years ago
trueptolemy
92c08cd861
Fix the version of bip32 private_key generation
We set the version BIP32_VER_TEST_PRIVATE for testnet/regtest
BIP32 privkey generation with libwally-core, and set
BIP32_VER_MAIN_PRIVATE for mainnet.
For litecoin, we also set it like bitcoin else.
6 years ago
Rusty Russell
02faadfb93
amount: make it work with gcc-4.8.
```
In file included from bitcoin/chainparams.h:7:0,from bitcoin/chainparams.c:1:
./common/amount.h:36:11: error: initializer element is not constant
((struct amount_sat){(constant) + AMOUNT_MUST_BE_CONST(constant)})
^
bitcoin/chainparams.c:20:21: note: in expansion of macro ‘AMOUNT_SAT’
.max_funding = AMOUNT_SAT((1 << 24) - 1),
^
./common/amount.h:36:11: error: (near initialization for ‘networks[0].max_funding’)
((struct amount_sat){(constant) + AMOUNT_MUST_BE_CONST(constant)})
^
bitcoin/chainparams.c:20:21: note: in expansion of macro ‘AMOUNT_SAT’
.max_funding = AMOUNT_SAT((1 << 24) - 1),
```
Fixes : #2404
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
6 years ago
Rusty Russell
85b8b25749
bitcoin/chainparams: use amount_sat / amount_msat
Simple changes, but ripples through the code.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
6 years ago
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