channeldb: add method to wipe all forwarding packages

This commit adds a method, Wipe, to remove all forwarding packages on
disk for a given channel.
This commit is contained in:
yyforyongyu committed 2021-09-23 13:22:33 +08:00
1 parent 0fff613f61
commit 3d50edf9f8
3 files changed
+69

No files matched your search

+4
View File
@@ -5373,6 +5373,10 @@ func (*mockPackager) RemovePkg(tx kvdb.RwTx, height uint64) error {
return nil
}
func (*mockPackager) Wipe(tx kvdb.RwTx) error {
return nil
}
func (*mockPackager) AckSettleFails(tx kvdb.RwTx,
settleFailRefs ...channeldb.SettleFailRef) error {
return nil