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(),
|
||||
TimeStamp: tx.Timestamp,
|
||||
TotalFees: tx.TotalFees,
|
||||
RawTxHex: hex.EncodeToString(tx.RawTx),
|
||||
}
|
||||
if err := updateStream.Send(detail); err != nil {
|
||||
return err
|
||||
@ -3551,6 +3552,7 @@ func (r *rpcServer) SubscribeTransactions(req *lnrpc.GetTransactionsRequest,
|
||||
Amount: int64(tx.Value),
|
||||
TimeStamp: tx.Timestamp,
|
||||
TotalFees: tx.TotalFees,
|
||||
RawTxHex: hex.EncodeToString(tx.RawTx),
|
||||
}
|
||||
if err := updateStream.Send(detail); err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user