Bitcoin Forum
December 15, 2024, 08:40:36 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Possible to double spend if 2 confirmations ?  (Read 632 times)
rudarSRB (OP)
Full Member
***
Offline Offline

Activity: 220
Merit: 100


View Profile
July 20, 2016, 07:15:29 PM
 #1

No i not try to doublespend (we talk about 20$) but someone scammed me he claim that even on 2 confirmation i can double spend.

Please only the real pro should reply here as i need strong evidence about this !
achow101
Staff
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
July 20, 2016, 07:31:14 PM
 #2

No i not try to doublespend (we talk about 20$) but someone scammed me he claim that even on 2 confirmation i can double spend.

Please only the real pro should reply here as i need strong evidence about this !
Theoretically yes, in practice, no.

In order to do that, you would need to be able to mine three blocks before the rest of the miners find the block for the third confirmation. Those three blocks would have to include the double spending transaction and be a small fork of the blockchain the began on the block before your first confirmation.

rudarSRB (OP)
Full Member
***
Offline Offline

Activity: 220
Merit: 100


View Profile
July 20, 2016, 07:57:53 PM
 #3

No i not try to doublespend (we talk about 20$) but someone scammed me he claim that even on 2 confirmation i can double spend.

Please only the real pro should reply here as i need strong evidence about this !
Theoretically yes, in practice, no.

In order to do that, you would need to be able to mine three blocks before the rest of the miners find the block for the third confirmation. Those three blocks would have to include the double spending transaction and be a small fork of the blockchain the began on the block before your first confirmation.

Ok so in theory it's for a single user impossible unless you have the hardware right ?!
achow101
Staff
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
July 20, 2016, 08:00:55 PM
 #4

No i not try to doublespend (we talk about 20$) but someone scammed me he claim that even on 2 confirmation i can double spend.

Please only the real pro should reply here as i need strong evidence about this !
Theoretically yes, in practice, no.

In order to do that, you would need to be able to mine three blocks before the rest of the miners find the block for the third confirmation. Those three blocks would have to include the double spending transaction and be a small fork of the blockchain the began on the block before your first confirmation.

Ok so in theory it's for a single user impossible unless you have the hardware right ?!
Yes. Performing such an attack would require a lot of hardware. In order to have any probability of success, you would need to have greater than 50% of the hash rate. At the current network hashrate, that is incredibly expensive and pretty much impossible.

rudarSRB (OP)
Full Member
***
Offline Offline

Activity: 220
Merit: 100


View Profile
July 20, 2016, 08:02:48 PM
 #5

Thanks a lot guys that you confirmed my claim about how hard or even impossible it would be to double spend 2 confirmations !
leen93
Sr. Member
****
Offline Offline

Activity: 616
Merit: 250



View Profile
July 20, 2016, 11:09:51 PM
 #6

No i not try to doublespend (we talk about 20$) but someone scammed me he claim that even on 2 confirmation i can double spend.

Please only the real pro should reply here as i need strong evidence about this !
no
rudarSRB (OP)
Full Member
***
Offline Offline

Activity: 220
Merit: 100


View Profile
July 21, 2016, 04:51:29 PM
 #7

Quote from the guy :

You don't need 50%+ of mining to do it. It's completely possible, a low transaction fee with low priority vs a high transaction fee with high priority gets priority and double spending can happen that way, that's why sites wait for multiple confirmations and they suggest you do too. It forks often too so therefore double spend is possible with one confirmation




Is this true???
longbob72
Hero Member
*****
Offline Offline

Activity: 574
Merit: 503


V2h5IGFyZSB5b3UgcmVhZGluZyB0aGlzPw==


View Profile
July 21, 2016, 05:00:18 PM
Last edit: July 21, 2016, 05:18:09 PM by longbob72
 #8

Quote from the guy :

You don't need 50%+ of mining to do it. It's completely possible, a low transaction fee with low priority vs a high transaction fee with high priority gets priority and double spending can happen that way, that's why sites wait for multiple confirmations and they suggest you do too. It forks often too so therefore double spend is possible with one confirmation




Is this true???

No. Nodes won't even accept a transaction when another transaction with the same input already exist in the mempool. And once a transaction have been mined the other one will never confirm even it have a huge fee (unless the attacker successfully does what knightdk described above).

                                                                       
    ▄▄███████▄▄                           ▄      ▄
   ██████████████▄                       ███    ███
  ███▀ ▄▄▄▄▄▄▄ ▀████                     ███    ███
  █████████████▄ ▀███                    ███    ███   █▄ ▄▄
   ▀████▄  ▄▄███  ▀███                   ███    ███  ▄████
   ▄███████████   ▄███                  ███    ███  ▀▀███▀▀
   ███           ▄███         ▄▄▄▄      ███    ███     █    ▄▄  ▄▄▄▄
  ▄███     ▄▄▄▄█████        ▄█████▄    ▄██▀   ▄██▀    ███   █████████
  ███▄    ████████         ▄███▀▀███   ███    ███    ███▀   █████▀████
   ███     ▀▀█████▄      ▄█████▄ ███   ███    ███    ███    ████   ███
   ███         ▀███▄     ███▀███ ███  ███▀   ███▀    ███    ███▀   ███
   ███           ███▄    ███  ▀▀ ███  ███    ███    ███▀   ▄███    ███
   ▀██▄           ███    ███▄  ▄███   ███    ███    ███    ███    ███▀
    ███           ▀███▄   ████████    ███    ███    ███    ███    ███
    ▀██            ▀████   ▀████▀      ██     ██    ▀██    ▀█▀    ▀█▀


