chain: fix alignment of atomic integers in bitcoind conn struct
As reported by https://github.com/lightningnetwork/lnd/issues/5196, the new atomic integer isn't properly aligned which can caus panics on 32-bit operating systems.. Tof fix this issue, we move the 64-bit integer to lay after the two 32-bit integers at the top of the struct.
This commit is contained in:
parent
683061f797
commit
2ff451f6bc
1 changed files with 2 additions and 2 deletions
|
@ -91,13 +91,13 @@ type BitcoindConn struct {
|
|||
started int32 // To be used atomically.
|
||||
stopped int32 // To be used atomically.
|
||||
|
||||
cfg BitcoindConfig
|
||||
|
||||
// rescanClientCounter is an atomic counter that assigns a unique ID to
|
||||
// each new bitcoind rescan client using the current bitcoind
|
||||
// connection.
|
||||
rescanClientCounter uint64
|
||||
|
||||
cfg BitcoindConfig
|
||||
|
||||
// client is the RPC client to the bitcoind node.
|
||||
client *rpcclient.Client
|
||||
|
||||
|
|
Loading…
Reference in a new issue