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
Cannot import testnet private key #20
Comments
For the first core dump, I found where it is dying, tal_vfmt is crashing. It all starts in pettycoin_to_base58:
It prints: And then core dumps. The backtrace: (gdb) bt |
Untested code is buggy code! Fixes: #20 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Untested code is buggy code! Fixes: #20 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Testing with git/HEAD (without the patch I sent).
./bitcoin-cli dumpprivkey mxEP2midj7DRBW4yCxBBSs2MWcMsQfqQVw
cNkMqSEm5FsNGTPcKUaUjoVA8adAm9tezdAjsAeGfxtxjhps76M8
This is a testnet address, starts with 'c'. The first time, when the dumbwallet.key does not exists dumbwallet does a core dump.
./dumbwallet setup P-cNkMqSEm5FsNGTPcKUaUjoVA8adAm9tezdAjsAeGfxtxjhps76M8
Aborted (core dumped)
Strace:
chdir("/home/len/.pettycoin") = 0
open("dumbwallet.key", O_RDONLY) = -1 ENOENT (No such file or directory)
open("dumbwallet.key", O_WRONLY|O_CREAT|O_EXCL, 0400) = 3
write(3, "|m\32", 3) = 3
fsync(3) = 0
close(3) = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(11848, 11848, SIGABRT) = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT (core dumped) +++
Aborted (core dumped)
Next time it will run:
./dumbwallet setup P-cNkMqSEm5FsNGTPcKUaUjoVA8adAm9tezdAjsAeGfxtxjhps76M8
dumbwallet: Could not decode private key
Can you import this key? It's late here so I did not check where the validation fails.
I can check later today. Thanks.
The text was updated successfully, but these errors were encountered: