Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Josh Wilcox
crown-core
Commits
c0923454
Commit
c0923454
authored
7 years ago
by
Volodymyr Shamray
Browse files
Options
Download
Email Patches
Plain Diff
Change final budget submission threshold
In accordance to code review comments Issue #110
parent
8d587d79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/masternode-budget.cpp
+3
-1
src/masternode-budget.cpp
with
3 additions
and
1 deletion
+3
-1
src/masternode-budget.cpp
View file @
c0923454
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help