Skip to content

Commit

Permalink
Fix trying to register a new pubkey.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjos2372 committed Jan 7, 2023
1 parent 9b5f4d6 commit b22c195
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/burst/pool/pool/Pool.java
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ private void resetRound(MiningInfo newMiningInfo) {
try {
// First for the primary account
SignumAddress primaryAddress = burstCrypto.getAddressFromPassphrase(propertyService.getString(Props.passphrase));
primaryAddress.setPublicKey(null); // avoid trying to register a new public key
SignumAddress[] rewardRecipients = nodeService.getAccountsWithRewardRecipient(primaryAddress).blockingGet();
myRewardRecipients.clear();
myRewardRecipients.addAll(Arrays.asList(rewardRecipients));
Expand Down

0 comments on commit b22c195

Please sign in to comment.