site connection stats, msgpack unpacker stats, make sure we dont skip any namecoin blocks, no more sha1 hash to content.json, keep 5 open connection in passive mode, publish got content to 5 peers, upnp retry 3 times, keep connection loggers
This commit is contained in:
parent
2491814070
commit
9c5176a8cb
7 changed files with 70 additions and 11 deletions
|
@ -107,9 +107,10 @@ while 1:
|
|||
rpc.waitforblock()
|
||||
break # Block found
|
||||
except Exception, err: # Timeout
|
||||
pass
|
||||
print "Exception", err
|
||||
last_block = int(rpc.getinfo()["blocks"])
|
||||
processBlock(last_block)
|
||||
for block_id in range(config["lastprocessed"]+1, last_block+1):
|
||||
processBlock(block_id)
|
||||
|
||||
config["lastprocessed"] = last_block
|
||||
open(config_path, "w").write(json.dumps(config, indent=2))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue