diff --git a/server.go b/server.go index cf4b8c05..b7fe2400 100644 --- a/server.go +++ b/server.go @@ -170,11 +170,12 @@ func (ps *peerState) forAllPeers(closure func(sp *serverPeer)) { // bitcoin peers. type server struct { // The following variables must only be used atomically. + // Putting the uint64s first makes them 64-bit aligned for 32-bit systems. + bytesReceived uint64 // Total bytes received from all peers since start. + bytesSent uint64 // Total bytes sent by all peers since start. started int32 shutdown int32 shutdownSched int32 - bytesReceived uint64 // Total bytes received from all peers since start. - bytesSent uint64 // Total bytes sent by all peers since start. listeners []net.Listener chainParams *chaincfg.Params