Resolve "PoC: Automatic finalized budget submission"
Proof of concept for automatic budget finalization. Needs to be checked in testnet (to know if it even works at all)
PoC algorithm description:
- There is still a possibility to submit final budget manually, with a wallet configured with
budgetvotemode=suggest
. However, now there is an automatic option as well. - Automatically submitted final budgets are submitted by masternodes
- Masternode will submit its budget only if it's a winning masternode (see
CBudgetManager::SubmitFinalBudget
) - Masternode will not burn collateral CRW, instead it's required to sign the budget suggestion
- Having received the budget suggestion a node will check its validity. If collateral tx hash is 0, a valid signature is required (see
CFinalizedBudget::IsValid
) - If the budget is signed by an unknown masternode, the node will ask the peer for the masternode (see
CBudgetManager::ProcessMessage
)
If the testing shows the viability of the algorithm, we will consider polishing the code to production-ready grade and including it in the release