Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Fix Priority Fee Transactions being treated as Free#4

Merged
erikzhang merged 2 commits intoneo-project:masterfrom
f27d:patch-1
Aug 24, 2018
Merged

Fix Priority Fee Transactions being treated as Free#4
erikzhang merged 2 commits intoneo-project:masterfrom
f27d:patch-1

Conversation

@f27d
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

f27d commented Aug 24, 2018

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

@vncoelho
Copy link
Copy Markdown
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
Copy Markdown
Member

shargon commented Aug 25, 2018

Amazing work!

ZhangTao1596 pushed 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants