Pages:
Author

Topic: wallet glitched (Read 4240 times)

full member
Activity: 154
Merit: 100
May 22, 2011, 09:30:17 PM
#28
Yeah and when I said "a double-spend has occurred", I meant "a double-spend was unwittingly attempted".
hero member
Activity: 588
Merit: 500
May 22, 2011, 07:42:18 PM
#27
I'm wondering if somehow a double-spend has occurred and this will be unconfirmed forever. (This wallet balance is 0.00).   ...But how can you tell for sure if that is the case, or if I just need to wait longer for it to show up somewhere?
That one is a double-spend. It will never clear.
Is double spend possible in bitcoin? If so, what we all are doing here?

If it wasn't clear from context, he means that the double-spend failed.
sr. member
Activity: 868
Merit: 251
May 22, 2011, 07:36:47 PM
#26
I'm wondering if somehow a double-spend has occurred and this will be unconfirmed forever. (This wallet balance is 0.00).   ...But how can you tell for sure if that is the case, or if I just need to wait longer for it to show up somewhere?
That one is a double-spend. It will never clear.
Is double spend possible in bitcoin? If so, what we all are doing here?

You can see that the output referenced by your input was already spent here:
http://blockexplorer.com/tx/4a1934adf42ce45201f2c2e6193b852891afda989d959167578f15ec8a2a828e#o0
That 20BTC are "Not yet redeemed". So they must be on user's balance, but it is marked as spent only in user's wallet.dat.
administrator
Activity: 5222
Merit: 13032
May 22, 2011, 02:12:17 PM
#25
I'm wondering if somehow a double-spend has occurred and this will be unconfirmed forever. (This wallet balance is 0.00).   ...But how can you tell for sure if that is the case, or if I just need to wait longer for it to show up somewhere?

That one is a double-spend. It will never clear.

You can see that the output referenced by your input was already spent here:
http://blockexplorer.com/tx/4a1934adf42ce45201f2c2e6193b852891afda989d959167578f15ec8a2a828e#o0
full member
Activity: 154
Merit: 100
May 22, 2011, 10:39:49 AM
#24
m0Ray, could you take a look at this for me if you haven't already:

https://forum.bitcoin.org/index.php?topic=9359.msg135110#msg135110

I guess I may need to delete transactions from the wallet as you suggest.
sr. member
Activity: 868
Merit: 251
May 22, 2011, 10:18:52 AM
#23
This has also been unconfirmed for a long time, and it's not in a block yet (cite blockexplorer.com)
Then it's obviously unconfirmed and may stay unconfirmed forever.

but also not listed as unconfirmed on http://bitcoincharts.com/bitcoin/

That site normally lists any unconfirmed transactions that I search for, but not this one.
AFAIK, that site lists only transactions that network has to pack in next block. If your transaction did not reach the network, you can see it only in your client.
You may wait, but I suspect that client does not resend transactions that are unconfirmed for a long time.
Also you may delete it, rescan the block chain and retry the transaction (make sure that all recent blocks are downloaded and network connection is stable).
full member
Activity: 154
Merit: 100
May 22, 2011, 09:18:00 AM
#22
Okay, installed a fresh copy of 0.3.21, replaced wallet.dat with my old one and let it download the block chain to 125784.

And that transaction is finally showing as confirmed.


Now a separate issue... Could someone make sense of this one for me?

