Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Priority Fee Transactions being treated as Free #4

Merged
merged 2 commits into from Aug 24, 2018

Conversation

f27d
Copy link
Contributor

@f27d f27d commented Aug 24, 2018

Currently there is an issue with Integer rounding making small fee tx behave like free tx.

Believe this is the cause of priority fee not getting observed.

Simply removing p.Size in the ranking constraint will resolve this. Discussed with jseagrave21.
Based on Belane's investigation.

@erikzhang

Currently there is an issue with Integer rounding making small fee tx behave like free tx.

Simply removing p.Size in the ranking constraint will resolve this. Discussed with jseagrave21.
Based on Belane's investigation.

@erikzhang
@erikzhang
Copy link
Member

Transaction fees should be based on the size of the transaction. When sorting, we have to consider the size of the transaction and the amount of the fee.

@f27d f27d changed the title Remove p.Size in ranking Fix Priority Fee Transactions being treated as Free Aug 24, 2018
Improvement from Belane and Jseagrave21 to first sort by Fee/Size as before and then sort by Fee.
This means that if the Fee is > 0 but very small, it will still be prioritised ahead of Free tx.
@f27d
Copy link
Contributor Author

f27d commented Aug 24, 2018

@belane and @jseagrave21 improved on the previous iteration @erikzhang.

@vncoelho
Copy link
Member

Eagle eyes! I am happy to see such improvements today, really.

@erikzhang erikzhang merged commit 095e89f into neo-project:master Aug 24, 2018
@f27d f27d deleted the patch-1 branch August 25, 2018 05:33
@shargon
Copy link
Member

shargon commented Aug 25, 2018

Amazing work!

ZhangTao1596 added a commit to ZhangTao1596/neo-modules that referenced this pull request Dec 15, 2020
superboyiii added a commit to ZhangTao1596/neo-modules that referenced this pull request Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants