htlcswitch/hodl: add flag BogusSettle

This commit adds a new hodl flag "BogusSettle" which will be used to
emulate a node trying to settle back an incoming HTLC with a fake
preimage.
This commit is contained in:
Johan T. Halseth committed 2018-05-25 06:58:23 +02:00
1 parent 88670175c7
commit 71a1aae417
3 files changed
+15

No files matched your search

+2
View File
@@ -67,6 +67,7 @@ var hodlMaskTests = []struct {
hodl.SettleOutgoing,
hodl.FailOutgoing,
hodl.Commit,
hodl.BogusSettle,
),
flags: map[hodl.Flag]struct{}{
hodl.ExitSettle: {},
@@ -77,6 +78,7 @@ var hodlMaskTests = []struct {
hodl.SettleOutgoing: {},
hodl.FailOutgoing: {},
hodl.Commit: {},
hodl.BogusSettle: {},
},
},
}