-
Notifications
You must be signed in to change notification settings - Fork 455
Do not process bundled transactions while node is syncing - Closes #2398 #2607
Do not process bundled transactions while node is syncing - Closes #2398 #2607
Conversation
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.
Don't we need to adjust unit tests?
It was conflicting with other tests after moving the transaction pool jobs registration to bind function.
9a4d045
to
1eb6c0d
Compare
@@ -222,7 +222,7 @@ class Round { | |||
} | |||
}); | |||
} | |||
return Promise.resolve(); |
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.
?
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.
@yatki strongly suggested to return null in these kind of cases instead of resolving promises. Test became unstable since we introduce this.
@@ -82,7 +82,7 @@ module.exports = function(configurations, network) { | |||
// to update across all nodes. | |||
setTimeout(() => { | |||
resolve(); | |||
}, 5000); | |||
}, 10000); |
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.
?
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.
Network test suite is failing due to the security time to wait for some actions is not enough. I've seen the same problem in propagation scenario.
…ons_while_syncing
How to test it?
mocha test/unit/logic/transaction_pool.js
Review checklist