updated default txArrivalWait value to 500ms. updated commented lines to indicate the new default value. updated tx_fetcher_test to test using the new default value

This commit is contained in:
Alex 2023-02-09 00:18:39 -08:00
parent 5496007cba
commit b5ff754b70
6 changed files with 6 additions and 6 deletions

View file

@ -757,7 +757,7 @@ var (
// fetcher flag to set arrival timeout
TxArrivalWaitFlag = cli.IntFlag{
Name: "txarrivalwait",
Usage: "Maximum number of milliseconds to wait for a transaction before requesting it (defaults to 100ms)",
Usage: "Maximum number of milliseconds to wait for a transaction before requesting it (defaults to 500ms)",
Value: node.DefaultConfig.P2P.TxArrivalWait,
}

View file

@ -146,7 +146,7 @@ The ```bor server``` command runs the Bor client.
- ```v5disc```: Enables the experimental RLPx V5 (Topic Discovery) mechanism (default: false)
- ```txarrivalwait```: Maximum number of milliseconds to wait before requesting an announced transaction (default: 100)
- ```txarrivalwait```: Maximum number of milliseconds to wait before requesting an announced transaction (default: 500)
### Sealer Options

View file

@ -39,7 +39,7 @@ var (
}
// testTxsHashes is the hashes of the test transactions above
testTxsHashes = []common.Hash{testTxs[0].Hash(), testTxs[1].Hash(), testTxs[2].Hash(), testTxs[3].Hash()}
testTxArrivalWait = 100 * time.Millisecond
testTxArrivalWait = 500 * time.Millisecond
)
type doTxNotify struct {

View file

@ -458,7 +458,7 @@ func DefaultConfig() *Config {
Port: 30303,
NoDiscover: false,
NAT: "any",
TxArrivalWait: 100,
TxArrivalWait: 500,
Discovery: &P2PDiscovery{
V5Enabled: false,
Bootnodes: []string{},

View file

@ -550,7 +550,7 @@ func (c *Command) Flags() *flagset.Flagset {
})
f.Uint64Flag(&flagset.Uint64Flag{
Name: "txarrivalwait",
Usage: "Maximum number of milliseconds to wait for a transaction before requesting it (defaults to 100ms)",
Usage: "Maximum number of milliseconds to wait for a transaction before requesting it (defaults to 500ms)",
Value: &c.cliConfig.P2P.TxArrivalWait,
Default: c.cliConfig.P2P.TxArrivalWait,
Group: "P2P",

View file

@ -63,7 +63,7 @@ var DefaultConfig = Config{
ListenAddr: ":30303",
MaxPeers: 50,
NAT: nat.Any(),
TxArrivalWait: 100,
TxArrivalWait: 500,
},
}