|
|
@ -92,7 +92,7 @@ module.exports = class TransactionStateManager extends EventEmitter { |
|
|
|
// or rejected tx's.
|
|
|
|
// or rejected tx's.
|
|
|
|
// not tx's that are pending or unapproved
|
|
|
|
// not tx's that are pending or unapproved
|
|
|
|
if (txCount > txHistoryLimit - 1) { |
|
|
|
if (txCount > txHistoryLimit - 1) { |
|
|
|
let index = transactions.findIndex((metaTx) => { |
|
|
|
const index = transactions.findIndex((metaTx) => { |
|
|
|
return this.getFinalStates().includes(metaTx.status) |
|
|
|
return this.getFinalStates().includes(metaTx.status) |
|
|
|
}) |
|
|
|
}) |
|
|
|
if (index !== -1) { |
|
|
|
if (index !== -1) { |
|
|
|