Magickbase / neuron-public-issues

Neuron Issues
4 stars 3 forks source link

Dev network show mistake sync status #359

Open yanguoyu opened 4 months ago

yanguoyu commented 4 months ago

When starting a dev blockchain with Neuron, the sync status always shows not start sync yet. This reason is caused by https://github.com/nervosnetwork/ckb/tree/develop/rpc#net-sync_state always returns

{
  "jsonrpc":"2.0",
  "result":{"best_known_block_number":"0x0","best_known_block_timestamp":"0x0","fast_time":"0x3e8","ibd":false,"inflight_blocks_count":"0x0","low_time":"0x5dc","normal_time":"0x4e2","orphan_blocks_count":"0x0"},
  "id":42
}

Because the calculated sync status needs best_known_block_number which always keeps 0x0, the sync status always shows not start yet

Danie0918 commented 4 weeks ago

@devchenyan Any update?

devchenyan commented 3 weeks ago

ckb issue: https://github.com/nervosnetwork/ckb/issues/4472

devchenyan commented 3 weeks ago

https://github.com/nervosnetwork/neuron/pull/3183