added bitcoin inflation chart csv generation script

This commit is contained in:
2011-06-16 12:18:25 +02:00
parent 426a39022a
commit 3cac5142f1
3 changed files with 96 additions and 0 deletions

14
bitcoin.blockchain/test.py Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/python2.6
import sys
import bsddb
bitcoin_dir = "%s/Library/Application Support/Bitcoin/" % os.environ['HOME']
def main(argv):
d = bsddb.btopen("%s/blkindex.dat" % bitcoin_dir)
print d.keys()
sys.exit(main(sys.argv))