Skip to content

Conversation

@tmcgroul
Copy link
Contributor

this change supposed to retry getBlock request if amount of transactions is suspiciously small

let validator = getResultValidator(nullable(GetBlock))
let block = validator(result)
if (this.txThreshold && block != null && block.transactions != null) {
let transactions = block.transactions.filter(tx => !isVoteTransaction(tx))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad i didn't understand my measurements at first. it doesn't take ~30ms to filter it's just ~0.030ms in average

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants