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

+739 -729
View File
File diff suppressed because it is too large. Load diff
+3
View File
@@ -708,6 +708,9 @@ message Transaction {
// The raw transaction hex.
string raw_tx_hex = 9;
// A label that was optionally set on transaction broadcast.
string label = 10;
}
message GetTransactionsRequest {
/*
+4
View File
@@ -4455,6 +4455,10 @@
"raw_tx_hex": {
"type": "string",
"description": "The raw transaction hex."
},
"label": {
"type": "string",
"description": "A label that was optionally set on transaction broadcast."
}
}
},
+1
View File
@@ -36,6 +36,7 @@ func RPCTransactionDetails(txns []*lnwallet.TransactionDetail) *TransactionDetai
TotalFees: tx.TotalFees,
DestAddresses: destAddresses,
RawTxHex: hex.EncodeToString(tx.RawTx),
Label: tx.Label,
}
}
+4
View File
@@ -93,6 +93,10 @@
"raw_tx_hex": {
"type": "string",
"description": "The raw transaction hex."
},
"label": {
"type": "string",
"description": "A label that was optionally set on transaction broadcast."
}
}
},