Skip to content

Commit e285530

Browse files
Merge pull request #801 from ava-labs/dev
v1.2.3
2 parents 648bb01 + 290aa58 commit e285530

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
3333
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
3434
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
3535
github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84=
36+
github.com/btcsuite/btcd v0.20.1-beta h1:Ik4hyJqN8Jfyv3S4AGBOmyouMsYE3EdYODkMbQjwPGw=
3637
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
3738
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
3839
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
@@ -85,6 +86,7 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2
8586
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
8687
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
8788
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
89+
github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=
8890
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
8991
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
9092
github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=

main/params.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ func avalancheFlagSet() *flag.FlagSet {
176176
fs.Duration(healthCheckFreqKey, 30*time.Second, "Time between health checks")
177177
fs.Duration(healthCheckAveragerHalflifeKey, 10*time.Second, "Halflife of averager when calculating a running average in a health check")
178178
// Network Layer Health
179-
fs.Duration(networkHealthMaxTimeSinceMsgSentKey, time.Minute, "Network layer returns unhealthy if haven't received a message for at least this much time")
179+
fs.Duration(networkHealthMaxTimeSinceMsgSentKey, time.Minute, "Network layer returns unhealthy if haven't sent a message for at least this much time")
180180
fs.Duration(networkHealthMaxTimeSinceMsgReceivedKey, time.Minute, "Network layer returns unhealthy if haven't received a message for at least this much time")
181181
fs.Float64(networkHealthMaxPortionSendQueueFillKey, 0.9, "Network layer returns unhealthy if more than this portion of the pending send queue is full")
182182
fs.Uint(networkHealthMinPeersKey, 1, "Network layer returns unhealthy if connected to less than this many peers")
183-
fs.Float64(networkHealthMaxSendFailRateKey, .25, "Network layer reports unhealthy if more than this portion of attempted message sends fail")
183+
fs.Float64(networkHealthMaxSendFailRateKey, .9, "Network layer reports unhealthy if more than this portion of attempted message sends fail")
184184
// Router Health
185-
fs.Float64(routerHealthMaxDropRateKey, 0.25, "Node reports unhealthy if the router drops more than this portion of messages.")
185+
fs.Float64(routerHealthMaxDropRateKey, 1, "Node reports unhealthy if the router drops more than this portion of messages.")
186186
fs.Uint(routerHealthMaxOutstandingRequestsKey, 1024, "Node reports unhealthy if there are more than this many outstanding consensus requests (Get, PullQuery, etc.) over all chains")
187187
fs.Duration(networkHealthMaxTimeSinceNoReqsKey, 5*time.Minute, "Node reports unhealthy if there is at least 1 outstanding request continuously for this duration")
188188

@@ -226,7 +226,7 @@ func avalancheFlagSet() *flag.FlagSet {
226226
fs.Int(snowConcurrentRepollsKey, 4, "Minimum number of concurrent polls for finalizing consensus")
227227
fs.Int(snowOptimalProcessingKey, 50, "Optimal number of processing vertices in consensus")
228228
fs.Int(snowMaxProcessingKey, 1024, "Maximum number of processing items to be considered healthy")
229-
fs.Duration(snowMaxTimeProcessingKey, 10*time.Second, "Maximum amount of time an item should be processing and still be healthy")
229+
fs.Duration(snowMaxTimeProcessingKey, 2*time.Minute, "Maximum amount of time an item should be processing and still be healthy")
230230
fs.Int64(snowEpochFirstTransition, 1607626800, "Unix timestamp of the first epoch transaction, in seconds. Defaults to 12/10/2020 @ 7:00pm (UTC)")
231231
fs.Duration(snowEpochDuration, 6*time.Hour, "Duration of each epoch")
232232

network/network.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,27 +1471,23 @@ func (n *network) restartOnDisconnect() {
14711471
// 2) An error if the health check reports unhealthy
14721472
// Assumes [n.stateLock] is not held
14731473
func (n *network) HealthCheck() (interface{}, error) {
1474-
details := map[string]interface{}{}
1475-
14761474
// Get some data with the state lock held
14771475
connectedTo := 0
14781476
n.stateLock.RLock()
14791477
for _, peer := range n.peers {
14801478
if peer != nil && peer.connected.GetValue() {
14811479
connectedTo++
1482-
if connectedTo > int(n.healthConfig.MinConnectedPeers) {
1483-
break
1484-
}
14851480
}
14861481
}
14871482
pendingSendBytes := n.pendingBytes
14881483
sendFailRate := n.sendFailRateCalculator.Read()
14891484
n.stateLock.RUnlock()
14901485

14911486
// Make sure we're connected to at least the minimum number of peers
1492-
isSufficientlyConnected := connectedTo >= int(n.healthConfig.MinConnectedPeers)
1493-
healthy := isSufficientlyConnected
1494-
details["connectedToMinPeers"] = isSufficientlyConnected
1487+
healthy := connectedTo >= int(n.healthConfig.MinConnectedPeers)
1488+
details := map[string]interface{}{
1489+
"connectedPeers": connectedTo,
1490+
}
14951491

14961492
// Make sure we've received an incoming message within the threshold
14971493
now := n.clock.Time()

node/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var (
6767
genesisHashKey = []byte("genesisID")
6868

6969
// Version is the version of this code
70-
Version = version.NewDefaultVersion(constants.PlatformName, 1, 2, 2)
70+
Version = version.NewDefaultVersion(constants.PlatformName, 1, 2, 3)
7171
versionParser = version.NewDefaultParser()
7272
beaconConnectionTimeout = 1 * time.Minute
7373
)

scripts/build_coreth.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ BUILD_DIR="$AVALANCHE_PATH/build" # Where binaries go
1313
PLUGIN_DIR="$BUILD_DIR/plugins" # Where plugin binaries (namely coreth) go
1414
BINARY_PATH="$PLUGIN_DIR/evm"
1515

16-
CORETH_VER="v0.3.25"
16+
CORETH_VER="v0.3.26"
1717

1818
CORETH_PATH="$GOPATH/pkg/mod/github.com/ava-labs/coreth@$CORETH_VER"
1919

0 commit comments

Comments
 (0)