Dajiban / digibytewallet-core

SPV bitcoin C library
MIT License
3 stars 6 forks source link

start sync from specific block added #15

Closed SmartArray closed 6 years ago

SmartArray commented 6 years ago

BPPeerManagerMainNetNewEx adds the possibility to create an instance of BRPeerManager using a custom sync start block.

You can create this block as follows:

BRMerkleBlock* test = BRMerkleBlockNew(); test->blockHash = UInt256Reverse(uint256("7497ea1b465eb39f1c8f507bc877078fe016d6fcb6dfad3a64c98dcc6e1e8496")); test->height = 0; test->timestamp = 1389388394; test->target = 0x1e0ffff0;