lnwallet: add new aux resolver interface
This will be used by external callers to modify the way we resolve contracts on chain. For a given contract, we'll store an extra "blob", that will later be presented during the sweeping phase.
This commit is contained in:
8 files changed
+303
-23
No files matched your search
@@ -493,3 +493,14 @@ func (a *MockAuxSigner) VerifySecondLevelSigs(chanState AuxChanState,
|
||||
|
||||
return args.Error(0)
|
||||
}
|
||||
|
||||
type MockAuxContractResolver struct{}
|
||||
|
||||
// ResolveContract is called to resolve a contract that needs
|
||||
// additional information to resolve properly. If no extra information
|
||||
// is required, a nil Result error is returned.
|
||||
func (*MockAuxContractResolver) ResolveContract(
|
||||
ResolutionReq) fn.Result[tlv.Blob] {
|
||||
|
||||
return fn.Ok[tlv.Blob](nil)
|
||||
}
|
||||
Reference in new issue
Block a user