mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
use configs in api backend
This commit is contained in:
parent
e7a48a5c08
commit
e3fa487898
1 changed files with 2 additions and 2 deletions
|
|
@ -488,9 +488,9 @@ func (b *EthAPIBackend) StateAtTransaction(ctx context.Context, block *types.Blo
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *EthAPIBackend) RPCTxSyncDefaultTimeout() time.Duration {
|
func (b *EthAPIBackend) RPCTxSyncDefaultTimeout() time.Duration {
|
||||||
return 2 * time.Second
|
return b.eth.config.TxSyncDefaultTimeout
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *EthAPIBackend) RPCTxSyncMaxTimeout() time.Duration {
|
func (b *EthAPIBackend) RPCTxSyncMaxTimeout() time.Duration {
|
||||||
return 5 * time.Minute
|
return b.eth.config.TxSyncMaxTimeout
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue