<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif,&quot;EmojiFont&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"></p>
<div>I should not take it that the lack of critical feedback to this revised proposal is a glowing endorsement. I understand that there would be technical issues to resolve in implementation, but, are there no fundamental errors?<br>
<br>
I suppose that it if is difficult to determine how long a transaction has been waiting in the pool then, each node could simply keep track of when a transaction was first seen. This may have implications for a verify routine, however, for example, if a node
 was offline, how should it differentiate how long each transaction was waiting in that case? If a node was restarted daily would it always think that all transactions had been waiting in the pool less than one day If each node keeps the current transaction
 pool in a file and updates it, as transactions are included in blocks and, as new transactions appear in the pool, then that would go some way to alleviate the issue, apart from entirely new nodes. There should be no reason the contents of a transaction pool
 files cannot be shared without agreement as to the transaction pool <span>between nodes</span>, just as nodes transmit new transactions freely.<br>
<br>
It has been questioned why miners could not cheat. For the question of how many transactions to include in a block, I say it is a standoff and miners will conform to the proposal, not wanting to leave transactions with valid fees standing, and, not wanting
 to shrink the transaction pool. In any case, if miners shrink the transaction pool then I am not immediately concerned since it provides a more efficient service. For the question of including transactions according to the proposal, I say if it is possible
 to keep track of how long transactions are waiting in the pool so that they can be included on a probability curve then it is possible to verify that blocks conform to the proposal, since the input is a probability, the output should conform to a probability
 curve.</div>
<br>
<p></p>
<div>If someone has the necessary skill, would anyone be willing to develop the math necessary for the proposal?</div>
<br>
Regards,<br>
Damian Williamson<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> bitcoin-dev-bounces@lists.linuxfoundation.org &lt;bitcoin-dev-bounces@lists.linuxfoundation.org&gt; on behalf of Damian Williamson via bitcoin-dev
 &lt;bitcoin-dev@lists.linuxfoundation.org&gt;<br>
<b>Sent:</b> Friday, 8 December 2017 8:01 AM<br>
<b>To:</b> bitcoin-dev@lists.linuxfoundation.org<br>
<b>Subject:</b> [bitcoin-dev] BIP Proposal: Revised: UTPFOTIB - Use Transaction Priority For Ordering Transactions In Blocks</font>
<div>&nbsp;</div>
</div>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,&quot;EmojiFont&quot;,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols">
<p style="margin-top:0; margin-bottom:0"></p>
<div>Good afternoon,<br>
<br>
The need for this proposal:<br>
<br>
We all must learn to admit that transaction bandwidth is still lurking as a serious issue for the operation, reliability, safety, consumer acceptance, uptake and, for the value of Bitcoin.<br>
<br>
I recently sent a payment which was not urgent so; I chose three-day target confirmation from the fee recommendation. That transaction has still not confirmed after now more than six days - even waiting twice as long seems quite reasonable to me. That transaction
 is a valid transaction; it is not rubbish, junk or, spam. Under the current model with transaction bandwidth limitation, the longer a transaction waits, the less likely it is ever to confirm due to rising transaction numbers and being pushed back by transactions
 with rising fees.<br>
<br>
I argue that no transactions are rubbish or junk, only some zero fee transactions might be spam. Having an ever-increasing number of valid transactions that do not confirm as more new transactions with higher fees are created is the opposite of operating a
 robust, reliable transaction system.<br>
<br>
Business cannot operate with a model where transactions may or may not confirm. Even a business choosing a modest fee has no guarantee that their valid transaction will not be shuffled down by new transactions to the realm of never confirming after it is created.
 Consumers also will not accept this model as Bitcoin expands. If Bitcoin cannot be a reliable payment system for confirmed transactions then consumers, by and large, will simply not accept the model once they understand. Bitcoin will be a dirty payment system,
 and this will kill the value of Bitcoin.<br>
<br>
Under the current system, a minority of transactions will eventually be the lucky few who have fees high enough to escape being pushed down the list.<br>
<br>
Once there are more than x transactions (transaction bandwidth limit) every ten minutes, only those choosing twenty-minute confirmation (2 blocks) will have initially at most a fifty percent chance of ever having their payment confirm. Presently, not even using
 fee recommendations can ensure a sufficiently high fee is paid to ensure transaction confirmation.<br>
<br>
I also argue that the current auction model for limited transaction bandwidth is wrong, is not suitable for a reliable transaction system and, is wrong for Bitcoin. All transactions must confirm in due time. Currently, Bitcoin is not a safe way to send payments.<br>
<br>
I do not believe that consumers and business are against paying fees, even high fees. What is required is operational reliability.<br>
<br>
This great issue needs to be resolved for the safety and reliability of Bitcoin. The time to resolve issues in commerce is before they become great big issues. The time to resolve this issue is now. We must have the foresight to identify and resolve problems
 before they trip us over.&nbsp; Simply doubling block sizes every so often is reactionary and is not a reliable permanent solution. I have written a BIP proposal for a technical solution but, need your help to write it up to an acceptable standard to be a full
 BIP.<br>
