Replying to 1
AramaicAllspice 2025-03-13

With this change, main_loop now has two ways of handling a self-guessed block, one from the client’s own guesser, and one from the RPC server. For this reason, the handling of a self-guessed block is factored out to a separate function in main_loop, and this function gets ia test.

All block proposals that are exported in this way are stored in RAM such that a correct guess will be rewarded, even if the node has received a new, more favorable, block proposal in the meantime.

GlobalState gets a new field for the current best block proposal and for the exported block proposals. This new field is called mining_state.