From be43b7469dab4438b73ed222fa7ec4db596d63d2 Mon Sep 17 00:00:00 2001 From: Eirik Ogilvie-Wigley Date: Tue, 17 Jul 2018 11:49:18 -0600 Subject: [PATCH] Add sapling note data and map --- src/wallet/wallet.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index f3623df97..4e93765e1 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -263,7 +263,15 @@ public: } }; +class SaplingNoteData +{ +public: + std::list witnesses; + int witnessHeight; +}; + typedef std::map mapSproutNoteData_t; +typedef std::map mapSaplingNoteData_t; /** Decrypted note and its location in a transaction. */ struct CSproutNotePlaintextEntry @@ -351,6 +359,7 @@ private: public: mapValue_t mapValue; mapSproutNoteData_t mapSproutNoteData; + mapSaplingNoteData_t mapSaplingNoteData; std::vector > vOrderForm; unsigned int fTimeReceivedIsTxTime; unsigned int nTimeReceived; //! time received by this node @@ -404,6 +413,7 @@ public: pwallet = pwalletIn; mapValue.clear(); mapSproutNoteData.clear(); + mapSaplingNoteData.clear(); vOrderForm.clear(); fTimeReceivedIsTxTime = false; nTimeReceived = 0; @@ -459,6 +469,8 @@ public: READWRITE(nTimeReceived); READWRITE(fFromMe); READWRITE(fSpent); + // TODO: + //READWRITE(mapSaplingNoteData); if (ser_action.ForRead()) {