Skip to content

Commit

Permalink
Quick fix for mining halt issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffesquivels committed Aug 25, 2018
1 parent 6b103d1 commit 0437de4
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 0437de4

Please sign in to comment.