nervosnetwork / ckb-light-client

CKB light client reference implementation
MIT License
14 stars 16 forks source link

after deleting the script, the light node will still synchronize the old block #136

Closed gpBlockchain closed 5 months ago

gpBlockchain commented 1 year ago

version: CKB Light Client 0.2.2

get_scripts

{script : a script ,height: 8000000}
{script : b script ,height: 1000000}

remove b script ,query get_scripts

{script : a lock ,height: 8000000}

But in the next period of time, the light nodes will still synchronize the data below 8000000 blocks example log

[2023-04-06T09:13:53Z WARN  ckb_light_client::protocols::status] BlockFilterProtocol.received BlockFilterHashes from SessionId(2), result Ignore(599): unknown start block number: 5744001, cached in (5746000,5748000], finalized starts at 8884000

example store data(after remove b script): store.tar.gz

gpBlockchain commented 1 year ago

store.tar.gz

gpBlockchain commented 5 months ago

https://github.com/nervosnetwork/ckb-light-client/commit/efd54dc268375248d77ac6e12ecc1be6aa7c3fb1