-
Notifications
You must be signed in to change notification settings - Fork 21k
EIP-1559 RPC changes #22834
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
EIP-1559 RPC changes #22834
Conversation
d4558e5
to
f84e285
Compare
Trying to submit a transaction to
This happens when nothing is specified,
|
Hm, also,
It's quirky that it won't allow me to create the tx in that case |
* replace GasPriceCmp and GasPriceIntCmp with FeeCapCmp, FeeCapIntCmp, TipCmp, TipIntCmp (and update all usages) * update Cost to use FeeCap instead of GasPrice
* add eip1559 status indicator * add DynamicFeeTx to transaction type check * remove underpriced transactions on minimum miner tip increases * require both a fee cap and tip bump for transaction replacement * use tip as secondary comparison criterion for priceHeap sorting
…transaction validation
…e post-EIP-1559 arm of pool.SetMinMinerFee()
…olRepricingKeepsLocals()
…Transaction results
It appears the issue is that because there are no txs for the gas price oracle to use to calculate a good tip, it uses the client default ( There seems like there are a couple simple ways to resolve this:
I think setting the tip to the minimum of the either the The second solution will work in all cases, always returning a value to the caller that is likely to have their transaction included very soon. In the case of the Baikal, it would send a tx with a |
It seems like that behaviour is consistent with other fatal vm errors. Does it make sense to make an except for this? |
@@ -1156,6 +1178,12 @@ func RPCMarshalHeader(head *types.Header) map[string]interface{} { | |||
"transactionsRoot": head.TxHash, | |||
"receiptsRoot": head.ReceiptHash, | |||
} | |||
|
|||
if head.BaseFee != nil { | |||
result["baseFee"] = (*hexutil.Big)(head.BaseFee) |
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.
result["baseFee"] = (*hexutil.Big)(head.BaseFee) | |
result["baseFeePerGas"] = (*hexutil.Big)(head.BaseFee) |
This branch contains EIP-1559 specific changes to the RPC, specifically:
A few things that haven't been addressed yet:
n
blocks