Bitcoin Forum
May 06, 2024, 10:58:22 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: If two transactions have the same fee, is their processing order random?  (Read 391 times)
Matias (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 101


View Profile
November 19, 2017, 02:06:59 PM
 #1

If I've understood correctly, transaction's age does not affect any more its priority? So if two transactions have the same fee, which one is processed first?
1715036302
Hero Member
*
Offline Offline

Posts: 1715036302

View Profile Personal Message (Offline)

Ignore
1715036302
Reply with quote  #2

1715036302
Report to moderator
1715036302
Hero Member
*
Offline Offline

Posts: 1715036302

View Profile Personal Message (Offline)

Ignore
1715036302
Reply with quote  #2

1715036302
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715036302
Hero Member
*
Offline Offline

Posts: 1715036302

View Profile Personal Message (Offline)

Ignore
1715036302
Reply with quote  #2

1715036302
Report to moderator
1715036302
Hero Member
*
Offline Offline

Posts: 1715036302

View Profile Personal Message (Offline)

Ignore
1715036302
Reply with quote  #2

1715036302
Report to moderator
1715036302
Hero Member
*
Offline Offline

Posts: 1715036302

View Profile Personal Message (Offline)

Ignore
1715036302
Reply with quote  #2

1715036302
Report to moderator
Potato Chips
Hero Member
*****
Offline Offline

Activity: 2758
Merit: 894


yesssir! 🫡


View Profile
November 19, 2017, 02:19:46 PM
Last edit: November 19, 2017, 02:30:40 PM by Potato Chips
Merited by ABCbits (1)
 #2

If I've understood correctly, transaction's age does not affect any more its priority?
No, What decides a particular transaction's priority is its included fee as the miners prioritizes transactions with a higher fee. But please note that this fee depends on the transaction size and the network condition so for example if your transaction has a lot of inputs resulting in a bigger size, it will require more fee, the same also applies if the network is busy.

Here is a site that gives a fee estimation: https://bitcoinfees.earn.com/

So if two transactions have the same fee, which one is processed first?
If they have the same fee, The transaction which is less in size will most likely get confirmed first. But If they have the same size then luck will probably decide which will get confirmed first. A situation where both of them are never confirmed might also happen if the fees were insufficient for the size and/or for the current network condition.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
alani123
Legendary
*
Offline Offline

Activity: 2394
Merit: 1412


Leading Crypto Sports Betting & Casino Platform


View Profile
November 19, 2017, 02:23:13 PM
 #3

It's not random random but we don't know what parameters each miner will have for picking up transactions. If a couple of transactions have the same fee and same sat/byte value as well (which afaik is what matters to miners) then there'd be increased chances that they would be in the same block but that can't be guaranteed to be the case. There's nothing holding the two transactions together and there's a top of other variables that could end up putting them in a different block.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4166


View Profile
November 19, 2017, 02:31:04 PM
 #4

No, What decides a particular transaction's priority is its included fee as the miners prioritizes transactions with a higher fee.
OP is talking about transaction priority, which has a formula including its coin age and output amount.

If A is bigger in size, Transaction B will most likely get confirmed first. But If they have the same size then luck  will probably decide which will get confirmed first.
Why would the smaller be included first?


Transaction priority is mostly deprecated right now, the reference client does not use it for free transaction anymore. In fact, reference client doesn't consider priority when relaying transactions anymore.

You have to understand that miners have their own backend and it is up to them to decide which transaction gets included first. No one would know which transaction would get included first and its neither useful nor important. If I were to give an educated guess, it would likely be the transaction for which the miner sees first that would get a higher chance. The whole process about mining is not the miner finding a block and include the transaction. The inclusion of transaction is before the miner starts hashing their block header.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Matias (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 101


View Profile
November 19, 2017, 02:31:25 PM
 #5

To clarify my question, I referred to two transactions, A and B, to have the safe fee per byte.
Matias (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 101


View Profile
November 19, 2017, 02:51:02 PM
 #6


Transaction priority is mostly deprecated right now, the reference client does not use it for free transaction anymore. In fact, reference client doesn't consider priority when relaying transactions anymore.

You have to understand that miners have their own backend and it is up to them to decide which transaction gets included first. No one would know which transaction would get included first and its neither useful nor important. If I were to give an educated guess, it would likely be the transaction for which the miner sees first that would get a higher chance. The whole process about mining is not the miner finding a block and include the transaction. The inclusion of transaction is before the miner starts hashing their block header.

In the current situation, where backlog is finally clearing after the one weeks glut, and there is a large number (approximately 20 000) of low fee (1-10 satoshis per byte) payments, which have been waiting several days, what decides the order between them? Is it random?

ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4166


View Profile
November 19, 2017, 04:11:57 PM
 #7

In the current situation, where backlog is finally clearing after the one weeks glut, and there is a large number (approximately 20 000) of low fee (1-10 satoshis per byte) payments, which have been waiting several days, what decides the order between them? Is it random?
Honestly, since I don't control any mining pools, I can't tell for sure.

If the miners even see those transactions, the first thing is of course the fees/byte. As with the order, it differs from miner to miner. I would imagine that the miner would include whichever transaction he sees first as the merkle root is calculated first. I'm not sure whether any miner decides which transaction to include based on how well it would fit. It would definitely require some calculation.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
November 19, 2017, 05:10:52 PM
 #8

To clarify my question, I referred to two transactions, A and B, to have the safe fee per byte.

If a miner recieves two transactions with the same sat/B fee it depends on the algorithm he uses for including transactions into a block.
Usually miners are looking for the biggest profit. For example: If a miner already included the "few" transactions with the highest fee and now
only has, lets say, 200 Byte left in this block. Then if TX A is 100 bytes big and TX B is 300 bytes.. he will either confirm TX A into his block or he skips A and B
and confirms TX C with a lower sat/B fee, but a bigger size so the "overall-"profit is bigger. You can't tell for sure how a miner decides on 2 (exact) same transactions.
Its all how they have coded their algorithm. I think if there is no monetary advantage most miners will go with FIFO.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!