Skip to content

Conversation

morcos
Copy link
Contributor

@morcos morcos commented Mar 21, 2016

This removes the functionality behind estimatepriority and estimatesmartpriority. The rpc calls are now deprecated. estimatepriority will return -1 always and estimatesmartpriority will return 1e24 if the mempool is currently limited and -1 otherwise. The result of this behavior is that free transactions (if selected using the now debug option -sendfreetransactions) can be created and sent if the mempool is not currently limited and the transaction's priority is above the hard coded AllowFree threshold.

This is effectively the behavior in place already as priority estimates do not appear until confirmation targets over 50 which aren't currently supported.

A side effect of this is that now all transactions (that aren't dependent on unformed inputs) are now considered data points for fee estimation. Even though some transactions may be mined due to their priority instead of fee, this is still safe because the threshold for fee estimation is very high (95%).

@dcousens
Copy link
Contributor

concept ACK

@luke-jr
Copy link
Member

luke-jr commented Mar 22, 2016

So this essentially changes priority from "fully supported for usage" to "fallback only", at least from the perspective of Core's wallet. Concept ACK.

@petertodd
Copy link
Contributor

utACK 2f3c306

@TheBlueMatt
Copy link
Contributor

Concept ACK, would be good to see this rebased.

@maflcko
Copy link
Member

maflcko commented May 9, 2016

Concept ACK

@sipa
Copy link
Member

sipa commented May 9, 2016

Needs rebase.

@morcos
Copy link
Contributor Author

morcos commented May 18, 2016

trivial rebase

@petertodd
Copy link
Contributor

utACK 9a936e3

nBestSeenHeight = nFileBestSeenHeight;
if (nVersionRequired < 129900) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could be a const.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also needs bump

@maflcko
Copy link
Member

maflcko commented May 20, 2016

utACK 9a936e3

@sipa
Copy link
Member

sipa commented Aug 18, 2016

Rebase please?

tx.vin[0].prevout.n = 10000*blocknum+100*j+k;
uint256 hash = tx.GetHash();
mpool.addUnchecked(hash, entry.Fee(feeV[k/4][j]).Time(GetTime()).Priority(priV[k/4][j]).Height(blocknum).FromTx(tx, &mpool));
mpool.addUnchecked(hash, entry.Fee(feeV[j]).Time(GetTime()).Priority(0).Height(blocknum).FromTx(tx, &mpool));
CTransaction btx;
if (mpool.lookup(hash, btx))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs merge conflict solved here due to 288d85d

@sipa
Copy link
Member

sipa commented Oct 31, 2016

Do we want this for 0.14?

@morcos
Copy link
Contributor Author

morcos commented Nov 4, 2016

Sorry for the delay.. I rebased including bumping the version numbers, and I just wanted to flag another minor change I made since the previous version had been acked. This seems like the correct way to handle reading old version files.

@maflcko
Copy link
Member

maflcko commented Nov 5, 2016

utACK 9ea4ed9.

Mind to reword or squash the "SQUASHME" commit?

@maflcko maflcko added this to the 0.14.0 milestone Nov 5, 2016
laanwj added a commit that referenced this pull request Nov 7, 2016
0bd581a add release notes for removal of priority estimation (Alex Morcos)
b2322e0 Remove priority estimation (Alex Morcos)
@laanwj
Copy link
Member

laanwj commented Nov 7, 2016

Merged (and squashed) via 3c03dc2

@laanwj laanwj closed this Nov 7, 2016
@sipa sipa mentioned this pull request Jan 10, 2017
18 tasks
codablock pushed a commit to codablock/dash that referenced this pull request Jan 13, 2018
0bd581a add release notes for removal of priority estimation (Alex Morcos)
b2322e0 Remove priority estimation (Alex Morcos)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
0bd581a add release notes for removal of priority estimation (Alex Morcos)
b2322e0 Remove priority estimation (Alex Morcos)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 15, 2019
0bd581a add release notes for removal of priority estimation (Alex Morcos)
b2322e0 Remove priority estimation (Alex Morcos)
random-zebra added a commit to PIVX-Project/PIVX that referenced this pull request Aug 23, 2020
2da16f7 [Cleanup] Nuke estimate(smart)priority from the RPC interface (random-zebra)
041f62e [Core] Remove priority estimation (random-zebra)

Pull request description:

  Based on top of
  - [x] #1787

  This removes the functionality behind `estimatepriority` and `estimatesmartpriority` (from bitcoin#7730).

  Instead of just deprecating the relative RPC commands, I think we can outright remove them, as `estimatepriority` was added only in latest minor release (4.2), and `estimatesmartpriority` is introduced in a PR not even merged yet (#1787).

ACKs for top commit:
  Fuzzbawls:
    utACK 2da16f7
  furszy:
    utACK 2da16f7

Tree-SHA512: 7dc964c7627a08eae349df40f40c49bc85761171d97f3d7a828421f6dc46ca86dc7a410c75bd8025b7a684aa09d215a08ac6ae19b64617adac6365cfaee55afc
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants