Remove keys if value is empty

This commit is contained in:
Neil Booth 2016-11-06 08:54:56 +09:00
parent 48f0d5456c
commit c26bc43a00

View File

@ -190,6 +190,8 @@ class MemPool(LoggedClass):
hash168s.update(hash168 for hash168, value in txout_pairs)
for hash168 in hash168s:
self.hash168s[hash168].remove(hex_hash)
if not self.hash168s[hash168]:
del self.hash168s[hash168]
touched.update(hash168s)
# Get the raw transactions for the new hashes. Ignore the