diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4e763a5..c1b7d90 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -1,3 +1,8 @@ +Version 0.2 +----------- + +- update sample run script, remove empty addresses from mempool + Version 0.1 ------------ diff --git a/samples/scripts/run b/samples/scripts/run index fe28826..5bafc69 100755 --- a/samples/scripts/run +++ b/samples/scripts/run @@ -1,3 +1,3 @@ -#!/bin/sh +j#!/bin/sh echo "Launching ElectrumX server..." -exec 2>&1 envdir ./env /bin/sh -c 'envuidgid $USERNAME python3 $SERVER_MAIN' +exec 2>&1 envdir ./env /bin/sh -c 'envuidgid $USERNAME python3 $ELECTRUMX' diff --git a/server/block_processor.py b/server/block_processor.py index 4ea5d55..94a4cf3 100644 --- a/server/block_processor.py +++ b/server/block_processor.py @@ -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 diff --git a/server/version.py b/server/version.py index d8049bf..764e2d3 100644 --- a/server/version.py +++ b/server/version.py @@ -1 +1 @@ -VERSION = "ElectrumX 0.1" +VERSION = "ElectrumX 0.2"