Create mapping from nullifiers to received notes

This is used in the same way as CTxIn.prevout (e.g. to mark transactions dirty).
This commit is contained in:
Jack Grigg
2016-08-24 15:51:56 +12:00
parent 0f1060478f
commit 8db7e25c3f
3 changed files with 48 additions and 0 deletions

View File

@@ -625,6 +625,7 @@ public:
fBroadcastTransactions = false;
}
std::map<uint256, JSOutPoint> mapNullifiers;
std::map<uint256, CWalletTx> mapWallet;
int64_t nOrderPosNext;
@@ -727,6 +728,7 @@ public:
TxItems OrderedTxItems(std::list<CAccountingEntry>& acentries, std::string strAccount = "");
void MarkDirty();
void UpdateNullifierNoteMap(const CWalletTx& wtx);
bool AddToWallet(const CWalletTx& wtxIn, bool fFromLoadWallet, CWalletDB* pwalletdb);
void SyncTransaction(const CTransaction& tx, const CBlock* pblock);
bool AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate);