mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
Merge a34dbd8435 into dddbaa4bf3
This commit is contained in:
commit
720ab5d592
1 changed files with 3 additions and 0 deletions
|
|
@ -1790,6 +1790,9 @@ func (api *TransactionAPI) SendRawTransactionSync(ctx context.Context, input hex
|
|||
defaultTimeout = api.b.RPCTxSyncDefaultTimeout()
|
||||
timeout = defaultTimeout
|
||||
)
|
||||
if timeout > maxTimeout {
|
||||
timeout = maxTimeout
|
||||
}
|
||||
if timeoutMs != nil && *timeoutMs > 0 {
|
||||
req := time.Duration(*timeoutMs) * time.Millisecond
|
||||
if req > maxTimeout {
|
||||
|
|
|
|||
Loading…
Reference in a new issue