rpc: set new raw tx hex in SubscribeTransactions resp
This commit is contained in:
parent
414f501e2b
commit
1185c48f58
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user