multi: add keep-failed-payment-attempts flag

This commit is contained in:
Tommy Volk committed 2022-07-03 21:04:27 +00:00
1 parent e6277986fd
commit 8291e8a170
7 files changed
+72 -34

No files matched your search

+8 -6
View File
@@ -247,10 +247,11 @@ type DB struct {
// channelStateDB separates all DB operations on channel state.
channelStateDB *ChannelStateDB
dbPath string
graph *ChannelGraph
clock clock.Clock
dryRun bool
dbPath string
graph *ChannelGraph
clock clock.Clock
dryRun bool
keepFailedPaymentAttempts bool
}
// Open opens or creates channeldb. Any necessary schemas migrations due
@@ -303,8 +304,9 @@ func CreateWithBackend(backend kvdb.Backend, modifiers ...OptionModifier) (*DB,
},
backend: backend,
},
clock: opts.clock,
dryRun: opts.dryRun,
clock: opts.clock,
dryRun: opts.dryRun,
keepFailedPaymentAttempts: opts.keepFailedPaymentAttempts,
}
// Set the parent pointer (only used in tests).