8000 add check logic on delegate tx by JayChoi1736 · Pull Request #1372 · klaytn/klaytn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

add check logic on delegate tx #1372

Merged
merged 17 commits into from
Jun 28, 2022
Merged

Conversation

JayChoi1736
Copy link
Contributor
@JayChoi1736 JayChoi1736 commented May 13, 2022

Proposed changes

  • add check logic on txpool when sender = feepayer

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or enhancement
  • Others

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING GUIDELINES doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes ($ make test)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Related issues

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

hqjang-pepper
hqjang-pepper previously approved these changes May 13, 2022
@JayChoi1736 JayChoi1736 self-assigned this May 13, 2022
Copy link
Member
@aidan-kwon aidan-kwon left a comment

Choose a reason for hiding this comment

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

Great!
Could you consider adding the same validation in

func (l *txList) Filter(senderBalance *big.Int, pool *TxPool) (types.Transactions, types.Transactions) {
?
The balance shoulde be checked affter the txpool additon. With each block insertion, txpool examine all transactions in pending/queue txs again. Check
func (pool *TxPool) reset(oldHead, newHead *types.Header) {

Co-authored-by: yumiel yoomee1313 <yumiel.ko@krustuniverse.com>
@JayChoi1736 JayChoi1736 requested a review from yoomee1313 May 24, 2022 05:00
< 8000 div class="js-timeline-item js-timeline-progressive-focus-container" data-gid="PRR_kwDOC2aNa846kYDS">
Copy link
Contributor
@ehnuje ehnuje left a comment

Choose a reason for hiding this comment

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

How about adding a test case for your change?

@JayChoi1736 JayChoi1736 reopened this May 31, 2022
@JayChoi1736
Copy link
Contributor Author

How about adding a test case for your change?

added on tx_pool_test. thx!

@JayChoi1736 JayChoi1736 requested a review from kjhman21 June 14, 2022 07:38
JayChoi1736 and others added 3 commits June 16, 2022 08:47
Co-authored-by: Junghyun Colin Kim <colin.klaytn@krustuniverse.com>
Co-authored-by: Junghyun Colin Kim <colin.klaytn@krustuniverse.com>
Copy link
@kjhman21 kjhman21 left a comment

Choose a reason for hiding this comment

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

LGTM.

@JayChoi1736 JayChoi1736 merged commit a76bff0 into klaytn:dev Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0