mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 05:14:14 +00:00
Remove default gas price (is zero instead) and use gasLimit from header
This commit is contained in:
parent
a279915175
commit
d269bd07c5
@ -280,9 +280,7 @@ proc setupEthRpc*(node: EthereumNode, chain: BaseChainDB, rpcsrv: RpcServer) =
|
|||||||
|
|
||||||
# Set defaults for gas limit and price if required
|
# Set defaults for gas limit and price if required
|
||||||
if gaslimit == 0.GasInt:
|
if gaslimit == 0.GasInt:
|
||||||
gasLimit = (int64.high div 2).GasInt # Note this is `uint64.high div 2` in Geth
|
gasLimit = header.gasLimit
|
||||||
if gasPrice == 0.GasInt:
|
|
||||||
gasPrice = 1e9.GasInt # Geth's default gas price
|
|
||||||
|
|
||||||
var
|
var
|
||||||
sender = if call.source.isSome: call.source.get.toAddress else: ZERO_ADDRESS
|
sender = if call.source.isSome: call.source.get.toAddress else: ZERO_ADDRESS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user