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 (runtime): Add comments to fees #3073

Merged
merged 15 commits into from
Sep 3, 2020
Merged

Conversation

evgenykuzyakov
Copy link
Collaborator

Add more comments to Cost configs.

@gitpod-io
Copy link

gitpod-io bot commented Aug 4, 2020

@@ -10,6 +10,8 @@ pub type Gas = u64;

/// Costs associated with an object that can only be sent over the network (and executed
/// by the receiver).
/// NOTE: `send_sir` or `send_not_sir` fees are usually burned when the item is being created.
Copy link
Contributor

Choose a reason for hiding this comment

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

In the genesis_config.json these two fees are always equal. Wouldn't you expect send_sir to be cheaper?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All of them are handled the same right now. We don't have optimizations for sir and not_sir

@codecov
Copy link

codecov bot commented Aug 4, 2020

Codecov Report

Merging #3073 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3073   +/-   ##
=======================================
  Coverage   87.38%   87.38%           
=======================================
  Files         217      217           
  Lines       42552    42552           
=======================================
  Hits        37185    37185           
  Misses       5367     5367           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c48bb28...b929bb8. Read the comment docs.

Copy link
Contributor

@olonho olonho left a comment

Choose a reason for hiding this comment

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

While this is a good change, we still need more formal definition of the costs, so that we can measure costs by putting probes in proper places of the execution.

@nearprotocol-bulldozer nearprotocol-bulldozer bot merged commit 98e6991 into master Sep 3, 2020
@nearprotocol-bulldozer nearprotocol-bulldozer bot deleted the comment-on-fees branch September 3, 2020 16:43
mhalambek pushed a commit that referenced this pull request Sep 7, 2020
Add more comments to Cost configs.
chefsale pushed a commit that referenced this pull request Sep 7, 2020
Add more comments to Cost configs.
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.

3 participants