Skip to content

Conversation

@holiman
Copy link
Contributor

@holiman holiman commented Jun 18, 2019

When the miner (not mining) receivew event feeds from the txpool, it tries to add it to the pending state. Most often, the pending state is already full, and new transactions does not actually make it into the pending block. If that happens, we can avoid updating the snapshot, which is a pretty expensive operations, creating a full new block (deep copying and hashing) and deep-copying the state.

@holiman holiman requested a review from rjl493456442 June 18, 2019 11:58
@karalabe karalabe added this to the 1.9.0 milestone Jun 18, 2019
@holiman
Copy link
Contributor Author

holiman commented Jun 19, 2019

Added early check if pending block is full. Will put this up for comparison against master

Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

LGTM

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