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

get rewards txs from pool before commitEpochStart method #1745

Merged
merged 1 commit into from
May 14, 2020

Conversation

miiu96
Copy link
Contributor

@miiu96 miiu96 commented May 14, 2020

Bug fix : rewards transactions was not indexed anymore because method that gets rewards transactions from pool was called after transactions was removed from pool.
FIX : call the method that reads the transactions before they are removed from the pool

Also the field 'gasUsed' of structure Transaction that is saved in elasticsearch database is now calculated in gas units. To convert the field 'gasUsed' in ERD must by multiply with gas price.

also modify gasUsed now is measured in gas units

tx.GasUsed = gasUsed.String()
tx.GasUsed = gasUsed.Uint64()
Copy link
Contributor

Choose a reason for hiding this comment

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

gasUsed for normal transactions can be computed via ComputeGasLimit(tx) txFeeHandler

Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

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

System tests passed.

@LucianMincu LucianMincu merged commit 24b0768 into development May 14, 2020
@LucianMincu LucianMincu deleted the bug-es-rewards-txs branch May 14, 2020 15:53
@miiu96 miiu96 restored the bug-es-rewards-txs branch May 21, 2020 06:07
@raduchis raduchis deleted the bug-es-rewards-txs branch November 6, 2020 15:57
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