2
2
I am reading "Mastering Bitcoin written by Andreas" and I found this explanation of mining.
Transactions are added to the new block, prioritized by the highest-fee transactions first and a few other criteria.
I want to know what the a few other criteria are. And I want to see the source code where the system prioritizes by highest-fee transactions first and a few other criteria.
I guess that the code is in miner.cpp. But I don't understand the exact line.
https://github.com/bitcoin/bitcoin/blob/master/src/miner.cpp
♦ Thank you so much! I'm now reading the lines. – zono – 2015-01-23T16:51:25.007
♦ As far as I read the code, if nBlockPrioritySize is set larger than 1, transaction fee has higher priority than the sum of all the priorities of the inputs. Is it correct? – zono – 2015-01-23T17:15:20.047