Archive of the libbitcoin Slack #general channel.
node::channel, derived from network::channel so that tx/block state can be hung off of the channel without hacking it back into the network lib.
This uses a simple circular buffer of hashes. That can later be optimized using a circular cuckoo filter, reducing storage space and maybe search time. But it's trivial already, so no big deal.4.88 hrs to 900,000 blocks. Automatic snapshot at recent (block 903,646), taking 119 secs, and automatic prevouts pruning at current and coalesced (block 903,650) taking 438 ms. Shutdown in 49 secs. Given that blocks are still coming in and being validated out of order at recent and current, I added a coalesced condition. This state is that in which the top candidate is also the fork block (all relevant validations confirmed). Until there is no more activity this is a race, but assured when there are no more blocks pending.11GiB of additional storage, computed over every tx and prevout for each block.900,000, with client filters index, 4.80 hrs. Dropped 11 minutes. Also shutdown 50 secs, snapshot 136 secs, and pruned prevouts 302 ms. Store size with filters, to current top, 778 GiB. Additional for snapshot 13.6GiB.ubuntu@ubuntu:~$ source ~/bitcoin.sh
ubuntu@ubuntu:~$ newBitcoinKey 0x8010b1bb119ad37d4b65a1022a314897b1b3614b345974332cb1b9582cf03536
---
secret exponent: 0x8010B1BB119AD37D4B65A1022A314897B1B3614B345974332CB1B9582CF03536
public key:
X: 09BA8621AEFD3B6BA4CA6D11A4746E8DF8D35D9B51B383338F627BA7FC732731
Y: 8C3A6EC6ACD33C36328B8FB4349B31671BCD3A192316EA4F6236EE1AE4A7D8C9
compressed:
WIF: L1WepftUBemj6H4XQovkiW1ARVjxMqaw4oj2kmkYqdG1xTnBcHfC
bitcoin address: 1HV3WWx56qD6U5yWYZoLc7WbJPV3zAL6Hi
uncompressed:
WIF: 5JngqQmHagNTknnCshzVUysLMWAjT23FWs1TgNU5wyFH5SB3hrP
bitcoin address: 113Pfw4sFqN1T5kXUnKbqZHMJHN9oyjtgD
ubuntu@ubuntu:~$