-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increment network version and change default configs #771
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -572,7 +572,7 @@ func DefaultRPCConfig() *RPCConfig { | |
MaxSubscriptionClients: 100, | ||
MaxSubscriptionsPerClient: 5, | ||
SubscriptionBufferSize: defaultSubscriptionBufferSize, | ||
TimeoutBroadcastTxCommit: 10 * time.Second, | ||
TimeoutBroadcastTxCommit: 35 * time.Second, | ||
WebSocketWriteBufferSize: defaultSubscriptionBufferSize, | ||
|
||
MaxBodyBytes: int64(1000000), // 1MB | ||
|
@@ -771,9 +771,9 @@ func DefaultP2PConfig() *P2PConfig { | |
UPNP: false, | ||
AddrBook: defaultAddrBookPath, | ||
AddrBookStrict: true, | ||
MaxNumInboundPeers: 40, | ||
MaxNumOutboundPeers: 10, | ||
MaxConnections: 64, | ||
MaxNumInboundPeers: 120, | ||
MaxNumOutboundPeers: 30, | ||
MaxConnections: 150, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not have any confidence in these settings tbh. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Me either. We can revert these. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reverted, but fwiw I originally increased because of https://github.com/tharsis/evmos/pull/541/files and osmosis-labs/osmosis#464 |
||
MaxIncomingConnectionAttempts: 100, | ||
PersistentPeersMaxDialPeriod: 0 * time.Second, | ||
FlushThrottleTimeout: 100 * time.Millisecond, | ||
|
@@ -791,7 +791,7 @@ func DefaultP2PConfig() *P2PConfig { | |
DialTimeout: 3 * time.Second, | ||
TestDialFail: false, | ||
QueueType: "priority", | ||
UseLegacy: false, | ||
UseLegacy: true, | ||
} | ||
} | ||
|
||
|
@@ -899,9 +899,9 @@ func DefaultMempoolConfig() *MempoolConfig { | |
Size: 5000, | ||
MaxTxsBytes: 1024 * 1024 * 1024, // 1GB | ||
CacheSize: 10000, | ||
MaxTxBytes: 1024 * 1024, // 1MB | ||
MaxTxBytes: 1024 * 1024 * 3, // 3MB | ||
TTLDuration: 0 * time.Second, | ||
TTLNumBlocks: 0, | ||
TTLNumBlocks: 15, | ||
} | ||
} | ||
|
||
|
@@ -1148,7 +1148,7 @@ func DefaultConsensusConfig() *ConsensusConfig { | |
TimeoutPrevoteDelta: 500 * time.Millisecond, | ||
TimeoutPrecommit: 1000 * time.Millisecond, | ||
TimeoutPrecommitDelta: 500 * time.Millisecond, | ||
TimeoutCommit: 1000 * time.Millisecond, | ||
TimeoutCommit: 25000 * time.Millisecond, | ||
SkipTimeoutCommit: false, | ||
CreateEmptyBlocks: true, | ||
CreateEmptyBlocksInterval: 0 * time.Second, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ const ( | |
var ( | ||
// P2PProtocol versions all p2p behavior and msgs. | ||
// This includes proposer selection. | ||
P2PProtocol uint64 = 8 | ||
P2PProtocol uint64 = 9 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to @tychoish There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That makes sense. |
||
|
||
// BlockProtocol versions all block data structures and processing. | ||
// This includes validity of blocks and state updates. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this makes sense as well.