Skip to content
Snippets Groups Projects
Unverified Commit d2c78826 authored by Levente Pap's avatar Levente Pap
Browse files

Fix bugs + enable spammer on peer_master

parent ae8c78f1
No related branches found
No related tags found
No related merge requests found
......@@ -55,16 +55,16 @@ func run(_ *node.Plugin) {
measureCPUUsage()
measureMemUsage()
measureSynced()
measureMPSPerPayload()
measureMessageTips()
measureReceivedTPS()
measureValueTips()
// gossip network traffic
g := gossipCurrentTraffic()
gossipCurrentRx.Store(uint64(g.BytesRead))
gossipCurrentTx.Store(uint64(g.BytesWritten))
}, 1*time.Second, shutdownSignal)
timeutil.Ticker(measureMPSPerPayload, MPSMeasurementInterval, shutdownSignal)
timeutil.Ticker(measureMessageTips, MessageTipsMeasurementInterval, shutdownSignal)
timeutil.Ticker(measureReceivedTPS, TPSMeasurementInterval, shutdownSignal)
timeutil.Ticker(measureValueTips, ValueTipsMeasurementInterval, shutdownSignal)
}
}, shutdown.PriorityMetrics); err != nil {
log.Panicf("Failed to start as daemon: %s", err)
......
......@@ -44,7 +44,7 @@ services:
command: >
--config-dir=/tmp
--database.directory=/tmp/mainnetdb
--node.enablePlugins=bootstrap,prometheus
--node.enablePlugins=bootstrap,prometheus,spammer
volumes:
- ./config.docker.json:/tmp/config.json:ro
- goshimmer-cache:/go
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment