lnrpc: add UnmarshalAMP decoding

This commit is contained in:
Conner Fromknecht committed 2021-04-07 12:09:47 -07:00
1 parent 00581efec6
commit 352ce10658
3 files changed
+132 -7

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ func CreateRPCInvoice(invoice *channeldb.Invoice,
rpcHtlc.Amp = &lnrpc.AMP{
RootShare: rootShare[:],
SetId: setID[:],
ChildIndex: uint32(htlc.AMP.Record.ChildIndex()),
ChildIndex: htlc.AMP.Record.ChildIndex(),
Hash: htlc.AMP.Hash[:],
Preimage: preimage,
}