diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index a7b6b19a47..bad85cde68 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -72,10 +72,10 @@ var Defaults = Config{ RPCGasCap: 50000000, RPCEVMTimeout: 5 * time.Second, GPO: FullNodeGPO, - RPCTxFeeCap: 1, // 1 ether + RPCTxFeeCap: 1, // 1 ether TxSyncDefaultTimeout: uint64(20000), // 20 seconds in milliseconds TxSyncMaxTimeout: uint64(60000), // 1 minute in milliseconds - SlowBlockThreshold: -1, // Disabled by default; set via --debug.logslowblock flag + SlowBlockThreshold: -1, // Disabled by default; set via --debug.logslowblock flag RangeLimit: 0, } diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go index 7ad15b67a2..46f3067511 100644 --- a/internal/ethapi/backend.go +++ b/internal/ethapi/backend.go @@ -49,10 +49,10 @@ type Backend interface { ChainDb() ethdb.Database AccountManager() *accounts.Manager ExtRPCEnabled() bool - RPCGasCap() uint64 // global gas cap for eth_call over rpc: DoS protection - RPCEVMTimeout() time.Duration // global timeout for eth_call over rpc: DoS protection - RPCTxFeeCap() float64 // global tx fee cap for all transaction related APIs - UnprotectedAllowed() bool // allows only for EIP155 transactions. + RPCGasCap() uint64 // global gas cap for eth_call over rpc: DoS protection + RPCEVMTimeout() time.Duration // global timeout for eth_call over rpc: DoS protection + RPCTxFeeCap() float64 // global tx fee cap for all transaction related APIs + UnprotectedAllowed() bool // allows only for EIP155 transactions. RPCTxSyncDefaultTimeout() uint64 // default timeout for eth_sendRawTransactionSync in milliseconds RPCTxSyncMaxTimeout() uint64 // maximum timeout for eth_sendRawTransactionSync in milliseconds