Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this goes into the same directory as scan-wallets.py&process-claims.py&login.py
- import glob
- from decimal import *
- getcontext().prec = 8
- P = glob.glob('./*.sat*')
- satoshi = 0
- for x in range(len(P) - 1):
- f = open(P[x], 'r')
- sat = f.read()
- if(len(sat) > 0):
- satoshi = int(satoshi) + int(sat)
- BTC = Decimal(satoshi) / Decimal(100000000)
- f = open('rawsatoshi.txt', 'w')
- f.write(str(satoshi))
- f.close()
- f = open('satoshi.html', 'w')
- f.write(str(BTC) + '\n')
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement