Merge pull request #742 from wpaulino/bitcoind-conn-atomic-alignment

chain: fix alignment of atomic integers in bitcoind conn struct
This commit is contained in:
Olaoluwa Osuntokun 2021-04-13 15:30:01 -07:00 committed by GitHub
commit fe61cc5d78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,13 +91,13 @@ type BitcoindConn struct {
started int32 // To be used atomically. started int32 // To be used atomically.
stopped int32 // To be used atomically. stopped int32 // To be used atomically.
cfg BitcoindConfig
// rescanClientCounter is an atomic counter that assigns a unique ID to // rescanClientCounter is an atomic counter that assigns a unique ID to
// each new bitcoind rescan client using the current bitcoind // each new bitcoind rescan client using the current bitcoind
// connection. // connection.
rescanClientCounter uint64 rescanClientCounter uint64
cfg BitcoindConfig
// client is the RPC client to the bitcoind node. // client is the RPC client to the bitcoind node.
client *rpcclient.Client client *rpcclient.Client