Skip to content

Use the child of the best header to verify transactions #1545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2019
Merged

Use the child of the best header to verify transactions #1545

merged 1 commit into from
May 20, 2019

Conversation

sgkim126
Copy link
Contributor

@sgkim126 sgkim126 commented May 17, 2019

Currently, it does not matter because the header is used to get the CommonParams that doesn't depend on the block number. But the next patch will make it changeable.

@sgkim126 sgkim126 requested a review from majecty May 17, 2019 05:37
majecty
majecty previously approved these changes May 17, 2019
Copy link
Contributor

@majecty majecty left a comment

Choose a reason for hiding this comment

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

LGTM

In the previous implementation, the transaction expired after the parent
block is added in the pool and rejected during execution. This patch
makes mempool reject the transaction. So the expriation e2e tests are
adjusted.
@sgkim126
Copy link
Contributor Author

@majecty Please review it again. I fixed e2e tests.

Copy link
Contributor

@majecty majecty left a comment

Choose a reason for hiding this comment

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

LGTM

@mergify mergify bot merged commit 221cd23 into CodeChain-io:master May 20, 2019
@sgkim126 sgkim126 deleted the best branch May 20, 2019 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants