utxostack / ckb-bitcoin-spv-service

Synchronize headers to Bitcoin SPV clients running on the CKB chain.
MIT License
1 stars 4 forks source link

Refactor the `init` command: use bitcoin hash instead of bitcoin height to refer the start block. #22

Open yangby-cryptape opened 5 months ago

yangby-cryptape commented 5 months ago

Description

Replace the --bitcoin-start-height with --bitcoin-start-hash, to avoid the fork blocks.

https://github.com/ckb-cell/ckb-bitcoin-spv-service/blob/fc5b5b8d29c9c239c225755da60c8c88196256f1/src/cli/init.rs#L59-L65