walletool icon indicating copy to clipboard operation
walletool copied to clipboard

checksum error

Open mikejnpc opened this issue 3 years ago • 3 comments

\Python36\walletool-master\walletool\wallet_files.py", line 16, in read_wallet_dat d.open(filename, 'main', db.DB_BTREE, db.DB_THREAD | db.DB_RDONLY) bsddb3.db.DBInvalidArgError: (22, 'Invalid argument -- BDB0210 E:\Python36\walletool-master\R.DAT: metadata page checksum error')

reason there is a checksum error?

mikejnpc avatar Jan 10 '21 06:01 mikejnpc

I am getting this error as well

File "/mnt/c/Users/jon/Documents/walletool-master/walletool/wallet_files.py", line 16, in read_wallet_dat d.open(filename, 'main', db.DB_BTREE, db.DB_THREAD | db.DB_RDONLY) bsddb3.db.DBInvalidArgError: (22, 'Invalid argument -- BDB0210 /mnt/c/Users/jon/Documents/walletool-master/wallet.dat: metadata page checksum error')

isp avatar Jan 21 '21 20:01 isp

This sounds like the file is corrupted.

Since wallet.dat is a BerkeleyDB file, you could attempt using the db_dump utility's -r option for recovery; something like

cp wallet.dat wallet.dat.bak  # grab a backup
db_dump -r wallet.dat | db_load wallet-recovered.dat

and then use Walletool as usual.

akx avatar Jan 22 '21 09:01 akx

error message

Traceback (most recent call last): File "wt_extract_keys.py", line 2, in from walletool.wallet_files import read_wallet_dat ImportError: No module named walletool.wallet_files

hmt1027 avatar Jun 27 '21 04:06 hmt1027