aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/spend.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2022-01-18 20:31:08 -0500
committerAndrew Chow <achow101-github@achow101.com>2022-03-17 11:00:45 -0400
commitb799814bbd53736b79495072f3c9e05989a465e8 (patch)
tree0d1bb9ae46b8dd858ffbff2d053bca68aeb41f66 /src/wallet/spend.h
parent46022953ee2e8113167bafd1fd48a383a578b13c (diff)
downloadbitcoin-b799814bbd53736b79495072f3c9e05989a465e8.tar.xz
wallet: Store tx time in COutput
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r--src/wallet/spend.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wallet/spend.h b/src/wallet/spend.h
index eb0a2ec05d..86735fc998 100644
--- a/src/wallet/spend.h
+++ b/src/wallet/spend.h
@@ -48,7 +48,10 @@ public:
*/
bool safe;
- COutput(const CWallet& wallet, const CWalletTx& wtx, int iIn, int depth, bool spendable, bool solvable, bool safe, bool use_max_sig_in)
+ /** The time of the transaction containing this output as determined by CWalletTx::nTimeSmart */
+ int64_t time;
+
+ COutput(const CWallet& wallet, const CWalletTx& wtx, int iIn, int depth, bool spendable, bool solvable, bool safe, int64_t time, bool use_max_sig_in)
: tx(&wtx),
i(iIn),
depth(depth),
@@ -56,7 +59,8 @@ public:
spendable(spendable),
solvable(solvable),
use_max_sig(use_max_sig_in),
- safe(safe)
+ safe(safe),
+ time(time)
{
// If known and signable by the given wallet, compute input_bytes
// Failure will keep this value -1