Skip to content

Commit

Permalink
Fix unconfirmed flag
Browse files Browse the repository at this point in the history
Prepare 0.9.3
  • Loading branch information
Neil Booth committed Dec 11, 2016
1 parent bb17af1 commit 4441221
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions RELEASE-NOTES
@@ -1,3 +1,9 @@
version 0.9.3
-------------

- unconfirmed flag indicating whether mempool txs have unconfirmed inputs
was inverted

version 0.9.2
-------------

Expand Down
5 changes: 2 additions & 3 deletions server/mempool.py
Expand Up @@ -268,12 +268,11 @@ async def transactions(self, hash168):
item = self.txs.get(hex_hash)
if not item or not raw_tx:
continue
tx = Deserializer(raw_tx).read_tx()
txin_pairs, txout_pairs = item
tx_fee = (sum(v for hash168, v in txin_pairs)
- sum(v for hash168, v in txout_pairs))
unconfirmed = any(txin.prev_hash not in self.txs
for txin in tx.inputs)
tx = Deserializer(raw_tx).read_tx()
unconfirmed = any(txin.prev_hash in self.txs for txin in tx.inputs)
result.append((hex_hash, tx_fee, unconfirmed))
return result

Expand Down
2 changes: 1 addition & 1 deletion server/version.py
@@ -1 +1 @@
VERSION = "ElectrumX 0.9.2"
VERSION = "ElectrumX 0.9.3"

0 comments on commit 4441221

Please sign in to comment.