Commit c0923454 authored by Volodymyr Shamray's avatar Volodymyr Shamray
Browse files

Change final budget submission threshold

In accordance to code review comments
Issue #110
parent 8d587d79
Showing with 3 additions and 1 deletion
+3 -1
......@@ -24,12 +24,14 @@ std::vector<CFinalizedBudgetBroadcast> vecImmatureFinalizedBudgets;
CAmount BlocksBeforeSuperblockToSubmitFinalBudget()
{
assert(GetBudgetPaymentCycleBlocks() > 10);
// Relatively 43200 / 30 = 1440, for testnet - equal to budget payment cycle
if (Params().NetworkID() == CBaseChainParams::MAIN)
return 1440 * 2; // aprox 2 days
else
return GetBudgetPaymentCycleBlocks();
return GetBudgetPaymentCycleBlocks() - 10; // 40 blocks for 50-block cycle
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment