main: mempool address index

This commit is contained in:
Braydon Fuller
2016-04-04 16:37:43 -04:00
committed by Braydon Fuller
parent 1bd65a5c4b
commit b66eff47cf
8 changed files with 254 additions and 1 deletions

View File

@@ -1414,6 +1414,9 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState &state, const C
// Store transaction in memory
pool.addUnchecked(hash, entry, setAncestors, !IsInitialBlockDownload());
if (fAddressIndex) {
pool.addAddressIndex(entry, view);
}
// trim mempool and check if tx was trimmed
if (!fOverrideMempoolLimit) {