mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 22:54:26 +01:00
lnrpc: display transaction label in transaction details
This commit is contained in:
1466
lnrpc/rpc.pb.go
1466
lnrpc/rpc.pb.go
File diff suppressed because it is too large
Load Diff
@@ -708,6 +708,9 @@ message Transaction {
|
|||||||
|
|
||||||
// The raw transaction hex.
|
// The raw transaction hex.
|
||||||
string raw_tx_hex = 9;
|
string raw_tx_hex = 9;
|
||||||
|
|
||||||
|
// A label that was optionally set on transaction broadcast.
|
||||||
|
string label = 10;
|
||||||
}
|
}
|
||||||
message GetTransactionsRequest {
|
message GetTransactionsRequest {
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -4455,6 +4455,10 @@
|
|||||||
"raw_tx_hex": {
|
"raw_tx_hex": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The raw transaction hex."
|
"description": "The raw transaction hex."
|
||||||
|
},
|
||||||
|
"label": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A label that was optionally set on transaction broadcast."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ func RPCTransactionDetails(txns []*lnwallet.TransactionDetail) *TransactionDetai
|
|||||||
TotalFees: tx.TotalFees,
|
TotalFees: tx.TotalFees,
|
||||||
DestAddresses: destAddresses,
|
DestAddresses: destAddresses,
|
||||||
RawTxHex: hex.EncodeToString(tx.RawTx),
|
RawTxHex: hex.EncodeToString(tx.RawTx),
|
||||||
|
Label: tx.Label,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,10 @@
|
|||||||
"raw_tx_hex": {
|
"raw_tx_hex": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The raw transaction hex."
|
"description": "The raw transaction hex."
|
||||||
|
},
|
||||||
|
"label": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "A label that was optionally set on transaction broadcast."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -519,6 +519,7 @@ func minedTransactionsToDetails(
|
|||||||
TotalFees: int64(tx.Fee),
|
TotalFees: int64(tx.Fee),
|
||||||
DestAddresses: destAddresses,
|
DestAddresses: destAddresses,
|
||||||
RawTx: tx.Transaction,
|
RawTx: tx.Transaction,
|
||||||
|
Label: tx.Label,
|
||||||
}
|
}
|
||||||
|
|
||||||
balanceDelta, err := extractBalanceDelta(tx, wireTx)
|
balanceDelta, err := extractBalanceDelta(tx, wireTx)
|
||||||
@@ -564,6 +565,7 @@ func unminedTransactionsToDetail(
|
|||||||
Timestamp: summary.Timestamp,
|
Timestamp: summary.Timestamp,
|
||||||
DestAddresses: destAddresses,
|
DestAddresses: destAddresses,
|
||||||
RawTx: summary.Transaction,
|
RawTx: summary.Transaction,
|
||||||
|
Label: summary.Label,
|
||||||
}
|
}
|
||||||
|
|
||||||
balanceDelta, err := extractBalanceDelta(summary, wireTx)
|
balanceDelta, err := extractBalanceDelta(summary, wireTx)
|
||||||
|
|||||||
@@ -103,6 +103,9 @@ type TransactionDetail struct {
|
|||||||
|
|
||||||
// RawTx returns the raw serialized transaction.
|
// RawTx returns the raw serialized transaction.
|
||||||
RawTx []byte
|
RawTx []byte
|
||||||
|
|
||||||
|
// Label is an optional transaction label.
|
||||||
|
Label string
|
||||||
}
|
}
|
||||||
|
|
||||||
// TransactionSubscription is an interface which describes an object capable of
|
// TransactionSubscription is an interface which describes an object capable of
|
||||||
|
|||||||
Reference in New Issue
Block a user