Skip to content
Snippets Groups Projects
Unverified Commit 11162ca8 authored by capossele's avatar capossele
Browse files

:construction: Make FPCHeartbeat smaller

parent f36022ac
No related branches found
No related tags found
No related merge requests found
......@@ -148,9 +148,15 @@ func onRoundExecuted(roundStats *vote.RoundStats) {
nodeID = local.GetInstance().ID().Bytes()
}
rs := vote.RoundStats{
Duration: roundStats.Duration,
RandUsed: roundStats.RandUsed,
ActiveVoteContexts: roundStats.ActiveVoteContexts,
}
hb := &packet.FPCHeartbeat{
OwnID: nodeID,
RoundStats: *roundStats,
RoundStats: rs,
}
data, err := packet.NewFPCHeartbeatMessage(hb)
......@@ -159,6 +165,8 @@ func onRoundExecuted(roundStats *vote.RoundStats) {
return
}
log.Info("Client: onRoundExecuted data size: ", len(data))
connLock.Lock()
defer connLock.Unlock()
if _, err = managedConn.Write(data); err != nil {
......
......@@ -46,6 +46,7 @@ services:
command: >
--config-dir=/tmp
--database.directory=/tmp/mainnetdb
--node.enablePlugins=bootstrap
--node.disablePlugins=dashboard,portcheck
volumes:
- ./config.docker.json:/tmp/config.json:ro
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment