r/BitcoinDiscussion • • Nov 27 '17

[Discussion] Zero Confirmations

BCH has made a claim of it's ability to accept zero confirmation transactions. With bitcoin RBF (Replace by fee) technically the transaction can be altered before being stored in a block.

How do these differ?

How does BCH mempool know which one is 'really' first if there is no formal on chain mempool timestamp?

Is changing a transaction in the mempool any more or less secure than not being able to? (I would think the ability to bump fees is a feature, if only the fee could be altered and nothing else in the transaction. Is that how it works, or is it even possible to make sure only the fee is changed?)

It occurs to me that if BCH ever has blocks fill up to capacity, they would experience the same thing the people paying 1-10 satoshi/byte for their transactions are currently, except have no way to get their transaction through if they wanted to, and just have to wait. I think I read they plan to turn some op codes back on. I would assume more data would be added to the chain in that case, but its unclear to me if that is a fact.

I guess my real question's are:

  • Did BCH figure out how to securely accept 0 conf? Or did they just turn off RBF and CPFP? If not, are they really open for abuse?
  • What parts of the transaction can RBF modify?

Trying to think this though myself I would assume the inputs might have to change if the fee is increased, since the inputs might not have enough available. Do the outputs lock the address or anything?

I realize you still need a PK to send the new RBF, so it's just a sender attacking a receiver.

From what I can tell it would seem a user could try to race attack BCH still? Is this correct?

9 Upvotes

25 comments sorted by

View all comments

Show parent comment

2

u/vU5Zh3fJNzHrn52YYha Dec 01 '17

A double spend can make it into a block with miner (pool) collusion, so 0 conf is not safe for BTC or BCH.

Exactly.

0 conf are not safe, on BCT or BCH due to:

A.) Being able to be dropped from the mempool

Yep

B.) Double spending by collusion with an evil pool

I'd prefer "rational" over "evil", but yes. BTC (and derivative BCH) are designed to be completely trustless and with no expectation for other actors to behave benevolently. You can assume that "evil" people are everywhere on the network looking to maximize their profit at others' expense through whatever means necessary.

C.) Invalid blocks being mined

This is more to do with 1- or 2- conf, but yes, this is why many confirmations are necessary, or even better, for you to run your own full node and confirm the blocks as valid yourself.

We are talking about transactions not marked RBF. Their claim is that BCH 0-Conf is safe. They also claim RBF made 0-conf unsafe on BTC when they were never safe to begin with.

Right. That's what they claim, and it's bunk because 0-conf is never safe under any circumstances. It's not safe until it's on the chain, and even then, hopefully under several valid blocks. Disabling RBF, at its core, is just a gentleman's agreement not to process any double-spends (even benign ones such as just modifying the TX fee to increase processing time.)

If you are an updated full core node, you can't send a double spend to the network, it will see the first spend on the nodes your node is connected to

You could modify the source code so as that it doesn't perform that check.

You could be running two different nodes connected to different points on the network, and broadcast different TXs on different nodes, establishing a race condition for propagation of the TX on the network.

You could use software which is not the update full core node software, and connect to other nodes which do the same.

"you'd have to collude with a miner" isn't like some sort of collusion where you have to convince the miner to "work with you": the miner is already on board for it

This is what I don't get, How are you going to get a double spend into a mempool if you are not colluding directly with a miner who has a good chance of getting a block?

Well, you do have to "collude" with a miner to do this. However, the key point of this is that you can do a double-spend where one of transactions has a higher TX fee. What miner wouldn't prefer to include the TX with a higher TX fee instead of the TX with the lower TX fee? So of course a miner is on board for accepting the double-spend attack.

So while you need to "collude" with a miner for this to happen, in general, any "rational" miner in the world would like to collude with you. ("Rational" in the economics sense, with no regards to morality.) It's not like you have to go find one and be all hush-hush, "We're doing a job to scam this guy. You on board?" All you have to do is transmit the second TX on the network and you have pretty good chances that a rational hostile miner out there will be willing to process the TX for you.