public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
* [Bitcoin-development] Wallet related bug?
@ 2012-06-22 11:01 grarpamp
  0 siblings, 0 replies; 2+ messages in thread
From: grarpamp @ 2012-06-22 11:01 UTC (permalink / raw)
  To: bitcoin-development

I think there may be an ideal order of ops bug around rescan,
wallet upgrades/import and last block markers.

I dropped an old wallet in a current blockchain.

First ran - in rescan mode.
It said old walletver.
Then rescanned whole chain.
AddToWallet some blockhash, blocks out of range, invalid/nonwallet txid's,
which were already in there as legit ones in the old logs.

Second run in plain mode.
New wallet ver logged.
Rescanned  the last 20k blocks or so,
which might have been the marker last time the old wallet was used.

Third and later runs... duplicates the second.

Never did say 'upgrading wallet' as it sometimes does.

Running detach=1 always.

Why scan the last 20k every time? Shouldn't have to if
whole chain was scanned. And certainly no more than
once if not.

Also...
Dumping the run params (bitcoin.conf, cmdline) to the log would be good.

And not automatically truncate the log when big but just append or roll it.



^ permalink raw reply	[flat|nested] 2+ messages in thread
* [Bitcoin-development] Wallet related bug?
@ 2012-06-23  0:10 grarpamp
  0 siblings, 0 replies; 2+ messages in thread
From: grarpamp @ 2012-06-23  0:10 UTC (permalink / raw)
  To: bitcoin-development

I had previously commented on this.
My references to wallet ver were really to nFileVersion.
And I've since been able to make that, and the
real walletversion become current.

However it is still doing this every invocation...
 Rescanning last 14xxx blocks (from block 170xxx)...
Which seems unneeded more than 1x. I cannot yet explain.

So I expect to avoid all by send the balance from old
wallets to new wallet soon instead.

The old wallets were ver 10500.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-23  0:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-22 11:01 [Bitcoin-development] Wallet related bug? grarpamp
2012-06-23  0:10 grarpamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox