Remove keys if value is empty
This commit is contained in:
parent
48f0d5456c
commit
c26bc43a00
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user