Commit 09ad29c0 authored by Steven Allen's avatar Steven Allen

fix: fix alignment of stats struct in virtual network

This needs to be at the top of the "allocated" struct. Otherwise, 32bit
tests fail.
parent c13e78b6
......@@ -184,11 +184,13 @@ func (n *network) SendMessage(
}
type networkClient struct {
// These need to be at the top of the struct (allocated on the heap) for alignment on 32bit platforms.
stats bsnet.Stats
local peer.ID
bsnet.Receiver
network *network
routing routing.Routing
stats bsnet.Stats
supportedProtocols []protocol.ID
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment