Author

Topic: Import large number of addresses into wallet (Read 652 times)

legendary
Activity: 2058
Merit: 1431
you need to rescan the wallet. either start bitcoind with --rescan after you have imported they keys, or set the rescan parameter for the last imported key to "true".
newbie
Activity: 16
Merit: 0
Did you find a solution to this? I've looked around but can find nothing on mass creating/importing addresses for e-commerce.
sr. member
Activity: 448
Merit: 254
Ok guys im one of the team running a torrent tracker.  Due to massive PP issues a long time back we stopped being able to receive donations.  Mainly because PP seems to get to keep them more often than we did no matter what we tried (even selling legit stuff).

So we looked to bitcoin as an option after we had a server oopsie and had to fork out large amounts of ash on new gear.

The site coders have managed to set up the site end.  Now we can import a large number of public keys and the site gives them out when a user requests to make a donation.

The problem we have run into is importing those keys into a wallet.

Im running bitcoin-qt v0.8.1.0-g34d62a8-beta on a Kubuntu 12.04 system.

After much research i tried pywallet.  Which reports making changes to the wallet but doesn’t appear to actually do anything to it.

After more research we modified a script of bitcoind like this

tr -d '"' < /location/of/csv/file | tr , ' ' | while read number address privkey; do echo importing $address; bitcoin-qt importprivkey $privkey $address false; done

and then ran a single manual import to finish it off.

The addresses appeared in the address book but when test donations are made they dont register until i add the address manually using Debug window one by one.

So i need a way to either generate the addresses in the wallet directly or import a large number.  One by one is just an impossible workload.

I know there has to be a way otherwise anyone in e-commerce couldnt reasonably run using bitcoin.  People do.  So im missing something that a good week on and off wandering through wikis, forums and google hasnt found for me.

Jump to: