Skip to content
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

Tipping tx type #1510

Closed
wants to merge 20 commits into from
Closed

Tipping tx type #1510

wants to merge 20 commits into from

Conversation

magicxyyz
Copy link
Contributor

@magicxyyz magicxyyz commented Feb 28, 2023

This PR:

  • adds new transaction type which allows creating new subtypes of the transaction (ArbitrumSubtypedTx)
  • adds new transaction subtype that wraps DynamicFeeTx and supports collection the priority fee (ArbitrumTippingTx)

needs: OffchainLabs/go-ethereum#204

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Feb 28, 2023
@codecov
Copy link

codecov bot commented Mar 1, 2023

Codecov Report

Merging #1510 (8b047fd) into master (174496c) will decrease coverage by 3.53%.
The diff coverage is 76.47%.

@@            Coverage Diff             @@
##           master    #1510      +/-   ##
==========================================
- Coverage   52.96%   49.44%   -3.53%     
==========================================
  Files         272      259      -13     
  Lines       35403    31360    -4043     
  Branches      555      555              
==========================================
- Hits        18752    15505    -3247     
+ Misses      14449    13649     -800     
- Partials     2202     2206       +4     

@magicxyyz magicxyyz marked this pull request as ready for review March 14, 2023 15:25
@@ -406,7 +406,10 @@ func (s *Sequencer) PublishTransaction(parentCtx context.Context, tx *types.Tran
}
}

func (s *Sequencer) preTxFilter(_ *params.ChainConfig, header *types.Header, statedb *state.StateDB, _ *arbosState.ArbosState, tx *types.Transaction, sender common.Address) error {
func (s *Sequencer) preTxFilter(_ *params.ChainConfig, header *types.Header, statedb *state.StateDB, arbosState *arbosState.ArbosState, tx *types.Transaction, sender common.Address) error {
if tx.Type() == types.ArbitrumSubtypedTxType && arbosState.ArbOSVersion() < 11 {
Copy link
Member

Choose a reason for hiding this comment

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

Need to change this to ArbOSVersion 12

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll address this change in the new version of this PR: #1901

Copy link
Member

@joshuacolvin0 joshuacolvin0 left a comment

Choose a reason for hiding this comment

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

Need to update to activate on ArbOS12

@magicxyyz
Copy link
Contributor Author

replaced by: #1901

@magicxyyz magicxyyz closed this Oct 2, 2023
@magicxyyz magicxyyz deleted the tipping-tx-type branch October 2, 2023 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants