From efe3ebd9eed4f8d820731164f0315302ca099818 Mon Sep 17 00:00:00 2001
From: Neil Booth <kyuupichan@gmail.com>
Date: Tue, 20 Dec 2016 06:50:55 +0900
Subject: [PATCH] Remove None from touched when backing up.

Fixes #84
---
 server/block_processor.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/server/block_processor.py b/server/block_processor.py
index 10d5153..a62badc 100644
--- a/server/block_processor.py
+++ b/server/block_processor.py
@@ -585,8 +585,9 @@ class BlockProcessor(server.db.DB):
 
         self.logger.info('backed up to height {:,d}'.format(self.height))
 
-        # touched includes those passed into this function.  That will
-        # generally be empty but is harmless if not.
+        # touched includes those passed into this function.  That likely
+        # has additional addresses which is harmless.  Remove None.
+        touched.discard(None)
         self.backup_flush(touched)
 
     def backup_txs(self, tx_hashes, txs, touched):