This commit is contained in:
cui 2026-07-17 21:52:55 -07:00 committed by GitHub
commit 720ab5d592
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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