snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

[Optimize] Store pending certificates to proposal cache file

Open raychu86 opened this issue 1 year ago • 0 comments

Motivation

This PR is an extension of https://github.com/AleoHQ/snarkOS/pull/3239 that addresses https://github.com/AleoHQ/snarkOS/issues/3171.

This PR adds to the functionality of the ProposalCache by adding pending certificates (that have not yet been included in ledger) to the list of attributes to store to file.

This should increase the robustness of reboots because nodes should now not need to rely on PrimaryPings to catch up to other peers in a reboot scenario. Initial testing has observed successful restarts (in the honest case) for any number of validators (including scenarios of more than f+1 validators rebooting).

Test Plan

Burn-in tests and additional reboot testing needs to be done to ensure robustness of this change.

Related PRs

Extension of https://github.com/AleoHQ/snarkOS/pull/3239

raychu86 avatar May 07 '24 01:05 raychu86