status-go/t/benchmarks/flags_test.go
Adam Babik 52a1bdfed6
Upgrade geth 1.8.17 plus add metrics during compilation time (#1273)
This commit updates geth to 1.8.17 and adds a possibility to enable metrics during compilation time.

The cascade of issues forced us to upgrade geth to 1.8.17 in order to allow enabling metrics during compilation time. 1.8.17 introduced `NodeID` refactoring and `enode` package which affected our peers pool and integration with Discovery V5.
2018-11-14 08:03:58 +01:00

28 lines
744 B
Go

package benchmarks
import (
"flag"
"github.com/ethereum/go-ethereum/p2p/enode"
)
var (
// general
peerURL = flag.String("peerurl", "", "Peer raw URL to which send messages")
// mailserver tests
ccyPeers = flag.Int("ccypeers", 1, "Number of concurrent peers requesting messages")
// messages tests
msgPass = flag.String("msgpass", "message-pass", "Password to create sym key from")
msgCount = flag.Int64("msgcount", 100, "Number of messages to send")
msgSize = flag.Int64("msgsize", int64(1024), "Message size in bytes")
msgBatchSize = flag.Int64("msgbatchsize", int64(20), "Number of messages to send in a batch")
)
var peerEnode *enode.Node
func init() {
flag.Parse()
peerEnode = enode.MustParseV4(*peerURL)
}