mirror of
https://github.com/status-im/status-go.git
synced 2025-01-25 05:58:59 +00:00
e4cbce12c4
* Update `github.com/ethereum/go-ethereum` package to 1.8.1 branch. Part of #638 * Fix code due to some signature changes. Part of #638 * use upstream for whisper backend * Add patch to downgrade usage of Whisper v6 to v5 in some geth 1.8.1 vendor files. Part of #638 * Take into account the DNS rebinding protection introduced in 1.8.0 by adding exception for localhost. Part of #638 * Add patches required for cross-compiled builds starting with geth 1.8.0. Only applied during build. Part of #638 * Update expected JSON result in `TestRegressionGetTransactionReceipt()` and `TestCallRawResultGetTransactionReceipt()`. Part of #665 * Fix some failing e2e tests. Part of #638 * Address comments in PR #702. Part of #638
28 lines
791 B
Go
28 lines
791 B
Go
// Code generated by "stringer -type=nodeEvent"; DO NOT EDIT.
|
|
|
|
package discv5
|
|
|
|
import "strconv"
|
|
|
|
const (
|
|
_nodeEvent_name_0 = "invalidEventpingPacketpongPacketfindnodePacketneighborsPacketfindnodeHashPackettopicRegisterPackettopicQueryPackettopicNodesPacket"
|
|
_nodeEvent_name_1 = "pongTimeoutpingTimeoutneighboursTimeout"
|
|
)
|
|
|
|
var (
|
|
_nodeEvent_index_0 = [...]uint8{0, 12, 22, 32, 46, 61, 79, 98, 114, 130}
|
|
_nodeEvent_index_1 = [...]uint8{0, 11, 22, 39}
|
|
)
|
|
|
|
func (i nodeEvent) String() string {
|
|
switch {
|
|
case 0 <= i && i <= 8:
|
|
return _nodeEvent_name_0[_nodeEvent_index_0[i]:_nodeEvent_index_0[i+1]]
|
|
case 265 <= i && i <= 267:
|
|
i -= 265
|
|
return _nodeEvent_name_1[_nodeEvent_index_1[i]:_nodeEvent_index_1[i+1]]
|
|
default:
|
|
return "nodeEvent(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|