Skip to content

Commit

Permalink
Merge pull request #215 from cherry1603/develop
Browse files Browse the repository at this point in the history
fix miners reward in solo
  • Loading branch information
LucasMLK authored Apr 10, 2023
2 parents 4734086 + 64f17a9 commit 896fc11
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 896fc11

Please sign in to comment.