Skip to content

Commit

Permalink
Avoid misinterpreting new blocks as from the pool.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjos2372 committed Jul 11, 2021
1 parent 83b69dd commit dec694a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/burst/pool/pool/Pool.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ else if(cmd.equals("donate") && tokens.hasMoreTokens()) {
try {
Block[] blocks = nodeService.getBlocks(1, propertyService.getInt(Props.processLag) - 1).blockingGet();
for(Block b : blocks) {
Miner miner = storageService.getMiner(b.getGenerator());
if(miner != null)
if(myRewardRecipients.contains(b.getGenerator()))
ourNewBlocks.add(b);
}
}
Expand Down

0 comments on commit dec694a

Please sign in to comment.