lnrpc: display transaction label in transaction details

This commit is contained in:
carla committed 2020-05-19 13:31:51 +02:00
1 parent 52137459e4
commit e8ca306f12
7 files changed
+756 -729

No files matched your search

+2
View File
@@ -519,6 +519,7 @@ func minedTransactionsToDetails(
TotalFees: int64(tx.Fee),
DestAddresses: destAddresses,
RawTx: tx.Transaction,
Label: tx.Label,
}
balanceDelta, err := extractBalanceDelta(tx, wireTx)
@@ -564,6 +565,7 @@ func unminedTransactionsToDetail(
Timestamp: summary.Timestamp,
DestAddresses: destAddresses,
RawTx: summary.Transaction,
Label: summary.Label,
}
balanceDelta, err := extractBalanceDelta(summary, wireTx)
+3
View File
@@ -103,6 +103,9 @@ type TransactionDetail struct {
// RawTx returns the raw serialized transaction.
RawTx []byte
// Label is an optional transaction label.
Label string
}
// TransactionSubscription is an interface which describes an object capable of