htlcswitch+channeldb: single tx for removing fwdpkgs
This commit changes RemoveFwdPkg to RemoveFwdPkgs so that a single tx is used instead of N where N is the number of fwd pkgs to remove.
This commit is contained in:
1 parent
e4764a67cc
commit
62e19185f1
3 files changed
+17
-9
No files matched your search
+3
-3
@@ -4850,9 +4850,9 @@ func (lc *LightningChannel) SetFwdFilter(height uint64,
|
||||
return lc.channelState.SetFwdFilter(height, fwdFilter)
|
||||
}
|
||||
|
||||
// RemoveFwdPkg permanently deletes the forwarding package at the given height.
|
||||
func (lc *LightningChannel) RemoveFwdPkg(height uint64) error {
|
||||
return lc.channelState.RemoveFwdPkg(height)
|
||||
// RemoveFwdPkgs permanently deletes the forwarding package at the given heights.
|
||||
func (lc *LightningChannel) RemoveFwdPkgs(heights ...uint64) error {
|
||||
return lc.channelState.RemoveFwdPkgs(heights...)
|
||||
}
|
||||
|
||||
// NextRevocationKey returns the commitment point for the _next_ commitment
|
||||
|
||||
Reference in new issue
Block a user