Skip to content

Commit

Permalink
fix miners reward in solo
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry1603 committed Apr 10, 2023
1 parent 5eed030 commit 64f17a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/xdag/mine/manager/AwardManagerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ private double precalculatePayments(Bytes32 nonce, int index, PayData payData) {
payData.prevDiffSums += prev_diff.get(i);

if (payData.rewardMiner == null
&& (compareTo(nonce.reverse().toArray(), 8, 24, miner.getAddressHash().toArray(), 8, 24) == 0)) {
&& (compareTo(nonce.toArray(), 0, 20, miner.getAddressHashByte(), 0, 20) == 0)) {
payData.rewardMiner = new byte[32];
payData.rewardMiner = miner.getAddressHash().toArray();
// 有可以出块的矿工 分配矿工的奖励
Expand Down

0 comments on commit 64f17a9

Please sign in to comment.