rpc: set new raw tx hex in SubscribeTransactions resp

This commit is contained in:
Olaoluwa Osuntokun 2019-06-11 20:58:37 -07:00
parent 414f501e2b
commit 1185c48f58
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -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