URI: 
       tMerge pull request #64 from andrewtoth/track-generated - electrum-personal-server - Maximally lightweight electrum server for a single user
  HTML git clone https://git.parazyd.org/electrum-personal-server
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit 6e82d6f2a5dd172b28f57455a761287205d236f9
   DIR parent e8b48e42240f34364faf49abfa54dcac4a5e070c
  HTML 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:
         M electrumpersonalserver/server/tran… |       6 ++++--
       
       1 file changed, 4 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrumpersonalserver/server/transactionmonitor.py b/electrumpersonalserver/server/transactionmonitor.py
       t@@ -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
       t@@ -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:
       t@@ -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