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

EIP1559 #31

Merged
merged 16 commits into from
Nov 5, 2020
Merged

EIP1559 #31

merged 16 commits into from
Nov 5, 2020

Conversation

ramilexe
Copy link

No description provided.

@ramilexe
Copy link
Author

  • RPC refarctored
  • updated base classes

@ramilexe ramilexe changed the title change transaction options, gasPremium to maxMinerBribePerGas EIP1559 Nov 4, 2020
@ramilexe ramilexe changed the title EIP1559 [WIP] EIP1559 Nov 4, 2020
@ramilexe ramilexe changed the title [WIP] EIP1559 EIP1559 Nov 4, 2020
@@ -115,6 +115,7 @@ func version(ctx *cli.Context) error {
if gitDate != "" {
fmt.Println("Git Commit Date:", gitDate)
}
fmt.Println("EIP1559: 970c594cd3")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should add this info to the version meta in addition to (or instead of) here

Copy link

Choose a reason for hiding this comment

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

VersionMeta  = "eip1559-970c594cd3"

@@ -52,8 +53,8 @@ type txdata struct {
Payload []byte `json:"input" gencodec:"required"`

// EIP1559 gas values
GasPremium *big.Int `json:"gasPremium" rlp:"nil"` // nil means legacy transaction
FeeCap *big.Int `json:"feeCap" rlp:"nil"` // nil means legacy transaction
MaxMinerBribePerGas *big.Int `json:"max_miner_bribe_per_gas" rlp:"nil"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

New JSON tags here and in other files should use camelCase

Copy link

Choose a reason for hiding this comment

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

max_miner_bribe_per_gas changed to maxMinerBribePerGas
fee_cap_per_gas changed to feeCapPerGas

@ramilexe ramilexe merged commit 01b75e5 into 1559_test Nov 5, 2020
n0cte added a commit that referenced this pull request Dec 4, 2020
* change transaction options, gasPremium to maxMinerBribePerGas

* update fields for eth api

* Update cost calculation for transaction

* Change gasPremium to maxMinerBribePerGas

* update baseFee calculation

* fix gasprice calculation for StateTransition

* fix fields for RPCTransaction

* fix CalcBaseFee

* fix transaction fields for test

* add additional func computeBaseFee

* fix baseFee values for TestCalcBaseFee

* Fix transaction cost calculation

* add infomation about eip version

* use camelCase-style for json tags

* remove eip info from "version"-command

* update VesionMeta

Co-authored-by: Ilnur Galiev <[email protected]>
n0cte added a commit that referenced this pull request Dec 11, 2020
* change transaction options, gasPremium to maxMinerBribePerGas

* update fields for eth api

* Update cost calculation for transaction

* Change gasPremium to maxMinerBribePerGas

* update baseFee calculation

* fix gasprice calculation for StateTransition

* fix fields for RPCTransaction

* fix CalcBaseFee

* fix transaction fields for test

* add additional func computeBaseFee

* fix baseFee values for TestCalcBaseFee

* Fix transaction cost calculation

* add infomation about eip version

* use camelCase-style for json tags

* remove eip info from "version"-command

* update VesionMeta

Co-authored-by: Ilnur Galiev <[email protected]>
n0cte added a commit that referenced this pull request Dec 11, 2020
* change transaction options, gasPremium to maxMinerBribePerGas

* update fields for eth api

* Update cost calculation for transaction

* Change gasPremium to maxMinerBribePerGas

* update baseFee calculation

* fix gasprice calculation for StateTransition

* fix fields for RPCTransaction

* fix CalcBaseFee

* fix transaction fields for test

* add additional func computeBaseFee

* fix baseFee values for TestCalcBaseFee

* Fix transaction cost calculation

* add infomation about eip version

* use camelCase-style for json tags

* remove eip info from "version"-command

* update VesionMeta

Co-authored-by: Ilnur Galiev <[email protected]>
@github-cerc-io github-cerc-io deleted the 1559_rework branch October 2, 2023 20:57
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.

3 participants