paych: API to pre-fund channels

This commit is contained in:
Łukasz Magiera
2022-01-20 18:15:46 +01:00
parent c315111bc7
commit 8e46b9ea5d
9 changed files with 168 additions and 33 deletions
+5
View File
@@ -337,4 +337,9 @@ func (w *WrapperV1Full) clientRetrieve(ctx context.Context, order RetrievalOrder
finish(w.ClientExport(ctx, eref, *ref))
}
func (w *WrapperV1Full) PaychGet(ctx context.Context, from, to address.Address, amt types.BigInt) (*api.ChannelInfo, error) {
// v0 always reserves
return w.FullNode.PaychGet(ctx, from, to, amt, true)
}
var _ FullNode = &WrapperV1Full{}