Windows 7 x64, cygwin
работает отлично!
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
#!/usr/bin/env python
#Python 2.6.6
#[GCC 4.4.5] on linux2
from optparse import OptionParser
import bsddb.db
parser = OptionParser(version='Lis@20110605')
parser.add_option('-t', '--tx', dest='tx', help='remove tx')
parser.add_option('-s', '--show', dest='show', default=False, action='store_true', help='print all tx')
parser.add_option('-d', '--dir', dest='dir', default='.bitcoin', help='dir of wallet')
parser.add_option('-f', '--file', dest='file', default='wallet.dat', help='name file wallet')
(options, args) = parser.parse_args()
_DIR_ = options.dir
_FILE_ = options.file
_SHOW_ = options.show
_TX_ = options.tx
if _TX_ and len(_TX_) != 64:
exit('error: wrong tx flag')
if not _TX_:
_SHOW_ = True
if _TX_:
writable=True
else:
writable=False
def revers(data):
date_revers = ''
for i in range(-1, -len(data), -2):
date_revers += data[i-1] + data[i]
return date_revers
try:
db_env = bsddb.db.DBEnv(0)
db_dir = _DIR_
r = db_env.open(db_dir, (bsddb.db.DB_CREATE|bsddb.db.DB_INIT_LOCK|bsddb.db.DB_INIT_LOG|bsddb.db.DB_INIT_MPOOL|bsddb.db.DB_INIT_TXN|bsddb.db.DB_THREAD|bsddb.db.DB_RECOVER))
db = bsddb.db.DB(db_env)
flags = bsddb.db.DB_THREAD | (bsddb.db.DB_CREATE if writable else bsddb.db.DB_RDONLY)
r = db.open(_FILE_, "main", bsddb.db.DB_BTREE, flags)
except:
exit ('error: can not find file')
try:
if _TX_:
del_key = '027478' + revers(_TX_)
db.delete(del_key.decode('hex'))
db.sync()
except:
exit ('error: can not find tx')
if _SHOW_:
data = db.items()
for i in range(len(data)):
if ord(data[i][0][0]) == 2 and data[i][0][1:ord(data[i][0][0])+1] == 'tx':
print i, 'http://blockexplorer.com/tx/' + revers(data[i][0][3:].encode('hex'))
db.close()