-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SPV with minimal storage requirements and fast block headers sync time #1483
Comments
This Pull Request introduces new storage and bandwidth enhancements for starting_block_headerWhere to start block headers sync from. For BTC and similar coins, this must be a retarget header. Params - this parameters can be fetched from any block explorer for the coin, but it's good practice to get it from a trusted source
max_stored_block_headersMax number of block headers to keep in storage for verification Example configuration for {
"coin": "BTC",
"asset":"BTC",
"pubtype": 0,
"p2shtype": 5,
"wiftype": 128,
"segwit": true,
"bech32_hrp": "bc",
"txfee": 0,
"estimate_fee_mode": "ECONOMICAL",
"required_confirmations": 0,
"protocol": {
"type": "UTXO"
},
"spv_conf": {
"starting_block_header": {
"height": 2016,
"hash": "00000000a141216a896c54f211301c436e557a8d55900637bbdce14c6c7bddef",
"bits": 486604799,
"time": 1233063531,
},
"validation_params": {
"difficulty_check": true,
"constant_difficulty": false,
"difficulty_algorithm": "Bitcoin Mainnet"
}
}
} Example configuration for
cc. @shamardy |
cc. @smk762 |
Will this require updating the |
Last I checked, only |
@borngraced can u give an example for the genesis block header as the |
ok. spv_conf with genesis as starting block header "spv_conf": {
"starting_block_header": {
"height": 0,
"hash": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
"bits": 486604799,
"time": 1231006505
},
"validation_params": {
"difficulty_check": true,
"constant_difficulty": false,
"difficulty_algorithm": "Bitcoin Mainnet"
}
} |
I believe this has been implemented, additionally, there is a global issue for tracking SPV implementation #1612 . Closing this one. |
This is important to enable spv in mobile and web DEXes. Ref. #1471 (comment), #1339 (comment)
The text was updated successfully, but these errors were encountered: