-
Notifications
You must be signed in to change notification settings - Fork 457
Fix transactionInPool bug - Closes #707 #821
Conversation
Is this done and ready to be reviewed? If not can you close and open when it is ready for review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please solve the comments left. Also please rename the test file pool.js
to transactionPool.js
as logic/pool.js
file doesn't exist
test/unit/logic/transactions/pool.js
Outdated
// Init transaction logic | ||
async.auto({ | ||
accountLogic: function (cb) { | ||
modulesLoader.initLogicWithDb(AccountLogic, cb); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use initLogic
instead of initLogicWithDb
as database is not used in the test
test/unit/logic/transactions/pool.js
Outdated
|
||
describe('receiveTransactions', function () { | ||
|
||
it('should do nothing for empty array', function (done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returing {} is not doing nothing
New commit addressing requested comments :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing requested changes. One of them is still left - rename the test file pool.js
to transactionPool.js
We will unify that in the refactor.
@diego-G log an issue to track the unification. |
19e3634
to
14ba571
Compare
14ba571
to
463b72e
Compare
6b0ea99
to
ef17865
Compare
ef17865
to
40c2dbf
Compare
…707-fix_transactionInPool # Conflicts: # test/unit/logic/transactionPool.js
logic/transactionPool.js
Outdated
@@ -101,7 +101,9 @@ TransactionPool.prototype.transactionInPool = function (id) { | |||
self.bundled.index[id], | |||
self.queued.index[id], | |||
self.multisignature.index[id] | |||
].filter(Boolean).length > 0; | |||
].filter(function (inList) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9f1ac7f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving. @4miners and @karmacoma previously approved.
Due to the refactor on #561 is taking too long, we include small temporal fix with some tests. Hence it won't bother another builds anymore.
Closes #707