0
Let’s have 2 transactions. The second one is duplicating Input of the first one.
Both have very high fees so they are selected by miner to be included in the same block but before passing validation (because it makes no sense to validate transactions if they aren’t included in the block after because the fee is too low).
Which is the transaction is going to be rejected by not being included in the block ? The first one with a slightly lower fee than the second or as it’s the same block, the second one ?
And where is the code in Bitcoin core handling this ? I mean which source files and lines ?
So it’s the case of duplicate inputs for 2 different transactions in the same block. – user2284570 – 2019-04-23T21:41:32.553