aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/spend.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2022-01-17 16:05:16 -0500
committerAndrew Chow <achow101-github@achow101.com>2022-03-23 14:32:07 -0400
commit42e974e15c6deba1d9395a4da9341c9ebec6e8e5 (patch)
treeadca0196b7fbde657e49c0e9cc26bf15b1dfe470 /src/wallet/spend.h
parent14d04d5ad15ae56df56edee7ca9a202b52037889 (diff)
downloadbitcoin-42e974e15c6deba1d9395a4da9341c9ebec6e8e5.tar.xz
wallet: Remove CWallet and CWalletTx from COutput's constructor
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r--src/wallet/spend.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/spend.h b/src/wallet/spend.h
index 141ec833ee..42f1124b7e 100644
--- a/src/wallet/spend.h
+++ b/src/wallet/spend.h
@@ -54,9 +54,9 @@ public:
/** Whether the transaction containing this output is sent from the owning wallet */
bool from_me;
- COutput(const CWallet& wallet, const CWalletTx& wtx, int iIn, int depth, int input_bytes, bool spendable, bool solvable, bool safe, int64_t time, bool from_me)
- : outpoint(COutPoint(wtx.GetHash(), iIn)),
- txout(wtx.tx->vout.at(iIn)),
+ COutput(const COutPoint& outpoint, const CTxOut& txout, int depth, int input_bytes, bool spendable, bool solvable, bool safe, int64_t time, bool from_me)
+ : outpoint(outpoint),
+ txout(txout),
depth(depth),
input_bytes(input_bytes),
spendable(spendable),