Post
Topic
Board Bitcoin Technical Support
Re: Dump all private keys if they had movement
by
pbies
on 31/12/2021, 20:40:07 UTC
I am talking here about 7.5M addresses/keys per one wallet.
How is Bitcoin Core handling that? Can't you just let it sync and see what it shows?

Quote
Dumpwallet would be ok if it could only dump private keys of used addresses/keys.
I haven't used it (and don't want to test on my wallet): what does the output look like?

Bash no because it is too slow.
A few million entries isn't a problem in bash. Getting only addresses from a long list is very fast with grep.

Quote
I have csv files: transactions, balances.
Only have to connect transactions and balances with public addresses/private keys.
What are you looking for? Addresses with a balance?

Bitcoin Core in current version is handling such a wallet very badly. Import takes over 24 hours and "Add to wallet" takes another several hours.
Yes, in the end it is going to sync, but I am looking for a higher performance solution.

Dumpwallet gives private key, date and public address. I am only not sure if imported are only addresses with balances.

I would rather use Python than Bash because it is much faster to do things inside script than using external tools (like grep).
Grep at this point will be too slow, in effect it needs to search whole data for each call. I think I cannot run grep for hundreds of thousands parameters. Am I right?

Yes, I am looking for addresses with balances, which I have now, but looking further I need to link addresses with private keys I have. If some of them exist with balances.