mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
Move getRewardByHeight from Block to BlockChain
This commit is contained in:
@@ -3,6 +3,7 @@ package org.qora.test.common;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.qora.block.Block;
|
||||
import org.qora.block.BlockChain;
|
||||
import org.qora.data.block.BlockData;
|
||||
import org.qora.repository.DataException;
|
||||
import org.qora.repository.Repository;
|
||||
@@ -12,7 +13,7 @@ public class BlockUtils {
|
||||
public static BigDecimal getNextBlockReward(Repository repository) throws DataException {
|
||||
int currentHeight = repository.getBlockRepository().getBlockchainHeight();
|
||||
|
||||
return Block.getRewardAtHeight(currentHeight + 1);
|
||||
return BlockChain.getInstance().getRewardAtHeight(currentHeight + 1);
|
||||
}
|
||||
|
||||
public static void orphanLastBlock(Repository repository) throws DataException {
|
||||
|
Reference in New Issue
Block a user