Skip to content
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

[Bug Report]import_block banard and main error #3815

Open
nkysg opened this issue Dec 10, 2022 · 2 comments
Open

[Bug Report]import_block banard and main error #3815

nkysg opened this issue Dec 10, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nkysg
Copy link
Collaborator

nkysg commented Dec 10, 2022

Bug Report

  1. barnard
import_block.sh barnard ~/.starcoin/barnard

It shows that

current number 8841542, import [8911543,8921542] block number
load blocks from file use time: 65
Error: Verify block header failed: Invalid block: Unexpect block number, expect:8841543, got: 8911543

see the block_list has gap

block_8831543_8841542.csv
block_8911543_8921542.csv

2.main

import_block.sh main ~/.starcoin/main

It shows that

current number 8905514, import [8975515,8985514] block number
load blocks from file use time: 85
Error: Verify block header failed: Invalid block: Unexpect block number, expect:8905515, got: 8975515.

could we skip it?
Starcoin version:
master

Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

@nkysg nkysg added the bug Something isn't working label Dec 10, 2022
@yourmoonlight
Copy link
Collaborator

Barnard and main sync block manifest file had been fixed.
However export snapshot cmd seems not working properly, we can dig the reason from here:

chain height 9479187 snapshot block cur height 9479040 old height 8908080
state_node nums 55624
state_node_prev nums 55624
export snapshot use time: 986

manifest file

acc_node_block 9479040 0xd6f6058fed48734b542ffaa8dd5d5db7b9faa0fc912cd9fc12d4fcce859eefde
block 9479040 0x74935e665469eb3a00e1295f13fc6dc005ea512878e176b1089c4172c739501c
block_info 9479040 0x74935e665469eb3a00e1295f13fc6dc005ea512878e176b1089c4172c739501c
acc_node_transaction 10529903 0x7a58bc2472606305a0ece1b047219af56ccef3e560beea84d5b562400c1c8d54
state_node 55624 0x8a0f07069217c460fadd98c5e218241fee894b947c0ae3ea49c62fa32f382de0
state_node_prev 55624 0x19b9e9966aec90914907b9b031affdcef9adfa338057ad2198b7cd4054d2f227

actual result

wc -l acc_node_block block block_info acc_node_transaction state_node state_node_prev
    9669040 acc_node_block
    9668040 block
    9668040 block_info
   10751903 acc_node_transaction
      55624 state_node
      55624 state_node_prev

@welbon
Copy link
Contributor

welbon commented Dec 29, 2022

current number 8905514, import [8975515,8985514] block number
load blocks from file use time: 85
Error: Verify block header failed: Invalid block: Unexpect block number, expect:8905515, got: 8975515.

It looks like an attempt to jump from the block number 8905515 to 8975515, with 70,000 of blocks in the middle, this is obviously impossible to ignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants