UnitClick (OP)
Newbie
Offline
Activity: 21
Merit: 0
|
|
August 31, 2012, 05:33:47 PM |
|
|
|
|
|
Stephen Gornick
Legendary
Offline
Activity: 2506
Merit: 1010
|
|
August 31, 2012, 08:03:10 PM |
|
How would I go about resetting my bitcoin client without losing these 'in limbo' transactions? SatoshiDICE never got the transactions because they were never accepted by the network. There is nothing SatoshiDICE can or should do as the Bitcoin transactions for your wagers never confirmed. Now why this is happening? What appears to be happening is that your client has some double spend transactions. That can happen a few ways accidentally (e.g., you have two copies of your wallet.dat and are making spend transactions from both) or purposely (you have a script that tries to wager with SatoshiDICE and then also attempt to double spend the bets that lose via race attack, Finney attack, etc. There are even situations where if you were specifically targeted, you could see funds on one confirmation but then when you spend them they are invalid -- but that is pretty easily preventable. Here are the various methods: - https://en.bitcoin.it/wiki/Double-spending#Attack_vectorsSo, the end result is you have wagers that never got processed and never will. Unfortunately, the Bitcoin.org client doesn't deal well with these -- there is no way to manually remove the transactions using bitcoind. The easiest thing to do would be to send your remaining funds to a new address in a new wallet and start clean. A way to fix the wallet you have involves perofrming wallet surgery to remove the offending private keys (using pywallet) and then rescan.
|
|
|
|
Stephen Gornick
Legendary
Offline
Activity: 2506
Merit: 1010
|
|
August 31, 2012, 08:14:32 PM |
|
The easiest thing to do would be to send your remaining funds to a new address in a new wallet and start clean.
I was making the assumption that the transactions aren't being accepted by the network because they are invalid, and thus have no value. I forgot though that if the transaction includes multiple inputs but includes even one that is invalid, the client will reject the entire transaction. So it is possible that you still have some of the coins yet, just that the client isn't giving access to them due to them being locked up in these transactions with invalid inputs. Thus simply exporting the private keys and importing them into a new wallet.dat would solve that. The lazy person's solution is to use Mt. Gox's "upload wallet.dat" method and let that redeem your funds for you into your account.
|
|
|
|
UnitClick (OP)
Newbie
Offline
Activity: 21
Merit: 0
|
|
September 03, 2012, 09:14:30 PM |
|
How would I go about resetting my bitcoin client without losing these 'in limbo' transactions? SatoshiDICE never got the transactions because they were never accepted by the network. There is nothing SatoshiDICE can or should do as the Bitcoin transactions for your wagers never confirmed. Now why this is happening? What appears to be happening is that your client has some double spend transactions. That can happen a few ways accidentally (e.g., you have two copies of your wallet.dat and are making spend transactions from both) or purposely (you have a script that tries to wager with SatoshiDICE and then also attempt to double spend the bets that lose via race attack, Finney attack, etc. There are even situations where if you were specifically targeted, you could see funds on one confirmation but then when you spend them they are invalid -- but that is pretty easily preventable. Here are the various methods: - https://en.bitcoin.it/wiki/Double-spending#Attack_vectorsSo, the end result is you have wagers that never got processed and never will. Unfortunately, the Bitcoin.org client doesn't deal well with these -- there is no way to manually remove the transactions using bitcoind. The easiest thing to do would be to send your remaining funds to a new address in a new wallet and start clean. A way to fix the wallet you have involves perofrming wallet surgery to remove the offending private keys (using pywallet) and then rescan. My wallet was only ever used on one computer, and I haven't been making intentional double spends. No scripts either. If this is a double spend issue is it possible to get my coins back using pywallet, or are they lost for good? Could you go into a little more detail on how I can remove these private keys using pywallet?
|
|
|
|
Stephen Gornick
Legendary
Offline
Activity: 2506
Merit: 1010
|
|
September 04, 2012, 06:48:59 AM |
|
If this is a double spend issue is it possible to get my coins back using pywallet,
If there are unspent funds for any addresses, you can transfer those keys to a new wallet, rescan, and the funds will show and can be spent. You don't need pywallet for doing this, standard bitcoind has everything you need. Step 1.) Make sure you have a good backup of your existing wallet. Step 2.) Extract keys from existing wallet. - http://bitcoin.stackexchange.com/a/3532/153 (first set of instructions) Step 3.) Close the client, move existing wallet out of the way, and relaunch which creates a new, empt wallet. Step 4.) Import keys - http://bitcoin.stackexchange.com/a/3532/153 (second set of instructions) I don't remember if you need to start the client with -rescan after. It doesn't hurt if you do.
|
|
|
|
UnitClick (OP)
Newbie
Offline
Activity: 21
Merit: 0
|
|
September 04, 2012, 05:59:16 PM |
|
If this is a double spend issue is it possible to get my coins back using pywallet,
If there are unspent funds for any addresses, you can transfer those keys to a new wallet, rescan, and the funds will show and can be spent. You don't need pywallet for doing this, standard bitcoind has everything you need. Step 1.) Make sure you have a good backup of your existing wallet. Step 2.) Extract keys from existing wallet. - http://bitcoin.stackexchange.com/a/3532/153 (first set of instructions) Step 3.) Close the client, move existing wallet out of the way, and relaunch which creates a new, empt wallet. Step 4.) Import keys - http://bitcoin.stackexchange.com/a/3532/153 (second set of instructions) I don't remember if you need to start the client with -rescan after. It doesn't hurt if you do. I'm not the most technically inclined person, you're going to have to explain it in a little more detail. From what I've gathered bitcoind is a command line bitcoin client. Is it bundled with bitcoin Qt, or do I have to download it seperately? If it's bundled, where would I go about finding and starting it on mac OSX?
|
|
|
|
Stephen Gornick
Legendary
Offline
Activity: 2506
Merit: 1010
|
|
September 04, 2012, 10:06:25 PM |
|
From what I've gathered bitcoind is a command line bitcoin client. Is it bundled with bitcoin Qt, or do I have to download it seperately? If it's bundled, where would I go about finding and starting it on mac OSX?
While you can configure Bitcoin-qt on OS/X to run as a server, bitcoind gives you a method to make the API calls from the command line. If you had a bitcoind, then these would be the steps: Step 0.) of course,,, ... make a backup of your wallet.dat files (even the new one before you have any transactions). 1.) Configure bitcoin.conf with rpcuser=, rpcpassword= and server= so that you can access the API from command line bitcoind. 2.) Run bitcoind (or Bitcoin-qt with -server ) 3.) $ ~/bin/bitcoind -rpcuser=myuser -rpcpassword=mypassword listaccounts for each of those accounts, do a getaddressesbyaccount. For example, for the default account (""): $ ~/bin/bitcoind -rpcuser=myuser -rpcpassword=mypassword getaddressesbyaccount "" Then get the private key (dumpprivkey ) for each of those addresses. e.g., for 1PC9aZC4hNX2rmmrt7uHTfYAS3hRbph4UN do: ./bitcoind -rpcuser=myuser -rpcpassword=mypassword dumpprivkey 1PC9aZC4hNX2rmmrt7uHTfYAS3hRbph4UN 4.) Then with the new, empty wallet, do the same steps 1-3. then importprivkey for each. Now this can be automated with a script if needed. Also if you have wallet encryption enabled, you'll need to issue the RPC command walletpassphrase to make it so subsequent commands are accepted / 5.) Remove or replace bitcoin.conf so that you aren't leaving RPC enabled if you weren't previously using it. This is not something non-technical people are expected to need to do. You may wish to contract with someone (reputable) recover these funds. From an export of the addresses it can be determined how much in unspent funds you have in that wallet. As far as a possible explanation of how this scenario you are in could happen, see issue #1428: - https://github.com/bitcoin/bitcoin/issues/1428
|
|
|
|
UnitClick (OP)
Newbie
Offline
Activity: 21
Merit: 0
|
|
September 04, 2012, 10:45:43 PM |
|
Wow, I have to say that a good 50% of that goes way over my head, and I don't want to screw anything up. You're pretty reputable, would you be willing to recover these double spends? I'd be willing to pay you 2BTC if you're successful.
Let me know what you think.
|
|
|
|
Stephen Gornick
Legendary
Offline
Activity: 2506
Merit: 1010
|
|
September 06, 2012, 11:29:56 AM |
|
Wow, I have to say that a good 50% of that goes way over my head, and I don't want to screw anything up. Is your wallet passphrase encrypted? If so, at least steps 1-3 can be done and tell you how much of unspent funds there are. Since the funds can't be spent without the passphrase the wallet can be shared without requiring a high level of trust. If you do have it encrypted, you might want to change the passphrase if the current one is one that is sensitive information (e..g, used elsewhere, in part or whole). Just make sure you make a backup of your wallet.dat before doing anything else to it. If it isn't passphrase encyrpted, then it should only be shared with trusted individuals.
|
|
|
|
UnitClick (OP)
Newbie
Offline
Activity: 21
Merit: 0
|
|
September 08, 2012, 05:01:37 AM |
|
Here is a copy of my wallet.dat, the password was changed to something random. I don't trust my technical ability with the command line enough to do those steps, so if someone else on this forum could that would be great. http://www.filedropper.com/wallet (No viruses or anything of the sort. Just my wallet.dat exported. Open it in a VM if you don't believe me.) So if anybody could help me get to the bottom of this wallet problem and get my BTC back it would be awesome. I'll even toss a few BTC your way.
|
|
|
|
swissmate
|
|
September 08, 2012, 09:12:16 AM |
|
Here is a copy of my wallet.dat, the password was changed to something random. I don't trust my technical ability with the command line enough to do those steps, so if someone else on this forum could that would be great. http://www.filedropper.com/wallet (No viruses or anything of the sort. Just my wallet.dat exported. Open it in a VM if you don't believe me.) So if anybody could help me get to the bottom of this wallet problem and get my BTC back it would be awesome. I'll even toss a few BTC your way. Are you really sharing your wallet.dat to everyone that sees this post?
|
|
|
|
nomnomnom
|
|
September 08, 2012, 04:44:31 PM Last edit: September 08, 2012, 06:42:10 PM by nomnomnom |
|
Here is a copy of my wallet.dat, the password was changed to something random. I don't trust my technical ability with the command line enough to do those steps, so if someone else on this forum could that would be great. http://www.filedropper.com/wallet (No viruses or anything of the sort. Just my wallet.dat exported. Open it in a VM if you don't believe me.) So if anybody could help me get to the bottom of this wallet problem and get my BTC back it would be awesome. I'll even toss a few BTC your way. Are you really sharing your wallet.dat to everyone that sees this post? Yup But it has a passphrase, so no spending ^^ (BTW 19.3 MB wtf, my wallet is 600kb or so) I think you need to export the private keys for these addresses: http://blockchain.info/address/1LdNDySZ3vDkVQDMCJCBxmFNCJwJeATiaGhttp://blockchain.info/address/17ZfUixpDR7MWgD9UgyjDH4sQJk2SxAQbkhttp://blockchain.info/address/1LQ36aWUucf8cDTnDihLJeFumM7FPExzEhhttp://blockchain.info/address/19abixCmtoLxJqLhACV4D6P7zTfWDqQWKmhttp://blockchain.info/address/16fXuMjhmsDrcqEehqWZhU5itRUgrVur9fhttp://blockchain.info/address/14jVfhBEPLFwLsj9Bsj6ebyyv4R6DWTxRchttp://blockchain.info/address/1FB4hv58ENo5UsSpnXPTJrrCMU8bpxuPRaeverything else seems to be satoshidice or other outgoing addresses. EDIT: Meh sorry this probably doesn't help much, I looked the addresses up on blockchain.info and they are all empty, only the first one has one satoshi. So if there are coins left then they are hiding somewhere else :/ (made addresses clickable)
|
|
|
|
AndrewBUD
|
|
September 08, 2012, 04:51:01 PM |
|
Wow that is big.... Good Luck
|
|
|
|
| 365 | TM | | | | EZ365 is a digital ecosystem that combines the best aspects of online gaming, cryptocurrency trading and blockchain education. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ | | ..WHITEPAPER.. ..INVESTOR PITCH..
| | | | .'M████▀▀██ ██ W█Ws'V██ ██▄▄███▀▀█ i█████m.~M████▀▀██ ███ d███████Ws'V██ ██████ ****M██████m.~███f~~__mW█ ██▀▀▀████████= Y██▀▀██W ,gm███████ g█████▄▄▄██ █A~`_WW Y█ ██!,████████ g▀▀▀███ ████▀▀`_m████i!████P W███ ██ _███▄▄▄██▀▀▀███Af`_m███ █W ███A ]███ ██ __ ~~~▀▀▀▀▄▄▄█*f_m██████ ██i!██!i███████ Y█████▄▄▄▄__. i██▀▀▀██████████ █!,██████ 8█ █▀▀█████.!██ ██████████i! █████ '█ █ █ █W M█▄▄▄██████ ██ !██ !███▄▄█ ██i'██████████ ██ Y███████████.]██████████████ █ ███████b ███ ██████ Y █ █▀▀█i!██ ████ V███ █ █W Y█████ ~~▀███▄▄▄█['███ ~~*██ | | Play | | | | │ │ ███ │ ███ │ ███ │ │ ███ ███ │ ███ ███ ███ ███ │ ███ ███ ███ ███ ███ ███ ███ ███ ███ │ │ ███ ███ │ │ │ │ │ | | Trade | | | | __▄▄████▄▄ __▄▄███████████████▄▄▄ _▄▄█████████▀▀~`,▄████████████▄▄▄ ~▀▀████▀▀~`,_▄▄███████████████▀▀▀ d█~ =▀███████████████▀▀ ]█! m▄▄ '~▀▀▀████▀▀~~ ,_▄▄ ,W█. *████▄▄__ ' __▄▄█████ !██P █████████████████████ W█. - ██████████████████▀ i██[ ~ ▀▀█████████▀▀▀ g███! Y███ | | Learn |
[/tabl
|
|
|
nomnomnom
|
|
September 09, 2012, 11:33:43 AM |
|
Woooooop, good news, Success! Despite what I said in my PM yesterday, I decided to take a second look at that wallet. First I deleted the stuck transactions with pywallet and started bitcoin-qt with the -rescan option, didn't work. Then I decided to delete all transactions (thx to this thread https://bitcointalk.org/index.php?topic=102331.0), started bitcoin-qt with -rescan again .... and there it is, balance shows: 23.67660791 BTC I will upload the wallet to my server and then send you the download link in a PM (may take some time, my internet is slooooow)
|
|
|
|
Stephen Gornick
Legendary
Offline
Activity: 2506
Merit: 1010
|
|
September 09, 2012, 06:54:53 PM |
|
That's awesome! I had tried using pywallet and it reported an error opening the wallet. Do you have a link to the pywallet release that you used?
|
|
|
|
nomnomnom
|
|
September 09, 2012, 08:29:10 PM |
|
That's awesome! I had tried using pywallet and it reported an error opening the wallet. Do you have a link to the pywallet release that you used? Sure, it was this one https://github.com/jackjack-jj/pywalletI started it with the --web option and then used the webinterface.
|
|
|
|
|