Bitcoin Forum
May 09, 2024, 10:22:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bets stuck in SatoshiDice for weeks.  (Read 2880 times)
UnitClick (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
August 31, 2012, 05:33:47 PM
 #1

I've had a few unconfirmed SatoshiDice bets for a couple weeks. My bitcoin wallet is fully updated and the blockchain is fully downloaded. I tried looking up the transactions in Blockchain and SatoshiDice, with no results. It's almost as if the transaction hasn't been broadcast, although when I've had that in the past it said (Not Broadcast) beside the transaction.

I tried PMing evorhees (Owner of SatoshiDice), and he kinda blew me off with 'There's no proof of the transaction'. I asked him what the acceptable methods of giving proof were, and no reply. This is a very real problem, I have 22BTC tied up in this glitch. That's $235 USD.

I'm not sure what to do here. If it's a problem with SatoshiDice, it looks like I'm SOL. Could it be a client side bug? How would I go about resetting my bitcoin client without losing these 'in limbo' transactions?

Screenshots: http://imgur.com/a/UTa4X
SatoshiDice Links to transactions:
.5 BTC bets
1. http://www.satoshidice.com/lookup.php?tx=eb68ffbcc9b7b032f8b7716a5efed4a5440372b5007b7e88e76931ed1e19adc0
2. http://www.satoshidice.com/lookup.php?tx=12449e6e3786d153f47d511fdae35da157c7f79428816857ea16df00371e97b2
3. http://www.satoshidice.com/lookup.php?tx=106308e0b2f70aac959545ab91ae9d3200969b6fb1cf8a4734b0a3945939885e
4. http://www.satoshidice.com/lookup.php?tx=ed63bd2052588d4e764d2ebbf933990a48ce24f1adffc5b6cf13fb3e4aefbc72
5. http://www.satoshidice.com/lookup.php?tx=5f47d2946054d3c73478f2f79fe8a4f5d88f05cba40586a8005cbdbf8db94f0b
6. http://www.satoshidice.com/lookup.php?tx=94e3e903796cdc3a6685a3038b7651451c0c36c4fef4c797efce3d8571cc2dc4
7. http://www.satoshidice.com/lookup.php?tx=44af18a085e79fe30da5b1e5e1985c140a52a72bcbebab25624344bad5b8b2b1
8. http://www.satoshidice.com/lookup.php?tx=7316fc156e50dc49114edd57b725ef6dae613ef57b7ffe2def118144809137ca

1 BTC bets
1. http://www.satoshidice.com/lookup.php?tx=dd46711aa5a24f90ccc995e6aafd713f3009f0077650379dd476cdf6ea951343
2. http://www.satoshidice.com/lookup.php?tx=158d3c490498d8958134519a01eb0a316f1b86f2d836bc1b3a18ff0479bd92ed
3. http://www.satoshidice.com/lookup.php?tx=1edcfde2ddc8e3e93788dd764e1a7cdef4bf6d7fc9e3e906c946429aa5128624
4. http://www.satoshidice.com/lookup.php?tx=a722dc1b39c3ef411d4f9d2231b5a0348a2afa1744dd42af816b12782232e8fc

2 BTC bets
1. http://www.satoshidice.com/lookup.php?tx=ed45098b21b64827443e98def0386487f6e4f47f2e1cc1385e1883f43106214a
2. http://www.satoshidice.com/lookup.php?tx=e82c3b5f38f516040464113184aebd733ff9f64cd3d222eae05e00bb2a3d3811
3. http://www.satoshidice.com/lookup.php?tx=217a29946c9331a7276f92d6cf0bc1221d52c8e2d47c94b4a280043c6e300980

8 BTC bet
1. http://www.satoshidice.com/lookup.php?tx=8c8a85846b2c2e28abe5e96c00d7a24c7a97c6b84f4577445a040a6208571395
1715293323
Hero Member
*
Offline Offline

Posts: 1715293323

View Profile Personal Message (Offline)

Ignore
1715293323
Reply with quote  #2

1715293323
Report to moderator
1715293323
Hero Member
*
Offline Offline

Posts: 1715293323

View Profile Personal Message (Offline)

Ignore
1715293323
Reply with quote  #2

1715293323
Report to moderator
1715293323
Hero Member
*
Offline Offline

Posts: 1715293323

View Profile Personal Message (Offline)

Ignore
1715293323
Reply with quote  #2

1715293323
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715293323
Hero Member
*
Offline Offline

Posts: 1715293323

View Profile Personal Message (Offline)

Ignore
1715293323
Reply with quote  #2

1715293323
Report to moderator
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
August 31, 2012, 08:03:10 PM
 #2

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_vectors

So, 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.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
August 31, 2012, 08:14:32 PM
 #3

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.


Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


UnitClick (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
September 03, 2012, 09:14:30 PM
 #4

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_vectors

So, 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 Offline

Activity: 2506
Merit: 1010


View Profile
September 04, 2012, 06:48:59 AM
 #5

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.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


UnitClick (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
September 04, 2012, 05:59:16 PM
 #6

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.  Smiley

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 Offline

Activity: 2506
Merit: 1010


View Profile
September 04, 2012, 10:06:25 PM
 #7

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

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


UnitClick (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
September 04, 2012, 10:45:43 PM
 #8

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 Offline

Activity: 2506
Merit: 1010


View Profile
September 06, 2012, 11:29:56 AM
 #9

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.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


UnitClick (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
September 08, 2012, 05:01:37 AM
 #10

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.  Grin
swissmate
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250



View Profile
September 08, 2012, 09:12:16 AM
 #11

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.  Grin
Are you really sharing your wallet.dat to everyone that sees this post?
nomnomnom
Sr. Member
****
Offline Offline

Activity: 313
Merit: 250



View Profile
September 08, 2012, 04:44:31 PM
Last edit: September 08, 2012, 06:42:10 PM by nomnomnom
 #12

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.  Grin
Are you really sharing your wallet.dat to everyone that sees this post?

Yup Smiley 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/1LdNDySZ3vDkVQDMCJCBxmFNCJwJeATiaG
http://blockchain.info/address/17ZfUixpDR7MWgD9UgyjDH4sQJk2SxAQbk
http://blockchain.info/address/1LQ36aWUucf8cDTnDihLJeFumM7FPExzEh
http://blockchain.info/address/19abixCmtoLxJqLhACV4D6P7zTfWDqQWKm
http://blockchain.info/address/16fXuMjhmsDrcqEehqWZhU5itRUgrVur9f
http://blockchain.info/address/14jVfhBEPLFwLsj9Bsj6ebyyv4R6DWTxRc
http://blockchain.info/address/1FB4hv58ENo5UsSpnXPTJrrCMU8bpxuPRa

everything 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
Hero Member
*****
Offline Offline

Activity: 1078
Merit: 502



View Profile WWW
September 08, 2012, 04:51:01 PM
 #13

Wow that is big.... Smiley Good Luck Smiley


▄▄▄███████▄▄▄
▄▄█████▀▀''`▀▀█████▄▄
▄███P'            `YY██▄
▄██P'                  `Y██▄
███'                      `███
███'                         ███
▄██'   ▄█████▄▄  ,▄▄▄▄▄▄▄▄▄▄p   ███
▄██▀  ,████▀P▀███.`██████████P   ▀██▄
███[ ,████ __. ███.   ,▄████▀    ███
███[ ]████████████[  ▄████▀       ███
███[ `████   ,oo2 ▄████▀'       ,███
▀██▄  `████▄▄█████d███████████   ▄██▀
▀██.   `▀▀▀▀▀▀"  Y▀▀▀▀▀▀▀▀▀▀▀  ,██▀
███.                        ,███
▀██▄                      ▄██▀
▀███▄_                 ,███▀
▀███▄▄_          _▄▄███▀
▀▀████▄▄ooo▄▄█████▀
▀▀███████▀▀'

365

TM

EZ365 is a digital ecosystem that combines
the best aspects of online gaming, cryptocurrency
trading
and blockchain education. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

..WHITEPAPER..    ..INVESTOR PITCH..

.Telegram     Twitter   Facebook

                       .'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
Sr. Member
****
Offline Offline

Activity: 313
Merit: 250



View Profile
September 09, 2012, 11:33:43 AM
 #14

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  Grin

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 Offline

Activity: 2506
Merit: 1010


View Profile
September 09, 2012, 06:54:53 PM
 #15

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  Grin

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?


Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


nomnomnom
Sr. Member
****
Offline Offline

Activity: 313
Merit: 250



View Profile
September 09, 2012, 08:29:10 PM
 #16

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  Grin

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/pywallet

I started it with the --web option and then used the webinterface.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!