electrum-personal-server

Maximally lightweight electrum server for a single user
git clone https://git.parazyd.org/electrum-personal-server
Log | Files | Refs | README

commit 6e82d6f2a5dd172b28f57455a761287205d236f9
parent e8b48e42240f34364faf49abfa54dcac4a5e070c
Author: chris-belcher <chris-belcher@users.noreply.github.com>
Date:   Tue,  6 Nov 2018 10:22:44 +0000

Merge pull request #64 from andrewtoth/track-generated

Track coinbase transactions
Diffstat:
Melectrumpersonalserver/server/transactionmonitor.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/electrumpersonalserver/server/transactionmonitor.py b/electrumpersonalserver/server/transactionmonitor.py @@ -117,7 +117,7 @@ class TransactionMonitor(object): for tx in ret: if "txid" not in tx or "category" not in tx: continue - if tx["category"] not in ("receive", "send"): + if tx["category"] not in ("receive", "send", "generate", "immature"): continue if tx["confirmations"] < 0: continue #conflicted @@ -194,6 +194,8 @@ class TransactionMonitor(object): for out in txd["vout"]] input_scriptpubkeys = [] for inn in txd["vin"]: + if "coinbase" in inn: + break try: wallet_tx = self.rpc.call("gettransaction", [inn["txid"]]) except JsonRpcError: @@ -433,7 +435,7 @@ class TransactionMonitor(object): for tx in new_txes: if "txid" not in tx or "category" not in tx: continue - if tx["category"] not in ("receive", "send"): + if tx["category"] not in ("receive", "send", "generate", "immature"): continue if tx["confirmations"] < 0: continue #conflicted