Resolve "Governance doesn't work properly in testnet"
Closes #110 (closed)
- Fixed integer arithmetics in
CBudgetManager::IsTransactionValid
andCBudgetManager::IsBudgetPaymentBlock
- Made finalized budget to be submitted 8 blocks before the superblock instead of 2
- Reduced time for proposal to be established to 15 minutes
- Reduced target timespan for testnet to 6 hours. I expect it will make network to adjust difficulty more often and facilitate testing
Also refactored a few pieces of code:
- Added
const
to some methods and parameters - Removed exception specifications which fixes warnings on modern compilers
- Improved CBudgetDB constructor