Imagine Ana and Bruno send bitcoins just a few seconds apart.
Ana's transaction reaches the network first.
Bruno's arrives later....


However, when the next block is created...
BRUNO'S IS CONFIRMED FIRST!


HOW IS THAT POSSIBLE?
Because the mempool isn't a queue where transactions wait their turn in the order they arrive.
Miners, or the pools that prepare their candidate blocks, can choose which transactions to include. And they're not required to select the oldest ones....


WHY WOULD THEY CHOOSE ONE TRANSACTION OVER ANOTHER?
Because block space is limited, and the fees from included transactions are part of the reward received by whoever manages to produce a valid block.
That’s why the selection software usually tries to make the most of that space to earn more.


But pay attention...
IT’S NOT JUST HOW MUCH YOU PAY IN FEES THAT MATTERS.
WHAT MATTERS IS HOW MUCH YOU PAY IN RELATION TO THE SIZE OF YOUR TRANSACTION.


WHAT IS THE FEE RATE?
It’s the fee rate, usually expressed in satoshis per virtual byte: sat/vB.


A satoshi, remember, is the smallest unit of bitcoin, and the virtual byte (vB) is a measure of a transaction’s size calculated from its weight.


Let’s look at a simple example.
ANA: her transaction takes up 400 vB and pays 2,000 satoshis.
2,000 Ă· 400 = 5 sat/vB.


BRUNO: his transaction takes up 200 vB and also pays 2,000 satoshis.
2,000 Ă· 200 = 10 sat/vB.


THEY BOTH PAY EXACTLY THE SAME TOTAL FEE!
But Bruno offers twice as much per virtual byte of space used.
That’s why, if the other conditions are comparable, his transaction may be more attractive to whoever is building the block.
And it could be confirmed sooner, even though it arrived later....


SO DOES THE TRANSACTION WITH THE HIGHER FEE RATE ALWAYS GET CONFIRMED FIRST?
NO...
Some transactions depend on others that haven’t been confirmed yet. In those cases, the software can evaluate the entire group and the combined fees.
Also, each miner or pool may apply its own selection strategy, while always respecting the consensus rules.

A higher fee rate can improve the odds....
BUT IT DOES NOT GUARANTEE GETTING INTO THE NEXT BLOCK.


HOW MUCH SPACE IS THERE?
Since SegWit (a Bitcoin protocol upgrade activated on August 24, 2017), a block cannot exceed 4,000,000 weight units.
This limited capacity means that when many transactions compete at the same time, some remain pending.


AND HOW DOES ANA KNOW WHAT FEE TO OFFER?
Many wallets estimate fees based on information from previous confirmations and, depending on the service they use, pending transactions.
That’s why they usually offer options such as high or low priority.
BUT THOSE NUMBERS ARE ESTIMATES, NOT PROMISES...
Demand for space can change while the transaction is waiting.


And now comes the question that takes us to the next section...
IF ANA CHOOSES A FEE THAT’S TOO LOW AND HER TRANSACTION GOES HOURS WITHOUT BEING CONFIRMED...
CAN SHE DO ANYTHING TO IMPROVE HER ODDS?
OR DOES SHE JUST HAVE TO WAIT....


WE’LL FIND OUT IN THE NEXT BLOCK ...
BECAUSE IN BITCOIN, SENDING FIRST DOESN’T MEAN GETTING CONFIRMED FIRST.
AND PAYING A FEE DOESN’T BUY YOU A GUARANTEED SPOT IN THE NEXT BLOCK....


$BTC $ETH $BNB


#Bitcoin #FeeRate #MineriaBitcoin #Blockchain