From f2aba104b9490c703584459c8b219961e5e0168e Mon Sep 17 00:00:00 2001 From: Ferenc Szabo Date: Thu, 31 Jan 2019 15:49:25 +0100 Subject: [PATCH] p2p/simulations: remove JSON annotation from private fields of Node As unexported fields are not serialized. --- p2p/simulations/network.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/simulations/network.go b/p2p/simulations/network.go index d373ac88cc..3480c67554 100644 --- a/p2p/simulations/network.go +++ b/p2p/simulations/network.go @@ -586,8 +586,8 @@ type Node struct { Config *adapters.NodeConfig `json:"config"` // up tracks whether or not the node is running - up bool `json:"up"` - upMu sync.RWMutex `json:"-"` + up bool + upMu sync.RWMutex } func (n *Node) Up() bool {