Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed seg fault while recovering wallet by making encryption optional… #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions pywallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4852,8 +4852,7 @@ def retrieve_last_pywallet_md5():
size = read_device_size(options.recov_size)

passphraseRecov=''
while passphraseRecov=='':
passphraseRecov=raw_input("Enter the passphrase for the wallet that will contain all the recovered keys: ")
passphraseRecov=raw_input("Enter the passphrase for the wallet that will contain all the recovered keys: ")
passphrase=passphraseRecov

passes=[]
Expand All @@ -4870,14 +4869,14 @@ def retrieve_last_pywallet_md5():
recoveredKeys=recov(device, passes, size, 10240, options.recov_outputdir)
recoveredKeys=list(set(recoveredKeys))
# print recoveredKeys[0:5]

print "\nrecov succeeded"

db_env = create_env(options.recov_outputdir)
recov_wallet_name = "recovered_wallet_%s.dat"%ts()

create_new_wallet(db_env, recov_wallet_name, 32500)

if passphraseRecov!="I don't want to put a password on the recovered wallet and I know what can be the consequences.":
if passphraseRecov!="":
db = open_wallet(db_env, recov_wallet_name, True)

NPP_salt=os.urandom(8)
Expand Down