lnwallet: add previous_outpoints to ListTransactionDetails

This commit is contained in:
priyanshiiit committed 2022-06-27 15:57:57 +05:30
1 parent a00964febb
commit 61493a5f29
3 files changed
+196 -15

No files matched your search

+14
View File
@@ -98,6 +98,17 @@ type OutputDetail struct {
IsOurAddress bool
}
// PreviousOutPoint contains information about the previous outpoint.
type PreviousOutPoint struct {
// OutPoint is the transaction out point in the format txid:n.
OutPoint string
// IsOurOutput denotes if the previous output is controlled by the
// internal wallet. The flag will only detect p2wkh, np2wkh and p2tr
// inputs as its own.
IsOurOutput bool
}
// TransactionDetail describes a transaction with either inputs which belong to
// the wallet, or has outputs that pay to the wallet.
type TransactionDetail struct {
@@ -141,6 +152,9 @@ type TransactionDetail struct {
// Label is an optional transaction label.
Label string
// PreviousOutpoints are the inputs for a transaction.
PreviousOutpoints []PreviousOutPoint
}
// TransactionSubscription is an interface which describes an object capable of