multi: refactor NewAnchorResolutions to return fixed values
This commit adds a new struct AnchorResolutions which wraps the anchor resolutions for local/remote/pending remote commitment transactions. It is then returned from NewAnchorResolutions. Thus the caller knows how to retrieve a certain anchor resolution.
This commit is contained in:
5 files changed
+49
-29
No files matched your search
@@ -241,7 +241,7 @@ type arbChannel struct {
|
||||
// commitment transactions.
|
||||
//
|
||||
// NOTE: Part of the ArbChannel interface.
|
||||
func (a *arbChannel) NewAnchorResolutions() ([]*lnwallet.AnchorResolution,
|
||||
func (a *arbChannel) NewAnchorResolutions() (*lnwallet.AnchorResolutions,
|
||||
error) {
|
||||
|
||||
// Get a fresh copy of the database state to base the anchor resolutions
|
||||
|
||||
Reference in new issue
Block a user