rpc: set new raw tx hex in SubscribeTransactions resp
This commit is contained in:
1 file changed
+2
@@ -3540,6 +3540,7 @@ func (r *rpcServer) SubscribeTransactions(req *lnrpc.GetTransactionsRequest,
|
|||||||
BlockHash: tx.BlockHash.String(),
|
BlockHash: tx.BlockHash.String(),
|
||||||
TimeStamp: tx.Timestamp,
|
TimeStamp: tx.Timestamp,
|
||||||
TotalFees: tx.TotalFees,
|
TotalFees: tx.TotalFees,
|
||||||
|
RawTxHex: hex.EncodeToString(tx.RawTx),
|
||||||
}
|
}
|
||||||
if err := updateStream.Send(detail); err != nil {
|
if err := updateStream.Send(detail); err != nil {
|
||||||
return err
|
return err
|
||||||
@@ -3551,6 +3552,7 @@ func (r *rpcServer) SubscribeTransactions(req *lnrpc.GetTransactionsRequest,
|
|||||||
Amount: int64(tx.Value),
|
Amount: int64(tx.Value),
|
||||||
TimeStamp: tx.Timestamp,
|
TimeStamp: tx.Timestamp,
|
||||||
TotalFees: tx.TotalFees,
|
TotalFees: tx.TotalFees,
|
||||||
|
RawTxHex: hex.EncodeToString(tx.RawTx),
|
||||||
}
|
}
|
||||||
if err := updateStream.Send(detail); err != nil {
|
if err := updateStream.Send(detail); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in new issue
Block a user