From 118f2d7d70b584eee7b89e58b5cd2d61c59a9bbf Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 6 Oct 2023 16:57:42 -0400 Subject: 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. --- src/wallet/transaction.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/wallet/transaction.cpp') 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 -- cgit v1.2.3