.
.
.
        ▄▄▀                ▀▄▄
     ▄ ▀▀                    ▀▀ ▄
   ▄ ▀▀▀                      ▀▀▀ ▄
  ▄▀▀▀                          ▀▀▀▄
 ▀█▄▄                            ▄▄█▀
▄█  ▄                            ▄  █▄
▀█ █▀                            ▀█ █▀
█▄  ▄                            ▄  ▄█
▀█ █                              █ █▀
█▄   █                          █   ▄█
 ██▄█▀                          ▀█▄██
  ▀▀  ▄█                      █▄  ▀▀
  ▀██▄ ▀  █▄              ▄█  ▀ ▄██▀
    ▀▀▀   ██  █▄      ▄█  ██   ▀▀▀
     ▀███▄▄▀  ███    ███  ▀▄▄███▀
        ▀▀▀▀▄▄▄▄▀    ▀▄▄▄▄▀▀▀▀
          ▀▀█████▀▀▀▀█████▀▀
.
.
Free Bitcoins
Chat Lottery & Games
Level Up System with Rewards
▄████████▄  ▄████████▄
██      ██  ██      ██
██      ██  ██      ██
██      ██  ██      ██
██      ██  ██      ██
 ████████    ████████
██      ██  ██      ██
██      ██  ██      ██
██      ██  ██      ██
██      ██  ██      ██
▀████████▀  ▀████████▀
.
achow101
Staff
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
July 21, 2016, 05:20:40 PM
 #9

Quote from the guy :

You don't need 50%+ of mining to do it. It's completely possible, a low transaction fee with low priority vs a high transaction fee with high priority gets priority and double spending can happen that way, that's why sites wait for multiple confirmations and they suggest you do too.
Partially. If a transaction has a low fee (and does not signal RBF) but is above the node's relay threshold, then the any higher fee replacement transaction will be rejected by the node. However if the fee was too low, that transaction would have been rejected by the node and the high fee replacement would be accepted. Furthermore, if a transactions signals RBF (meaning that it can be replaced by a higher fee double spend) then even if it is in the mempool of a node, the higher fee can replace it.

The naive way to deal with this is to wait for confirmations. The actual smart way that many companies and people do is to examine a transaction to determine the probability of ever confirming. The things to check are the fees and the sequence numbers of the input. Any sequence number that isn't 0xffffffff means that the transaction is not final so it has a higher chance of not confirming. Thus you should wait for a confirmation. Any transaction that has a low fee should also wait for a confirmation before accepting it as a payment.

It forks often too so therefore double spend is possible with one confirmation
That is not true. The "forks" are known as orphan (or stale) blocks and these happen when two miners find two blocks of the same height. One of those has to be ignored. This does not happen very often, maybe once every few thousand blocks, according to my node.

RodeoX
Legendary
*
Offline Offline

Activity: 3066
Merit: 1147


The revolution will be monetized!


View Profile
July 21, 2016, 05:31:02 PM
 #10

No i not try to doublespend (we talk about 20$) but someone scammed me he claim that even on 2 confirmation i can double spend.

Please only the real pro should reply here as i need strong evidence about this !
Theoretically yes, in practice, no.

In order to do that, you would need to be able to mine three blocks before the rest of the miners find the block for the third confirmation. Those three blocks would have to include the double spending transaction and be a small fork of the blockchain the began on the block before your first confirmation.

Ok so in theory it's for a single user impossible unless you have the hardware right ?!
Yes. Performing such an attack would require a lot of hardware. In order to have any probability of success, you would need to have greater than 50% of the hash rate. At the current network hashrate, that is incredibly expensive and pretty much impossible.
That's the thing. While it is *possible, it is in no way profitable. With each confirmation it becomes exponentially harder and more expensive. The same is true with credit cards. For example, until recently you could not use a credit card at MacDonald's. That is because assuring that the transaction is legitimate costs more than the profit from the transaction. The card companies finally wised up and realized that creating a false transaction also costs more than a MacDonald's meal. So now you can use your card and they just assume that you will act logically and not spend dollars to get pennies.

The gospel according to Satoshi - https://bitcoin.org/bitcoin.pdf
Free bitcoin in ? - Stay tuned for this years Bitcoin hunt!
Das
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
July 22, 2016, 07:52:20 PM
 #11

You cannot spend those coins again after two confirmations. Normally, one confirmation is sufficient to make a transaction irreversible because the confirmation will show in the open ledger.
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!