diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-01-18 20:31:08 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-03-17 11:00:45 -0400 |
commit | b799814bbd53736b79495072f3c9e05989a465e8 (patch) | |
tree | 0d1bb9ae46b8dd858ffbff2d053bca68aeb41f66 /src/wallet/spend.h | |
parent | 46022953ee2e8113167bafd1fd48a383a578b13c (diff) | |
download | bitcoin-b799814bbd53736b79495072f3c9e05989a465e8.tar.xz |
wallet: Store tx time in COutput
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r-- | src/wallet/spend.h | 8 |
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 |