mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
channeldb: fix data race in TestSerializeHTLCEntries
This commit is contained in:
parent
0df880139f
commit
0e12a91715
2 changed files with 9 additions and 2 deletions
|
@ -211,9 +211,10 @@ func TestSerializeHTLCEntries(t *testing.T) {
|
||||||
func TestSerializeRevocationLog(t *testing.T) {
|
func TestSerializeRevocationLog(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
// Copy the testRevocationLog.
|
// Copy the testRevocationLog and testHTLCEntry.
|
||||||
rl := testRevocationLog
|
rl := testRevocationLog
|
||||||
rl.HTLCEntries = []*HTLCEntry{&testHTLCEntry}
|
htlc := testHTLCEntry
|
||||||
|
rl.HTLCEntries = []*HTLCEntry{&htlc}
|
||||||
|
|
||||||
// Write the tlv stream.
|
// Write the tlv stream.
|
||||||
buf := bytes.NewBuffer([]byte{})
|
buf := bytes.NewBuffer([]byte{})
|
||||||
|
|
|
@ -15,8 +15,14 @@
|
||||||
* [Add previous_outpoints to listchaintxns](https://github.com/lightningnetwork/lnd/pull/6321)
|
* [Add previous_outpoints to listchaintxns](https://github.com/lightningnetwork/lnd/pull/6321)
|
||||||
|
|
||||||
|
|
||||||
|
## Bug Fixes
|
||||||
|
|
||||||
|
* Fixed data race found in
|
||||||
|
[`TestSerializeHTLCEntries`](https://github.com/lightningnetwork/lnd/pull/6673).
|
||||||
|
|
||||||
# Contributors (Alphabetical Order)
|
# Contributors (Alphabetical Order)
|
||||||
|
|
||||||
* Elle Mouton
|
* Elle Mouton
|
||||||
* ErikEk
|
* ErikEk
|
||||||
* Priyansh Rastogi
|
* Priyansh Rastogi
|
||||||
|
* Yong Yu
|
||||||
|
|
Loading…
Add table
Reference in a new issue