Christian Decker
9e333f2416
elements: Add liquidv1 mainnet chainparams
...
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-10-03 04:32:57 +00:00
Christian Decker
cd93a855ce
elements: Give pytest some information about the test chain
...
We are checking against chain-dependent constants, so let's make sure we are
using the ones for the correct chain.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-10-03 04:32:57 +00:00
Christian Decker
a300dea7e6
elements: Global variable whether we are running on elements
...
Using a global variable is a bit lazy, but weaving the network type through
the entire stack is a daunting task. Maybe we can make that happen at a later
stage.
Most of the changes in `chainparams.c` are just formatting the
`genesis_blockhash` a bit nicer (`clang-format` to the rescue).
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-10-03 04:32:57 +00:00
Christian Decker
b9d7731100
chainparams: Add liquid-regtest as a supported network
...
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-10-03 04:32:57 +00:00
Karl-Johan Alm
46c184a50e
signet: update genesis hash to use new POW-valid version
2019-08-19 07:09:06 +00:00
trueptolemy
cdbfa4229c
bitcoin: Add the cli_min_supported_version
field in chainparams
...
Set the min supported numeric version of cli as 150000.
2019-07-30 17:38:54 +08:00
Karl-Johan Alm
918e130448
add signet support
2019-07-22 16:38:32 -05:00
Karl-Johan Alm
ff2bfe3bdb
dynamically generate string of network names
2019-07-22 16:38:32 -05:00
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.
2019-07-04 16:13:09 +02:00
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>
2019-05-01 12:37:30 +02:00
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.
2019-03-18 02:47:04 +00:00
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>
2019-02-27 23:12:50 +00:00
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>
2019-02-21 08:01:37 +00:00
Christian Decker
e10cde3516
chainparams: Remove index from chainparams
...
We no longer use it to reference chainparams, so we can remove it completely.
2018-09-14 21:18:11 +02:00
Christian Decker
f417dfa0e1
chainparams: Always retrieve chainparams by the chain_hash
2018-09-14 21:18:11 +02:00
Christian Decker
2d7e603ac1
chainparams: Move the BOLT2 quote to the chainparams where we set it
2018-09-14 21:18:11 +02:00
Christian Decker
8d95917e7c
chainparams: Add max_funding_satoshi and max_payment_msat to chainparams
2018-09-14 21:18:11 +02:00
Saibato
09407b9fd8
fix Litecoin testnet bip173 name
...
Signed-off-by: Saibato <saibato.naga@protonmail.com>
2018-05-03 14:09:50 +02:00
nicolas.dorier
e36cf354aa
Update when_lightning_became_cool for LTC
2018-04-27 13:59:19 +02:00
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>
2018-02-16 13:07:12 +01:00
Luca Vaccaro
4dac2da8fc
Fix litecoin mainnet & testnet chainparams
2018-02-14 15:26:27 +01:00
William Casarin
b30fb952e6
chainparams: fix regtest bip173_name
...
regtest bech32 hrp is bcrt, not tb
Signed-off-by: William Casarin <jb55@jb55.com>
2018-02-06 01:37:58 +00:00
Luca Vaccaro
af26c91a2c
Add litecoin testnet support
2018-01-28 13:56:28 +01:00
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>
2017-12-21 11:05:38 +00:00
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>
2017-11-01 01:09:23 +00:00
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>
2017-09-05 00:35:38 +02:00
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.
2017-08-13 13:57:48 +09:30
Christian Decker
5fdb8a58aa
fix: Addressing feedback from PR #192
2017-07-12 13:16:00 +02:00
Christian Decker
df056e5973
bitcoin: Added chainparams grouping blockchain specific parameters
2017-07-12 11:30:23 +09:30