Skip to content

Commit

Permalink
Merge pull request #435 from nimiq-network/jeff/miner_fix
Browse files Browse the repository at this point in the history
Quick fix for mining halt issue
  • Loading branch information
Curd Becker authored Aug 26, 2018
2 parents 6b103d1 + 0437de4 commit 780390d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/generic/consensus/base/account/Accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class Accounts extends Observable {
const toBePruned = [];
for (const tx of transactions) {
const senderAccount = this._getSync(tx.sender, undefined, tree);
if (senderAccount.isToBePruned()) {
if (senderAccount.isToBePruned() && toBePruned.findIndex((acc) => acc.address.equals(tx.sender)) == -1) {
toBePruned.push(new PrunedAccount(tx.sender, senderAccount));
}
}
Expand Down

0 comments on commit 780390d

Please sign in to comment.