multi: populate both string and byte TXID in lnrpc.Outpoint
This commit adds a a new `MarshalOutPoint` helper in the `lnrpc` package that can be used to convert a `wire.Outpoint` to an `lnrpc.Outpoint`. By using this helper, we are less likely to forget to populate both the string and byte form of the TXID.
This commit is contained in:
6 files changed
+22
-25
No files matched your search
@@ -490,6 +490,7 @@ func (b *Batcher) cleanup(ctx context.Context) {
|
||||
rpcOP := &lnrpc.OutPoint{
|
||||
OutputIndex: lockedUTXO.Outpoint.OutputIndex,
|
||||
TxidBytes: lockedUTXO.Outpoint.TxidBytes,
|
||||
TxidStr: lockedUTXO.Outpoint.TxidStr,
|
||||
}
|
||||
_, err := b.cfg.WalletKitServer.ReleaseOutput(
|
||||
ctx, &walletrpc.ReleaseOutputRequest{
|
||||
|
||||
Reference in new issue
Block a user