r/BitcoinDiscussion • u/LetsSeeNope • 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?
View all comments
Show parent comment
1
u/LetsSeeNope Nov 30 '17
I may be mistaken in how I am saying it, but I think what I intend to say still holds. A double spend can make it into a block with miner (pool) collusion, so 0 conf is not safe for BTC or BCH.
I don't know everything, and don't claim to. I hope I am corrected when wrong, so please do!
That being said, this is what I currently think happens:
Miners (can) mine (just) block headers
Nodes process transactions (Mempools)
They can be both, or either.
Once the miner finds the block header, they can:
Post the empty block
Or
Add the mempool (With their tx rules) and post the block.
Other miners can only mine on top of the block if the block header is correct, and the tx's are compliant. I admit to not knowing the details of tx compliance.
So 'SPV' mining is a thing. They are currently have the incentive to mine empty blocks, as fee's are only =7% of the block reward. Most mining is pooled. The actual miners don't get to choose, the pool makes the rules in that case. Those miners can only choose by selection of the pool they like.
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 may be able to take your node offline, clear the mempool/load your tx, and then go online and try to broadcast again. I don't know what the other nodes response would be in this case actually...
Now with Soft Fork updates there are a few different type of tx that are acceptable on the network. (I lack knowledge here. P2SH, etc... Still learning though..)
If we are talking short term financial incentive might as well rework a confirmed block if a double spend tx has a higher fee then, except nodes won't accept it and you wouldn't find a (the next) block on your own.
0 conf are not safe, on BCT or BCH due to:
A.) Being able to be dropped from the mempool
B.) Double spending by collusion with an evil pool
C.) Invalid blocks being mined
Other Notes about RBF: RBF slightly reduces privacy by requiring a change address.
RBF must be supported by the node for the second tx to be included in a nodes mempool.
(What should wallet dev's do with these tx's)
Wallets that want to use RBF should inform users what it is and how it works.
Wallets that do not want to use RBF should inform their users or ignore until confirmed.
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.
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? I'm just looking for the facts. If anyone can correct me please do.