Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: sho_road_warrior on March 03, 2015, 09:08:25 AM



Title: Definition of the priority buckets
Post by: sho_road_warrior on March 03, 2015, 09:08:25 AM
I want to add more information to my nodes info page and thought about adding infos for the priority of the TX in the nodes mempool. IIRC getrawmempool true returns the priority of each TX. I also know that a priority over 57.6 million is considered high and that bitcoin core/qt has other buckets when it classifies an input. Those that I can remember atm are lower, lowest(?), low-medium, medium, medium-high.

Which range of value do these buckets or words represent? Are the values behind them comparabel to the values of a TXs priority? I know tbe size plays a role when determining a TXs priority.

tl;dr: what are reasonable buckets for a TXs priority when presented in a graph?


Title: Re: Definition of the priority buckets
Post by: gmaxwell on March 04, 2015, 05:39:29 AM
There is no such thing as categories of priority. Priority is either high enough to not be treated as zero, or it's not. And everything is linear in priority after that.

(You're referring to BC.i's behavior, I think.... which has little to no connection to reality.)


Title: Re: Definition of the priority buckets
Post by: shorena on March 04, 2015, 07:14:48 AM
There is no such thing as categories of priority. Priority is either high enough to not be treated as zero, or it's not. And everything is linear in priority after that.

(You're referring to BC.i's behavior, I think.... which has little to no connection to reality.)

Thanks for the answer. A binary graph would be easier, but I was refering to the following categories in bitcoin core/qt:

-Im shy about my coins-

I know at this stage its just an unspend output from the previous transaction, but judging how high amounts and few confirmations get a higher "rating" I though this was related to the the priority of a transaction.

I found it in the source[1] now and it looks like a log scale around the hard coded value "AllowFreeThreshold()"[2] (aka "bitcoin day") or as of 0.10. an estimate depending on the nodes mempool.



[1] https://github.com/bitcoin/bitcoin/blob/7620ef9e7edbc3526e71922e7b080b5a332d6897/src/qt/coincontroldialog.cpp#L422
[2] https://github.com/bitcoin/bitcoin/blob/f914f1a746d7f91951c1da262a4a749dd3ebfa71/src/txmempool.h#L18


Title: Re: Definition of the priority buckets
Post by: gmaxwell on March 04, 2015, 07:28:47 AM
Thats goofy, I missed that. Don't worry: I'm going to go remove that right now.


Title: Re: Definition of the priority buckets
Post by: sho_road_warrior on March 04, 2015, 02:14:01 PM
Thats goofy, I missed that. Don't worry: I'm going to go remove that right now.

Haha, allright. In that case Ill go for the "high enough or not" approach.