e0d04af154
Add per-chain PoW fields to AbstractNet (DIFFICULTY_ADJUSTMENT_INTERVAL,
POW_TARGET_TIMESPAN, MAX_TARGET, MAX_ADJUSTMENT_FACTOR, POW_GENESIS_BITS)
with Bitcoin defaults so existing chains are unaffected.
Add BitcoinPurple and BitcoinPurpleTestnet as independent AbstractNet subclasses
with BTCP-specific parameters:
- 120-block retarget interval, 7200-second target timespan
- powLimit 0x1e0fffff, genesis nBits 0x1e0ffff0 (POW_GENESIS_BITS)
- P2PKH prefix 56 (0x38), P2SH 55 (0x37), WIF 0xb7, bech32 HRP "btcp"/"tbtcp"
- SLIP-0132 HD key headers identical to Bitcoin mainnet/testnet respectively
- ElectrumX default ports 50001/50002 (mainnet) and 60001/60002 (testnet)
Add chain data directories:
- electrum/chains/bitcoinpurple/{servers,checkpoints,fallback_lnnodes}.json
- electrum/chains/bitcoinpurple_testnet/{servers,checkpoints,fallback_lnnodes}.json
servers.json is populated with 5 known BTCP ElectrumX nodes (TCP 51001, SSL 51002)
33 lines
631 B
JSON
33 lines
631 B
JSON
{
|
|
"173.212.224.67": {
|
|
"pruning": "-",
|
|
"s": "51002",
|
|
"t": "51001",
|
|
"version": "1.4.2"
|
|
},
|
|
"144.91.120.225": {
|
|
"pruning": "-",
|
|
"s": "51002",
|
|
"t": "51001",
|
|
"version": "1.4.2"
|
|
},
|
|
"66.94.115.80": {
|
|
"pruning": "-",
|
|
"s": "51002",
|
|
"t": "51001",
|
|
"version": "1.4.2"
|
|
},
|
|
"89.117.149.130": {
|
|
"pruning": "-",
|
|
"s": "51002",
|
|
"t": "51001",
|
|
"version": "1.4.2"
|
|
},
|
|
"84.247.169.248": {
|
|
"pruning": "-",
|
|
"s": "51002",
|
|
"t": "51001",
|
|
"version": "1.4.2"
|
|
}
|
|
}
|