use configs in api backend

This commit is contained in:
aodhgan 2025-10-01 22:44:39 -07:00
parent e7a48a5c08
commit e3fa487898

View file

@ -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
} }