-
Notifications
You must be signed in to change notification settings - Fork 253
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
Introducing base fee + hard fork logic #933
base: release/galactica
Are you sure you want to change the base?
Conversation
6218766
to
70c01ce
Compare
1ca93ca
to
3deb860
Compare
70c01ce
to
4e7a99c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/galactica #933 +/- ##
====================================================
Coverage ? 61.11%
====================================================
Files ? 225
Lines ? 23937
Branches ? 0
====================================================
Hits ? 14628
Misses ? 8135
Partials ? 1174 ☔ View full report in Codecov by Sentry. |
…using the optional rlp tag
44c6966
to
a8fe27f
Compare
@@ -233,7 +233,7 @@ func createOneClausePerTx(signerPK *ecdsa.PrivateKey, thorChain *testchain.Chain | |||
for gasUsed < 9_500_000 { | |||
toAddr := datagen.RandAddress() | |||
cla := tx.NewClause(&toAddr).WithValue(big.NewInt(10000)) | |||
transaction := new(tx.Builder). | |||
transaction, _ := tx.NewTxBuilder(tx.LegacyTxType). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add dynTx in that phase ?
assert.True(t, b.header.COM()) | ||
} | ||
|
||
func TestBuilder_BaseFee(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we should add tests for new fields too as builder will be able to build both new and old tx
Description
This PR is introducing a new field called
BaseFee
. This is included in the block's header and fixes the gas threshold a tx must have to be included in the block.GH-Issue
Type of change
Please delete options that are not relevant.
Checklist: