Skip to content

Commit 99263ce

Browse files
Add blockheight check for reward change to prevent orphan rewards
1 parent 2173100 commit 99263ce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,9 +1666,12 @@ int64_t GetMasternodePayment(int nHeight, int64_t blockValue, int nMasternodeCou
16661666

16671667

16681668
int64_t ret = 0;
1669-
1669+
1670+
if( nHeight >= 440000 ) {
16701671
ret = blockValue * 0.7;
1671-
1672+
} else if (nHeight < 440000) {
1673+
ret = blockValue * 0.8;
1674+
}
16721675
return ret;
16731676
}
16741677

0 commit comments

Comments
 (0)