mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 12:01:27 +02:00
multi: fix issues reported by whitespace linter
This commit is contained in:
@@ -179,6 +179,7 @@ func newTestBoltArbLog(chainhash chainhash.Hash,
|
||||
testArbCfg := ChannelArbitratorConfig{
|
||||
PutResolverReport: func(_ kvdb.RwTx,
|
||||
_ *channeldb.ResolverReport) error {
|
||||
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
@@ -383,6 +383,7 @@ func createTestChannelArbitrator(t *testing.T, log ArbitratorLog,
|
||||
},
|
||||
MarkChannelClosed: func(*channeldb.ChannelCloseSummary,
|
||||
...channeldb.ChannelStatus) error {
|
||||
|
||||
return nil
|
||||
},
|
||||
IsPendingClose: false,
|
||||
@@ -1635,6 +1636,7 @@ func TestChannelArbitratorCommitFailure(t *testing.T) {
|
||||
chanArb.cfg.MarkChannelClosed = func(
|
||||
*channeldb.ChannelCloseSummary,
|
||||
...channeldb.ChannelStatus) error {
|
||||
|
||||
close(closed)
|
||||
return nil
|
||||
}
|
||||
@@ -2169,6 +2171,7 @@ func TestRemoteCloseInitiator(t *testing.T) {
|
||||
// about setting of channel status.
|
||||
mockMarkClosed := func(_ *channeldb.ChannelCloseSummary,
|
||||
statuses ...channeldb.ChannelStatus) error {
|
||||
|
||||
for _, status := range statuses {
|
||||
err := alice.State().ApplyChanStatus(status)
|
||||
if err != nil {
|
||||
|
@@ -62,6 +62,7 @@ func newHtlcResolverTestContext(t *testing.T,
|
||||
Sweeper: newMockSweeper(),
|
||||
IncubateOutputs: func(wire.OutPoint, *lnwallet.OutgoingHtlcResolution,
|
||||
*lnwallet.IncomingHtlcResolution, uint32) error {
|
||||
|
||||
return nil
|
||||
},
|
||||
DeliverResolutionMsg: func(msgs ...ResolutionMsg) error {
|
||||
@@ -86,6 +87,7 @@ func newHtlcResolverTestContext(t *testing.T,
|
||||
// this so set nolint directive.
|
||||
checkpointFunc := func(c ContractResolver, // nolint
|
||||
r ...*channeldb.ResolverReport) error {
|
||||
|
||||
return testCtx.checkpoint(c, r...)
|
||||
}
|
||||
|
||||
@@ -253,6 +255,7 @@ func TestHtlcSuccessSecondStageResolution(t *testing.T) {
|
||||
// to resolve our htlc.
|
||||
preCheckpoint: func(ctx *htlcResolverTestContext,
|
||||
_ bool) error {
|
||||
|
||||
ctx.notifier.SpendChan <- &chainntnfs.SpendDetail{
|
||||
SpendingTx: sweepTx,
|
||||
SpenderTxHash: &sweepHash,
|
||||
|
@@ -861,6 +861,7 @@ func TestHtlcTimeoutSecondStageRemoteSpend(t *testing.T) {
|
||||
// success transcation.
|
||||
preCheckpoint: func(ctx *htlcResolverTestContext,
|
||||
_ bool) error {
|
||||
|
||||
ctx.notifier.SpendChan <- &chainntnfs.SpendDetail{
|
||||
SpendingTx: remoteSuccessTx,
|
||||
SpenderTxHash: &successTxid,
|
||||
|
Reference in New Issue
Block a user