Neptune-Crypto / neptune-core

anonymous peer-to-peer cash
Apache License 2.0
23 stars 7 forks source link

Dynamic batch-synchronization #81

Open aszepieniec opened 6 months ago

aszepieniec commented 6 months ago

If a block is found while a node is batch-synchronizing, it will not be sent as part of the batch-synchronization process. In this case, after synchronization is "complete", the "synchronized" node will be behind until a new block is found. The new block triggers another synchronization process. If the "synchronized" node is mining, it will be mining on top of a chain prefix not on top of the whole thing.

This undesirable behavior occurs only in the context of batch-synchronization. For single-block synchronization there is no problem as far as we know.