Bitcoin Forum
May 07, 2024, 09:45:34 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Pywallet failed to dump wallet  (Read 788 times)
qvqgg (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 03, 2017, 07:02:07 PM
Last edit: January 03, 2017, 07:42:46 PM by qvqgg
 #1

Pywallet online says 'Dump page error' and while trying to dump it in terminal it says:


 Wallet data not recognized: {'__type__': 'destdata', '__value__': 'O\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00k\x07TX\x01\x00\x00\x00"1CsmG9zjR41aiHCHWKqvgcp54ZEWys8T48\x06Uplate\x00\x8c\xb9\x00\x00\x00\x00\x00\x06Uplata\x00\x00', '__key__': '\x08destdata"1CsmG9zjR41aiHCHWKqvgcp54ZEWys8T48\x03rr1'}
Wallet data not recognized: {'__type__': 'destdata', '__value__': 'I\x01\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x97%VX\x01\x00\x00\x00"1CsmG9zjR41aiHCHWKqvgcp54ZEWys8T48\x06Uplate\xc1w\xb0\x00\x00\x00\x00\x00\x00\x00\x00', '__key__': '\x08destdata"1CsmG9zjR41aiHCHWKqvgcp54ZEWys8T48\x03rr3'}
 Wallet data not recognized: {'__type__': 'destdata', '__value__': 'O\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00k\x07TX\x01\x00\x00\x00"1CsmG9zjR41aiHCHWKqvgcp54ZEWys8T48\x06Uplate\x00\x8c\xb9\x00\x00\x00\x00\x00\x06Uplata\x00\x00', '__key__': '\x08destdata"1CsmG9zjR41aiHCHWKqvgcp54ZEWys8T48\x03rr1'}
Wallet data not recognized: {'__type__': 'destdata', '__value__': 'I\x01\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x97%VX\x01\x00\x00\x00"1CsmG9zjR41aiHCHWKqvgcp54ZEWys8T48\x06Uplate\xc1w\xb0\x00\x00\x00\x00\x00\x00\x00\x00', '__key__': '\x08destdata"1CsmG9zjR41aiHCHWKqvgcp54ZEWys8T48\x03rr3'}

( this is just example, it posted a bunch of similar stuff )

and in the end:
Traceback (most recent call last):
  File "pywallet.py", line 2111, in parse_wallet
    d.update(parse_BlockLocator(vds))
TypeError: 'NoneType' object is not iterable
ERROR parsing wallet.dat, type bestblock
key data:    bestblock
key data in hex: 0962657374626c6f636b
value data in hex: 34fc010000

What should I do ? How can I find private key from wallet.dat ?

I didn't knew what to type for version so I left 0 on web pywallet
1715075134
Hero Member
*
Offline Offline

Posts: 1715075134

View Profile Personal Message (Offline)

Ignore
1715075134
Reply with quote  #2

1715075134
Report to moderator
1715075134
Hero Member
*
Offline Offline

Posts: 1715075134

View Profile Personal Message (Offline)

Ignore
1715075134
Reply with quote  #2

1715075134
Report to moderator
1715075134
Hero Member
*
Offline Offline

Posts: 1715075134

View Profile Personal Message (Offline)

Ignore
1715075134
Reply with quote  #2

1715075134
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715075134
Hero Member
*
Offline Offline

Posts: 1715075134

View Profile Personal Message (Offline)

Ignore
1715075134
Reply with quote  #2

1715075134
Report to moderator
1715075134
Hero Member
*
Offline Offline

Posts: 1715075134

View Profile Personal Message (Offline)

Ignore
1715075134
Reply with quote  #2

1715075134
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6606


Just writing some code


View Profile WWW
January 03, 2017, 07:35:42 PM
 #2

The Bitcoin Core wallet structure has changed since pywallet was last updated so pywallet will not work very well with new wallets.

I suggest that you use Bitcoin Core's dumpwallet console command to get all of your private keys instead of a 3rd party tool.

qvqgg (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
January 03, 2017, 07:46:30 PM
 #3

I can't, because it didn't sync till the end ( lack of space ), so I backed up wallet and purged bitcoin core. Can I import that wallet.dat in new Bitcoin core if I install it and sync it, and if I have to, how can I recover wallet ( if it's corrupted ) ?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6606


Just writing some code


View Profile WWW
January 03, 2017, 10:14:29 PM
 #4

I can't, because it didn't sync till the end ( lack of space ), so I backed up wallet and purged bitcoin core.
Bitcoin Core does not need to be synced in order to dump the private keys. You can start it and dump the private keys before much syncing happens. You can also enable pruning mode which will significantly reduce the amount of space required. Pruning means that it will delete most of the blockchain once it has downloaded and verified it.

Can I import that wallet.dat in new Bitcoin core if I install it and sync it, and if I have to, how can I recover wallet ( if it's corrupted ) ?
Just put the wallet.dat file in the datadir and the wallet will be used. Your wallet is not likely to be corrupted.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!