AleoNet / snarkOS

A Decentralized Operating System for ZK Applications
http://snarkos.org
Apache License 2.0
4.24k stars 2.59k forks source link

[Optimize] Add sync leniency for skipping REST solutions and transctions #3234

Closed raychu86 closed 3 months ago

raychu86 commented 3 months ago

Motivation

Previously we were skipping incoming REST transactions and solutions if the node was not synced. This adds a bit of leniency, so that these solutions/transactions will be processed as long as the node is within SYNC_LENIENCY of being synced.

Currently the SYNC_LENIENCY is set to 10 blocks.