spacemeshos / go-spacemesh

Go Implementation of the Spacemesh protocol full node. 💾⏰💪

Home Page:https://spacemesh.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ballots includes votes for layers that are outside of tortoise window size

dshulyak opened this issue · comments

when syncing from scratch there are many ballots with votes that can't be fully decoded due to lower window size.
there was an update where we reduced window from 10_000 to 4032, but some nodes apparently didn't do the update. also possible that the cause of this problem is something else.

2024-02-29T12:21:48.439+0100 DEBUG fetcher failed to get hash {"hint": "ballotDB", "hash": "aa166dcaa7", "errmsg": "fetch: ignore: decode ballot 28244/aa166dcaa7: tortoise: dependency missing: 3624e30ca1\ntortoise: dependency missing: evicted blocks. layer (24828) outside the window (evicted 24828)", "name": "fetcher"}

and then if such ballot was used as a base ballot the followup issue will

2024-02-29T12:30:12.587+0100 DEBUG fetcher failed to get hash {"hint": "ballotDB", "hash": "bf976232a9", "errmsg": "fetch: ignore: decode ballot 28879/bf976232a9: can't decode ballot bf976232a9", "name": "fetcher"}