Amitabh S (OP)
Legendary
Offline
Activity: 1001
Merit: 1005
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 27, 2015, 05:05:51 PM |
|
Say someone deposits 10 BTC, with 6 confirmations and immediately places a sell. Someone else buys them and withdraws quickly. After sometime a reorg invalidates the initial 10 BTC tx. What is the right way to handle this?
|
|
|
|
OnkelPaul
Legendary
Offline
Activity: 1039
Merit: 1005
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 27, 2015, 05:19:22 PM |
|
With "reorg" you mean a long chain that becomes orphaned? I've just looked it up, and unless the info I found is outdated, the longest such orphaned chain was 4 blocks (March 2013): http://bitcoin.stackexchange.com/questions/3343/what-is-the-longest-blockchain-fork-that-has-been-orphaned-to-dateThat non-canonical chain was mined on for some time by clients that were not updated, so it grew longer but never became the "official" chain again. So more than 6 blocks should be a rather rare event. I suspect that exchanges should have fork alarm mechanisms in place that allow them to stop emitting and accepting transactions when there is a reasonable expectation that a fork may happen. If they don't, they will probably negotiate with their users about how to handle BTC deposits and withdraws that are invalidated due to the fork. There is no defined "right" way to handle this, as neither the exchange nor the customer can be made responsible for the failed transactions. Onkel Paul
|
|
|
|
odolvlobo
Legendary
Offline
Activity: 4424
Merit: 3314
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 27, 2015, 05:21:23 PM |
|
Say someone deposits 10 BTC, with 6 confirmations and immediately places a sell. Someone else buys them and withdraws quickly. After sometime a reorg invalidates the initial 10 BTC tx. What is the right way to handle this?
A transaction with 6 confirmations is not likely to be invalidated, but it would be a major hassle for the exchange. The exchange would lose 10 BTC unless the sender pays again. It is possible that some withdrawals or other transactions would then be invalidated and those would have to be paid again.
|
Join an anti-signature campaign: Click ignore on the members of signature campaigns. PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
|
|
|
hongw
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2015, 04:01:55 AM |
|
Say someone deposits 10 BTC, with 6 confirmations and immediately places a sell. Someone else buys them and withdraws quickly. After sometime a reorg invalidates the initial 10 BTC tx. What is the right way to handle this?
The exchange would likely be having problems if this were to happen 6 confirmations in. It is my understanding that this type of thing will generally not affect any transactions more then 2 blocks deep. As mentioned above, if this were to happen then the exchange would need to bite the bullet on the 10 BTC, although they could in theory take the funds the seller received. Additionally the buyer who quickly withdrew his 6 BTC would have now not received his bitcoin to his address (due to the reorg)
|
|
|
|
Amitabh S (OP)
Legendary
Offline
Activity: 1001
Merit: 1005
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2015, 04:10:30 AM |
|
Additionally the buyer who quickly withdrew his 6 BTC would have now not received his bitcoin to his address (due to the reorg)
That's not necessarily true. If the exchange used different sets of coins for the withdraw transactions and those were not affected by the reorg, it could still be possible (I think).
|
|
|
|
Corenin
Legendary
Offline
Activity: 1008
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2015, 04:42:27 AM |
|
there are 2 possible things that could happen 1. all transaction that done during that reorg(including deposit and withdrawal) will need to be resent so in this case withdrawal of 10BTC will also not happen in real and second that most people thinking are now is exchange will loss that money (10 BTC) ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif)
|
|
|
|
|
100bitcoin
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2015, 01:15:32 PM |
|
Say someone deposits 10 BTC, with 6 confirmations and immediately places a sell. Someone else buys them and withdraws quickly. After sometime a reorg invalidates the initial 10 BTC tx. What is the right way to handle this?
First of all, it is a rarest of the rare situation. Even if it happens, both seller and buyer's Tx gets cancelled. Exchange needs to work with bank to revert the FIAT paid to the seller.
|
|
|
|
DannyHamilton
Legendary
Offline
Activity: 3472
Merit: 4790
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2015, 01:57:59 PM |
|
- snip - After sometime a reorg invalidates the initial 10 BTC tx. What is the right way to handle this?
A re-org would not necessarily "invalidate" the initial 10 BTC tx. It is quite possible that the transaction was confirmed on both chains and therefore the re-org has no effect on the transaction at all. It is also possible that the transaction was not yet confirmed on the new chain, but that it is still valid. In that case it would eventually be re-confirmed on the new chain, and the exchange would suffer no adverse effects at all. However, there is a possibility that the transaction (and other transactions that the exchange both sent and received) are invalid on the new chain. In this case, the exchange would be expected to re-compensate anybody that they sent transactions to which are not confirmable on the new chain. The exchange would lose any funds that were sent to them which became invalid on the new chain. They could attempt to contact those users and request that the user re-send the missing funds. They could engage in debt collection processes against anybody that didn't re-send the missing funds. Hopefully the exchange has calculated this risk and adjusted the pricing of their service to ensure that they have enough revenue to survive any loss experienced. They might also attempt to acquire an insurance policy that would compensate them for such losses.
|
|
|
|
hongw
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 30, 2015, 12:32:24 AM |
|
- snip - After sometime a reorg invalidates the initial 10 BTC tx. What is the right way to handle this?
A re-org would not necessarily "invalidate" the initial 10 BTC tx. It is quite possible that the transaction was confirmed on both chains and therefore the re-org has no effect on the transaction at all. It is also possible that the transaction was not yet confirmed on the new chain, but that it is still valid. In that case it would eventually be re-confirmed on the new chain, and the exchange would suffer no adverse effects at all. However, there is a possibility that the transaction (and other transactions that the exchange both sent and received) are invalid on the new chain. In this case, the exchange would be expected to re-compensate anybody that they sent transactions to which are not confirmable on the new chain. The exchange would lose any funds that were sent to them which became invalid on the new chain. They could attempt to contact those users and request that the user re-send the missing funds. They could engage in debt collection processes against anybody that didn't re-send the missing funds. Hopefully the exchange has calculated this risk and adjusted the pricing of their service to ensure that they have enough revenue to survive any loss experienced. They might also attempt to acquire an insurance policy that would compensate them for such losses. I think that debt collection is difficult for a lot of exchanges that do not require identity verification like bitfinex, btc-e and LBC (although technically not an exchange however the same principle applies). To my knowledge they all accept connections via anon proxies so all they would really have to go on is an email address, and it would not be difficult to create a new account if a reorg caused their account to "go negative". If a person's identity is not tied to their exchange account then I would doubt that many people would redeposit funds back into their account
|
|
|
|
Kazimir
Legendary
Offline
Activity: 1176
Merit: 1011
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 30, 2015, 12:40:36 AM |
|
Say someone deposits 10 BTC, with 6 confirmations and immediately places a sell. Someone else buys them and withdraws quickly. After sometime a reorg invalidates the initial 10 BTC tx. Orphaning 6+ blocks is very unlikely. Orphaning 6+ blocks AND not including an initial transaction of 10 BTC in the new chain is extremely unlikely. What is the right way to handle this? For the withdraw transaction, the exchange spends the same coins that came from the initial deposit (the transaction is built with the same outputs). So even if (and that's a huge if) the blockchain part with the 10 BTC becomes orphaned, and doesn't end up in the new chain, thus basically deleting the 10 BTC deposit from history, then so will the 10 BTC withdrawal.
|
|
|
|
DannyHamilton
Legendary
Offline
Activity: 3472
Merit: 4790
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 30, 2015, 03:16:11 AM |
|
I think that debt collection is difficult for a lot of exchanges that do not require identity verification like bitfinex, btc-e and LBC (although technically not an exchange however the same principle applies). To my knowledge they all accept connections via anon proxies so all they would really have to go on is an email address, and it would not be difficult to create a new account if a reorg caused their account to "go negative". If a person's identity is not tied to their exchange account then I would doubt that many people would redeposit funds back into their account
If they choose to take on such a risk, that is their business. It is up to the business to protect their financial interests.
|
|
|
|
hongw
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 30, 2015, 03:41:19 AM |
|
I think that debt collection is difficult for a lot of exchanges that do not require identity verification like bitfinex, btc-e and LBC (although technically not an exchange however the same principle applies). To my knowledge they all accept connections via anon proxies so all they would really have to go on is an email address, and it would not be difficult to create a new account if a reorg caused their account to "go negative". If a person's identity is not tied to their exchange account then I would doubt that many people would redeposit funds back into their account
If they choose to take on such a risk, that is their business. It is up to the business to protect their financial interests. Well bitcoin is somewhat principled on libertarian values which includes anonymity. Both when Gox (a very long time ago) and bitstamp (more recently) started requiring their customers to provide identity documents before they can withdraw even bitcoin, people made a big fuss about it. I don't however think the risk for a reorg is very large, and the chances of a lot of any given exchange's customers withdrawing their entire balance at a time when a reorg would cause losses is probably even greater.
|
|
|
|
DannyHamilton
Legendary
Offline
Activity: 3472
Merit: 4790
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 30, 2015, 03:44:28 PM |
|
Well bitcoin is somewhat principled on libertarian values which includes anonymity.
Other libertarian values are personal responsibility and suffering the consequences of your actions when your decisions lead to loss that you are not prepared for.
|
|
|
|
fenghush
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 30, 2015, 03:47:01 PM |
|
Quite unlikely for this to happen. But it is possible, any reputable exchange should have enough funds to cover any loses in such scenario.
|
|
|
|
|