Following #53 , the sync operation in Sync is by far the slowest operation when casting a ballot.
Current operation:
send the whole chain to all nodes after every block
the nods count the blocks, and if they have missing blocks, request them
finally the leader sends the block LINKS to the nodes
Desired operation:
nodes request sync only when:
they startup
a request for signing a block comes in, and the node doesn't know this block
Current results:
with the current fastsync algorithm, the 1000th ballot cast takes 700ms instead of 5.5s using the old syncing algorithm
Answered Question:
is there a catchup mechanism for the global state? If a node joins the network very late, can it simply download the global state and the links to the last block? -> no, this is not possible at the moment.
Following #53 , the sync operation in Sync is by far the slowest operation when casting a ballot.
Current operation:
Desired operation:
Current results:
Answered Question: