Skip to content

Limit input transaction dedup time - #45

Merged
heifner merged 1 commit into
mainfrom
limit-dedup
Mar 12, 2022
Merged

Limit input transaction dedup time#45
heifner merged 1 commit into
mainfrom
limit-dedup

Conversation

@heifner

@heifner heifner commented Feb 26, 2022

Copy link
Copy Markdown
Contributor
  • Respect the cpu-effort-percent while removing expired transactions from deduplication list.

@swatanabe

Copy link
Copy Markdown
Contributor

I'm pretty sure that extra expired transaction_objects do not affect consensus. Have you fully verified this?

If the timer expires, it will result in an empty block, right?

@heifner

heifner commented Feb 28, 2022

Copy link
Copy Markdown
Contributor Author

Yes, an empty block if timer expires, similar to if it expires in the other steps of the producer_plugin start_block.
As for consensus, I was also a bit worried, but these are input transactions that have succeeded. Extra transactions in the list would result in a duplicate transaction exception instead of an expired transaction (actually expired is checked before duplication check). Since either would only be during building of a block it should not affect consensus.

@swatanabe swatanabe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also, just to confirm, this is not a backport of changes to EOSIO and there is no conversation elsewhere that needs to be referenced?

@heifner

heifner commented Feb 28, 2022

Copy link
Copy Markdown
Contributor Author

This is not a backport, although EOSIO/eos could certainly use this change. I should push it up there as well.
The conversation was with Wax BPs on telegram.

@heifner

heifner commented Feb 28, 2022

Copy link
Copy Markdown
Contributor Author

A bit of more info about this. WAX was seeing BPs taking more than cpu-effort-percent time in removing duplicate transactions. Upgrading to EOSIO/eos 2.1.x with your improved chainbase fixed the problem for them. Since Mandel also has the newer chainbase presumably that would also fix their issue.

@heifner

heifner commented Feb 28, 2022

Copy link
Copy Markdown
Contributor Author

EOSIO/eos#11071

@heifner
heifner merged commit 64c7f61 into main Mar 12, 2022
@heifner
heifner deleted the limit-dedup branch March 12, 2022 23:45
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.

2 participants