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

avoid checking atxs in the loop in atxsyncer

dshulyak opened this issue · comments

on startup atx syncer checks locally if what in atx_sync_state table is consistent with atxs. this is suboptimal and instead we can maintain a counter of download atxs together with last_sync timestamp, and on startup check that this counter is equal to what we have in atx_sync_state.