diff options
author | Andrew Chow <github@achow101.com> | 2023-10-06 16:57:42 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-10-19 18:06:43 -0400 |
commit | 118f2d7d70b584eee7b89e58b5cd2d61c59a9bbf (patch) | |
tree | 6245f3440412bf8efad81c033a9512585d9b3bab /src/wallet/transaction.cpp | |
parent | 9af87cf3485ce3fac553a284cde37a35d1085c25 (diff) | |
download | bitcoin-118f2d7d70b584eee7b89e58b5cd2d61c59a9bbf.tar.xz |
wallet: Copy all tx metadata to watchonly wallet
When moving a tx to the watchonly wallet during migration, make sure
that all of the CWalletTx data follows it.
Diffstat (limited to 'src/wallet/transaction.cpp')
-rw-r--r-- | src/wallet/transaction.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/transaction.cpp b/src/wallet/transaction.cpp index a46846c1d4..4f78fe7520 100644 --- a/src/wallet/transaction.cpp +++ b/src/wallet/transaction.cpp @@ -24,4 +24,9 @@ int64_t CWalletTx::GetTxTime() const int64_t n = nTimeSmart; return n ? n : nTimeReceived; } + +void CWalletTx::CopyFrom(const CWalletTx& _tx) +{ + *this = _tx; +} } // namespace wallet |