Commit 05d4cc7a authored by Volodymyr Shamray's avatar Volodymyr Shamray

Fix submission block calculation

parent 694b1fef
......@@ -93,8 +93,9 @@ Value mnbudget(const Array& params, bool fHelp)
if (pindexPrev)
{
const int nextBlock = GetNextSuperblock(pindexPrev->nHeight);
if (nBlockStart >= nextBlock - GetVotingThreshold())
const int64_t submissionBlock = pindexPrev->nHeight + BUDGET_FEE_CONFIRMATIONS + 1;
const int64_t nextBlock = GetNextSuperblock(pindexPrev->nHeight);
if (submissionBlock >= nextBlock - GetVotingThreshold())
return "Sorry, your proposal can not be added as we're too close to the proposal payment. Please submit your proposal for the next proposal payment.";
}
......
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