Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

Uncouple emptying gas_meter from updating the gas spent for the block #68

Merged
merged 4 commits into from
Feb 26, 2020

Conversation

aliXsed
Copy link

@aliXsed aliXsed commented Feb 24, 2020

Closes #67

…. However keep the update function for GasHandler as it seems to be relevant to this trait.
frame/contracts/src/gas.rs Outdated Show resolved Hide resolved
@cowboy-bebug
Copy link
Contributor

cowboy-bebug commented Feb 24, 2020

I think the build errors are coming from the way we use the latest nightly in our circleci config. Let me fix it in another PR Actually the latest nightly probably fixes this.

@jordy25519
Copy link
Contributor

related: rustwasm/wasm-bindgen#2009

frame/contracts/src/gas.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@hoani hoani left a comment

Choose a reason for hiding this comment

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

Please see requested changes, happy to discuss design decisions =)

frame/contracts/src/gas.rs Outdated Show resolved Hide resolved
…ause the team see a new interface such as finish fo GasHandler as exposing.

The test for checking if gas-spent for the block increases correctly is removed as it couldn't be relevant with this new design.
Copy link
Contributor

@jordy25519 jordy25519 left a comment

Choose a reason for hiding this comment

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

TY LGTM

@jordy25519 jordy25519 requested a review from hoani February 25, 2020 23:55
Copy link
Contributor

@hoani hoani left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@cowboy-bebug cowboy-bebug left a comment

Choose a reason for hiding this comment

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

LGTM !

@aliXsed aliXsed merged commit d2319b9 into develop Feb 26, 2020
roy-powerfinance added a commit that referenced this pull request Feb 27, 2020
…_substrate

* origin/develop:
  Uncouple emptying gas_meter from updating the gas spent for the block (#68)
jordy25519 pushed a commit that referenced this pull request Feb 27, 2020
…#68)

* Uncouple emptying gas_meter from updating the gas spent for the block.
@aliXsed aliXsed deleted the refactor/67-uncoupled-gas-block-handling branch March 4, 2020 03:13
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.

Uncouple handling block gas spent from emptying gas meter
4 participants