Merge pull request #627 from builder90210/faster_tx_fetch

Reduce txArriveTimeout to 100ms
This commit is contained in:
Arpit Temani 2022-12-22 11:54:55 +05:30 committed by GitHub
commit 4aa56c543a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,11 +55,11 @@ const (
// txArriveTimeout is the time allowance before an announced transaction is
// explicitly requested.
txArriveTimeout = 500 * time.Millisecond
txArriveTimeout = 100 * time.Millisecond
// txGatherSlack is the interval used to collate almost-expired announces
// with network fetches.
txGatherSlack = 100 * time.Millisecond
txGatherSlack = 20 * time.Millisecond
)
var (