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

This commit is contained in:
maurycy authored and Olaoluwa Osuntokun committed 2018-06-04 20:02:34 -07:00
1 parent d2bcb708f3
commit 3be08e69cf
21 files changed
+67 -60

No files matched your search

+2 -2
View File
@@ -21,8 +21,8 @@ import (
// BitcoindFilteredChainView is an implementation of the FilteredChainView
// interface which is backed by bitcoind.
type BitcoindFilteredChainView struct {
started int32
stopped int32
started int32 // To be used atomically.
stopped int32 // To be used atomically.
// bestHeight is the height of the latest block added to the
// blockQueue from the onFilteredConnectedMethod. It is used to
+2 -2
View File
@@ -17,8 +17,8 @@ import (
// BtcdFilteredChainView is an implementation of the FilteredChainView
// interface which is backed by an active websockets connection to btcd.
type BtcdFilteredChainView struct {
started int32
stopped int32
started int32 // To be used atomically.
stopped int32 // To be used atomically.
// bestHeight is the height of the latest block added to the
// blockQueue from the onFilteredConnectedMethod. It is used to
+2 -2
View File
@@ -20,8 +20,8 @@ import (
// blocks, the light client is able to query filters locally, to test if an
// item in a block modifies any of our watched set of UTXOs.
type CfFilteredChainView struct {
started int32
stopped int32
started int32 // To be used atomically.
stopped int32 // To be used atomically.
// p2pNode is a pointer to the running GCS-filter supported Bitcoin
// light clientl
+4 -4
View File
@@ -200,12 +200,12 @@ func newRouteTuple(amt lnwire.MilliSatoshi, dest []byte) routeTuple {
// automatically as new blocks are discovered which spend certain known funding
// outpoints, thereby closing their respective channels.
type ChannelRouter struct {
ntfnClientCounter uint64
ntfnClientCounter uint64 // To be used atomically.
started uint32
stopped uint32
started uint32 // To be used atomically.
stopped uint32 // To be used atomically.
bestHeight uint32
bestHeight uint32 // To be used atomically.
// cfg is a copy of the configuration struct that the ChannelRouter was
// initialized with.