mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +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
|
||||
if gaslimit == 0.GasInt:
|
||||
gasLimit = (int64.high div 2).GasInt # Note this is `uint64.high div 2` in Geth
|
||||
if gasPrice == 0.GasInt:
|
||||
gasPrice = 1e9.GasInt # Geth's default gas price
|
||||
gasLimit = header.gasLimit
|
||||
|
||||
var
|
||||
sender = if call.source.isSome: call.source.get.toAddress else: ZERO_ADDRESS
|
||||
|
Loading…
x
Reference in New Issue
Block a user