<br>
I have formatted the following with markdown which is human readable so, I hope nobody minds. I have done as much with this proposal as I feel that I am able so far but continue to take your feedback.<br>
<br>
# BIP Proposal: UTPFOTIB - Use Transaction Priority For Ordering Transactions In Blocks<br>
<br>
## The problem:<br>
Everybody wants value. Miners want to maximize revenue from fees (and we presume, to minimize block size). Consumers need transaction reliability and, (we presume) want low fees.<br>
<br>
The current transaction bandwidth limit is a limiting factor for both. As the operational safety of transactions is limited, so is consumer confidence as they realize the issue and, accordingly, uptake is limited. Fees are artificially inflated due to bandwidth
 limitations while failing to provide a full confirmation service for all transactions.<br>
<br>
Current fee recommendations provide no satisfaction for transaction reliability and, as Bitcoin scales, this will worsen.<br>
<br>
Bitcoin must be a fully scalable and reliable service, providing full transaction confirmation for every valid transaction.<br>
<br>
The possibility to send a transaction with a fee lower than one that is acceptable to allow eventual transaction confirmation should be removed from the protocol and also from the user interface.<br>
<br>
## Solution summary:<br>
Provide each transaction with an individual transaction priority each time before choosing transactions to include in the current block, the priority being a function of the fee paid (on a curve), and the time waiting in the transaction pool (also on a curve)
 out to n days (n=60 ?). The transaction priority to serve as the likelihood of a transaction being included in the current block, and for determining the order in which transactions are tried to see if they will be included.
<br>
<br>
Use a target block size. Determine the target block size using; current transaction pool size x ( 1 / (144 x n days ) ) = number of transactions to be included in the current block. Broadcast the next target block size with the current block when it is solved
 so that nodes know the next target block size for the block that they are building on.<br>
<br>
The curves used for the priority of transactions would have to be appropriate. Perhaps a mathematician with experience in probability can develop the right formulae. My thinking is a steep curve. I suppose that the probability of all transactions should probably
 account for a sufficient number of inclusions that the target block size is met although, it may not always be. As a suggestion, consider including some zero fee transactions to pad, highest BTC value first?<br>
<br>
**Explanation of the operation of priority:**<br>
&gt; If transaction priority is, for example, a number between one (low) and one-hundred (high) it can be directly understood as the percentage chance in one-hundred of a transaction being included in the block. Using probability or likelihood infers that there
 is some function of random. If random (100) &lt; transaction priority then the transaction is included.<br>
<br>
&gt;To break it down further, if both the fee on a curve value and the time waiting on a curve value are each a number between one and one-hundred, a rudimentary method may be to simply multiply those two numbers, to find the priority number. For example, a middle
 fee transaction waiting thirty days (if n = 60 days) may have a value of five for each part&nbsp; (yes, just five, the values are on a curve). When multiplied that will give a priority value of twenty-five, or,&nbsp; a twenty-five percent chance at that moment of being
 included in the block; it will likely be included in one of the next four blocks, getting more likely each chance. If it is still not included then the value of time waiting will be higher, making for more probability. A very low fee transaction would have
 a value for the fee of one. It would not be until near sixty-days that the particular low fee transaction has a high likelihood of being included in the block.<br>
<br>
I am not concerned with low (or high) transaction fees, the primary reason for addressing the issue is to ensure transactional reliability and scalability while having each transaction confirm in due time.<br>
<br>
## Pros:<br>
* Maximizes transaction reliability.<br>
* Fully scalable.<br>
* Maximizes possibility for consumer and business uptake.<br>
* Maximizes total fees paid per block without reducing reliability; because of reliability, in time confidence and overall uptake are greater; therefore, more transactions.<br>
* Market determines fee paid for transaction priority.<br>
* Fee recommendations work all the way out to 30 days or greater.<br>
* Provides additional block entropy; greater security since there is less probability of predicting the next block.<br>
<br>
## Cons:<br>
* Could initially lower total transaction fees per block.<br>
* Must be first be programmed.<br>
<br>
## Solution operation:<br>
This is a simplistic view of the operation. The actual operation will need to be determined in a spec for the programmer.<br>
<br>
1. Determine the target block size for the current block.<br>
2. Assign a transaction priority to each transaction in the pool.<br>
3. Select transactions to include in the current block using probability in transaction priority order until the target block size is met.<br>
5. Solve block.<br>
6. Broadcast the next target block size with the current block when it is solved.<br>
7. Block is received.<br>
8. Block verification process.<br>
9. Accept/reject block based on verification result.<br>
10. Repeat.<br>
<br>
## Closing comments:<br>
It may be possible to verify blocks conform to the proposal by showing that the probability for all transactions included in the block statistically conforms to a probability distribution curve, *if* the individual transaction priority can be recreated. I am
 not that deep into the mathematics; however, it may also be possible to use a similar method to do this just based on the fee, that statistically, the blocks conform to a fee distribution. Any zero fee transactions would have to be ignored. This solution needs
 a clever mathematician.<br>
<br>
I implore, at the very least, that we use some method that validates full transaction reliability and enables scalability of block sizes. If not this proposal, an alternative.<br>
<br>
Regards,<br>
Damian Williamson</div>
<p></p>
</div>
</div>
</div>
</div>
</body>
</html>