(Sorry, copying text from Transaction Details window still doesn't work in this version either).



This has also been unconfirmed for a long time, and it's not in a block yet (cite blockexplorer.com), but also not listed as unconfirmed on http://bitcoincharts.com/bitcoin/

That site normally lists any unconfirmed transactions that I search for, but not this one.

I'm wondering if somehow a double-spend has occurred and this will be unconfirmed forever. (This wallet balance is 0.00).   ...But how can you tell for sure if that is the case, or if I just need to wait longer for it to show up somewhere?

Thanks very much.

sr. member
Activity: 868
Merit: 251
May 22, 2011, 07:27:30 AM
#21
I'll try to compile it statically.
full member
Activity: 154
Merit: 100
May 22, 2011, 07:16:32 AM
#20
If you already redownloaded after the problem developed, then doing it again probably won't help. You can't have gotten a bad copy, since Bitcoin checks the blocks before adding them to the database (unless you manually replaced the files).

Okay uh, I just deleted the block chain before I read your post Tongue

Anyway, I was on 3.20 so I'm getting 3.21 now and obviously I'll be getting the block chain again.
legendary
Activity: 1072
Merit: 1181
May 22, 2011, 07:15:43 AM
#19
You also need to delete blk0001.dat and blkindex.dat. I think this is a rescan bug.

You're right. -rescan only adds missing transactions to the wallet. It doesn't update wallet transactions with missing information from the block chain.

Maybe we need a separate -rescan-full, or change the meaning of -rescan to do this anyway, as a regular rescan is now done immediately anyway?
administrator
Activity: 5222
Merit: 13032
May 22, 2011, 07:12:56 AM
#18
If you already redownloaded after the problem developed, then doing it again probably won't help. You can't have gotten a bad copy, since Bitcoin checks the blocks before adding them to the database (unless you manually replaced the files).
full member
Activity: 154
Merit: 100
May 22, 2011, 07:08:49 AM
#17
You also need to delete blk0001.dat and blkindex.dat. I think this is a rescan bug.

Damn, really? I just re-downloaded it 2 days ago.

Perhaps it's the node that I'm adding that has a bad copy of it?

Could someone else give me a node to connect to so that I can be sure I'm not getting it from the aforementioned x.x.x.x?

Thanks.

p.s. Thanks for the code m0Ray, it'll be an interesting read, however I haven't compiled C since uni quite a few years ago now.
administrator
Activity: 5222
Merit: 13032
May 22, 2011, 07:06:04 AM
#16
You also need to delete blk0001.dat and blkindex.dat. I think this is a rescan bug.
sr. member
Activity: 868
Merit: 251
May 22, 2011, 07:04:35 AM
#15
Try using this code to delete all transactions from wallet, then rescan:
http://m0ray.net/sites/default/files/bitcoin/bc_tx.tar.bz2

Deleting transaction from wallet, AFAIK, is not dangerous because all confirmed transactions are reconstructed during rescan.

Maybe this function must be included in bitcoin/bitcoind.
full member
Activity: 154
Merit: 100
May 22, 2011, 07:01:52 AM
#14


All of these (inputs+outputs) are in blocks as shown by blockexplorer.com.
full member
Activity: 154
Merit: 100
May 22, 2011, 06:53:13 AM
#13
I've got this problem too... deleted everything in the data dir except for:

wallet.dat
blk0001.dat
blkindex.dat

restarted bitcoin with:

bitcoin -addnode=x.x.x.x -rescan -debug

and it still tells me the following is 0/unconfirmed:

Quote
(Uuuh, actually, copy+paste has never worked for me in the Transaction Details window on Windows XP client). I've tried Ctrl-C, Ctrl+Ins, drag-n-drop, right-clicking the text with the mouse... nothing will copy it to the clipboard.

full member
Activity: 213
Merit: 100
May 02, 2011, 10:24:45 AM
#12

Strange indeed, this shouldn't happen. And it definitely shouldn't remain after a rescan. Couple of questions though:
* which version of bitcoin are you using

The problem originally occurred in 0.3.20.2 and I upgraded to 0.3.21 to see if it would fix the problem, and it didn't.  I rescanned in both with no effect.

Quote from: sipa
* you say "since this wallet is the recipient", so you're using an address from the new wallet as destination for a tx from the old one?

yes

Quote from: sipa
* did you only move wallet.dat aside, or the whole datadir?

I only moved wallet.dat aside.

legendary
Activity: 1246
Merit: 1016
Strength in numbers
May 01, 2011, 08:23:04 AM
#11
This happened to me too.
legendary
Activity: 1072
Merit: 1181
May 01, 2011, 03:42:17 AM
#10
I have a tx showing 0/unconfirmed, which won't change even if I use -rescan.

Here's what I did:

1. send tx
2. immediately quit bitcoin
3. move wallet.dat aside, replace with a different one
4. run bitcoin. The tx doesn't appear, as expected
5. wait for a new block-  tx appears with 1 confirmation (since this wallet is the recipient)
6. quit bitcoin
7. put original wallet.dat back.
8. tx still stuck at 0/unconfirmed. all other tx have confirmations increasing. -rescan has no effect.

This seems to be a bug, since rescan should work.

Strange indeed, this shouldn't happen. And it definitely shouldn't remain after a rescan. Couple of questions though:
* which version of bitcoin are you using
* you say "since this wallet is the recipient", so you're using an address from the new wallet as destination for a tx from the old one?
* did you only move wallet.dat aside, or the whole datadir?
full member
Activity: 213
Merit: 100
May 01, 2011, 12:39:10 AM
#9
How can you make it connect to some specific node? Thats exactly what I need right now Smiley

there is a command line option

type bitcoin -? for help

I believe it's -connect=xxx.xxx.xxx.xxx

-connect= is correct.  Add -nolisten=1 (which implies -noirc=1) if you don't want other connections either.

From my experience, having only one connection is bad if you're using the wallet with any miners. Bitcoin
often disconnects from peers and incorrectly displays it has a connection, so you'll be behind on the tx pool
quite a bit.  Try to have at least 8 peers when mining!  Also, it's faster to download new blocks
if you have more than 1 peer, since that peer will sometimes throttle/disconnect you.  If you're just
updating blocks and not mining, one peer will work if you're patient, since it will keep retrying.
Pages:
Jump to: