Bitcoin Forum
May 05, 2024, 10:43:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What happens to double spend transaction?  (Read 611 times)
goxed (OP)
Legendary
*
Offline Offline

Activity: 1946
Merit: 1006


Bitcoin / Crypto mining Hardware.


View Profile
April 01, 2013, 11:30:13 PM
 #1

Is the first transaction picked up and the second dropped? or are both dropped? or are the btc lost for ever? Thanks!

Revewing Bitcoin / Crypto mining Hardware.
1714905809
Hero Member
*
Offline Offline

Posts: 1714905809

View Profile Personal Message (Offline)

Ignore
1714905809
Reply with quote  #2

1714905809
Report to moderator
1714905809
Hero Member
*
Offline Offline

Posts: 1714905809

View Profile Personal Message (Offline)

Ignore
1714905809
Reply with quote  #2

1714905809
Report to moderator
1714905809
Hero Member
*
Offline Offline

Posts: 1714905809

View Profile Personal Message (Offline)

Ignore
1714905809
Reply with quote  #2

1714905809
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714905809
Hero Member
*
Offline Offline

Posts: 1714905809

View Profile Personal Message (Offline)

Ignore
1714905809
Reply with quote  #2

1714905809
Report to moderator
1714905809
Hero Member
*
Offline Offline

Posts: 1714905809

View Profile Personal Message (Offline)

Ignore
1714905809
Reply with quote  #2

1714905809
Report to moderator
sedeki
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
April 02, 2013, 12:37:17 AM
 #2

Afaik, only the first transaction is accepted.
The rest of the bitcoin network will not accept the second transaction.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
April 02, 2013, 12:41:28 AM
 #3

Is the first transaction picked up and the second dropped? or are both dropped? or are the btc lost for ever? Thanks!

The context is important here.

Most mining occurs using the Bitcoin-Qt/bitcoind client which will reject any double spend attempts.   So it is the first transaction to reach the miner is the one that gets included in a block.

So how a "race attack" double spend works is if the attacker knows your IP address and you take incoming connections, the attacker has one node shoot a spend transaction to you.  Then at the very same time the attacker has another node shoot another spend transaction to the rest of the network.  The attacker's aim is to have you see the transaction (0/unconfirmed), then you hand over the cash or whatever reason the coins were sent, and then only later when the mined block arrives would you realize that the funds were double spent.   There are protections against that (don't allow incoming transactions, for outgoing you have an explicit connection to well-connected nodes.  Additionally, even if you do accept incoming, you can check the rest of the network (e.g.,blockchain.info being one source) before handing over any value to see if any double spend transactions were broadcast.

That's the typical race attack.  There's also the Finney attack, the 51% attack, and others.
 - http://en.bitcoin.it/wiki/Double-spending

What is the context in which you are asking?

Unichange.me

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


goxed (OP)
Legendary
*
Offline Offline

Activity: 1946
Merit: 1006


Bitcoin / Crypto mining Hardware.


View Profile
April 02, 2013, 03:07:57 AM
 #4

Okay someone stole BTC from me today. No idea how. I am quite surprised that it happened. My wallet was unencrypted and was created in 2011.
The thief's transaction did not have any fees so was not picked up when I came to know about the theft.

Thereafter I copied an old wallet.dat and replaced it and created a new transaction with a fee. I want to stop the thief from getting my btc.

http://blockchain.info/double-spends

Revewing Bitcoin / Crypto mining Hardware.
goxed (OP)
Legendary
*
Offline Offline

Activity: 1946
Merit: 1006


Bitcoin / Crypto mining Hardware.


View Profile
April 02, 2013, 03:08:32 AM
Last edit: April 02, 2013, 05:27:48 AM by goxed
 #5

Theft http://blockchain.info/tx/ad30186ab82a59770ba6dbe891846f4dc2c31c61b0f8e72229180ecf146ef18f


Revewing Bitcoin / Crypto mining Hardware.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4616



View Profile
April 02, 2013, 04:24:23 AM
 #6


The thief's transaction already has confirmations.  That means it has already been included in a block.  Your transaction will never confirm.

The only way your transaction could confirm would be if there is a reorg and the theif's block is orphaned, but since the thief's transaction already has more than 11 confirmations, this is almost certain not to happen.
goxed (OP)
Legendary
*
Offline Offline

Activity: 1946
Merit: 1006


Bitcoin / Crypto mining Hardware.


View Profile
April 02, 2013, 05:27:31 AM
 #7

I guess its a lost cause now. Armory installed.

Revewing Bitcoin / Crypto mining Hardware.
doobadoo
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
April 02, 2013, 05:40:47 AM
 #8



Thereafter I copied an old wallet.dat and replaced it and created a new transaction with a fee. I want to stop the thief from getting my btc.

http://blockchain.info/double-spends

Do not re-use the old wallet for receiving new coins.  If all your coins are gone, delete the wallet.dat and create a new one.  Just creating a new address with the old wallet will still leave you vulnerable to a re-theft.  The compromised wallet file must go.

Also, what OS are you using?  Is it windows?  Don't bitcoin and windows.  Run linux, or os x and only install software from the appstore/package manger.

"It is, quite honestly, the biggest challenge to central banking since Andrew Jackson." -evoorhees
doobadoo
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
April 02, 2013, 05:43:03 AM
 #9

did you ever upload this wallet to an online backup service or email it to your gmail or something similar? 

Also, why the fruit are you not using a password?  its the only thing that prevents theft if you wallet.dat is lifted from your hd.

"It is, quite honestly, the biggest challenge to central banking since Andrew Jackson." -evoorhees
goxed (OP)
Legendary
*
Offline Offline

Activity: 1946
Merit: 1006


Bitcoin / Crypto mining Hardware.


View Profile
April 02, 2013, 08:02:54 AM
 #10

I donot exactly remember maybe I had emailed it to myself using yahoo mail.  . This is a wallet from early 2011, and it was created as a hot wallet on a windows computer. I was amazed that some thief could get a copy of it from somewhere. It's a Windows 7 computer. I am now using armory. Are you aware of tools to check for hidden keystroke loggers? I guess the best secure solution is an offline wallet.

Revewing Bitcoin / Crypto mining Hardware.
doobadoo
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
April 02, 2013, 08:39:29 AM
 #11

I donot exactly remember maybe I had emailed it to myself using yahoo mail.  . This is a wallet from early 2011, and it was created as a hot wallet on a windows computer. I was amazed that some thief could get a copy of it from somewhere. It's a Windows 7 computer. I am now using armory. Are you aware of tools to check for hidden keystroke loggers? I guess the best secure solution is an offline wallet.

STOP USING WINDOWS.   Also don't email an unencrypted wallet.  In theory a devious yahoo employee could search for attachments containing wallet.dat

Go download some linux.  Install it to a big flash card or usb drive/stick.    Or learn how to partition your hard drive and dual boot.  Only install bitcoin on the version of linux.   Don't mail your wallet to youreself unless its encrypted.  you will keep coins secure.

"It is, quite honestly, the biggest challenge to central banking since Andrew Jackson." -evoorhees
goxed (OP)
Legendary
*
Offline Offline

Activity: 1946
Merit: 1006


Bitcoin / Crypto mining Hardware.


View Profile
April 02, 2013, 09:40:51 AM
 #12

I donot exactly remember maybe I had emailed it to myself using yahoo mail.  . This is a wallet from early 2011, and it was created as a hot wallet on a windows computer. I was amazed that some thief could get a copy of it from somewhere. It's a Windows 7 computer. I am now using armory. Are you aware of tools to check for hidden keystroke loggers? I guess the best secure solution is an offline wallet.

STOP USING WINDOWS.   Also don't email an unencrypted wallet.  In theory a devious yahoo employee could search for attachments containing wallet.dat

Go download some linux.  Install it to a big flash card or usb drive/stick.    Or learn how to partition your hard drive and dual boot.  Only install bitcoin on the version of linux.   Don't mail your wallet to youreself unless its encrypted.  you will keep coins secure.
Thanks for the suggestions.
All my miners are Linux. in 2011 bitcoind and bitcoin-qt did not have encryption features. I have now created a new wallet and immediately encrypted it. I am concerned that there could be a keystroke logger on the windows pc. You are right I should keep all wallets in *nix pc.

Revewing Bitcoin / Crypto mining Hardware.
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!