Merge pull request #3174 from Roasbeef/raw-tx-hex-get-transactions

multi: add raw tx hex to GetTransactions response
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2019-06-12 06:08:34 +02:00
commit faf0dc3d81
6 files changed
+515 -489

No files matched your search

+3
View File
@@ -3541,6 +3541,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
@@ -3552,6 +3553,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
@@ -3599,6 +3601,7 @@ func (r *rpcServer) GetTransactions(ctx context.Context,
TimeStamp: tx.Timestamp,
TotalFees: tx.TotalFees,
DestAddresses: destAddresses,
RawTxHex: hex.EncodeToString(tx.RawTx),
}
}