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:
3 files changed
+15
No files matched your search
@@ -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: {},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user