diff --git a/src/main/java/org/semux/config/AbstractConfig.java b/src/main/java/org/semux/config/AbstractConfig.java index 38b712ed9..d08bf68e3 100644 --- a/src/main/java/org/semux/config/AbstractConfig.java +++ b/src/main/java/org/semux/config/AbstractConfig.java @@ -159,11 +159,11 @@ public File getFile() { @Override public Amount getBlockReward(long number) { - if (number <= 10_000_000L) { + if (number <= 2_000_000L) { // ~2 years return SEM.of(3); - } else if (number <= 25_000_000L) { + } else if (number <= 6_000_000L) { // ~4 years return SEM.of(2); - } else if (number <= 40_000_000L) { + } else if (number <= 14_000_000L) { // ~8 years return SEM.of(1); } else { return ZERO; diff --git a/src/test/java/org/semux/config/MainnetConfigTest.java b/src/test/java/org/semux/config/MainnetConfigTest.java index 484d7c7b8..0ef27c9c3 100644 --- a/src/test/java/org/semux/config/MainnetConfigTest.java +++ b/src/test/java/org/semux/config/MainnetConfigTest.java @@ -48,11 +48,11 @@ public void testLoad() { @Test public void testBlockReward() { Amount total = LongStream - .rangeClosed(1, 100_000_000) + .rangeClosed(1, 20_000_000) .mapToObj(config::getBlockReward) .reduce(ZERO, Amount::sum); - assertEquals(SEM.of(75_000_000), total); + assertEquals(SEM.of(22_000_000), total); } @Test