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 guards for processing unconfirmed solutions #3225

Closed raychu86 closed 3 months ago

raychu86 commented 3 months ago

Motivation

This PR adds a few changes to improve syncing and reduce network spam:

  1. Clients perform solution verification in POST /broadcast/solution prior to solution propagation.
    • This reduces the propagation of invalid solutions on the network.
  2. Nodes do not process incoming unconfirmed solutions if they are syncing.
    • This reduces the resource load of nodes and lets them focus on syncing.
  3. Nodes do not process incoming unconfirmed transactions if they are syncing
    • This reduces the resource load of nodes and lets them focus on syncing.
iamalwaysuncomfortable commented 3 months ago

The following measures are being done to test this

The devnet run has completed, and analysis of it is forthcoming.