multi: 64bit aligment of atomic vars on arm/x86-32

This commit is contained in:
maurycy
2018-06-01 00:41:41 +02:00
committed by Olaoluwa Osuntokun
parent d2bcb708f3
commit 3be08e69cf
21 changed files with 67 additions and 60 deletions

View File

@@ -139,9 +139,14 @@ type Config struct {
// will be rejected by this struct.
type AuthenticatedGossiper struct {
// Parameters which are needed to properly handle the start and stop of
// the service.
// the service. To be used atomically.
started uint32
stopped uint32
// bestHeight is the height of the block at the tip of the main chain
// as we know it. To be used atomically.
bestHeight uint32
quit chan struct{}
wg sync.WaitGroup
@@ -186,10 +191,6 @@ type AuthenticatedGossiper struct {
// forwarding policy of a set of channels is sent over.
chanPolicyUpdates chan *chanPolicyUpdateRequest
// bestHeight is the height of the block at the tip of the main chain
// as we know it.
bestHeight uint32
// selfKey is the identity public key of the backing Lightning node.
selfKey *btcec.PublicKey