Пример #1
0
if options.verbose:
    keys = info.keys()
elif coin == "Vcash":
    # No testnet in info
    keys = ["balance"]
else:
    # Primecoin does not provide difficulty in getinfo, only separately
    keys = ["balance", "testnet"]

if coin == "cryptonite":
    info["balance"] = ep_dec(info["balance"])
    
if options.diff:
    diff = options.diff
else:
    diff = s.getdifficulty()

    # Hybrid PoW / PoS
    if type(diff) == dict:
        diff = diff['proof-of-work']
        
        # Print PoW diff only for simpler parsing on external scripts
        info['difficulty'] = diff

    md = meandiff(coin, diff)
    if md > 0:
        keys.append('meandiff')
        info['meandiff'] = md

output = []
for key in keys: