Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

block: enforce gas limit falls within engine bounds #3809

Merged
merged 1 commit into from
Dec 11, 2016

Conversation

rphmeier
Copy link
Contributor

@rphmeier rphmeier commented Dec 11, 2016

Fixes #3760

Ideally I think the best thing to do would be to no longer expose CommonParams and allow engines to internally manage the ranges while exposing nothing more than a simple validation/creation interface as a black box.

@rphmeier rphmeier added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Dec 11, 2016
@@ -125,8 +125,9 @@ pub trait Engine : Sync + Send {
self.verify_block_basic(header, None).and_then(|_| self.verify_block_unordered(header, None))
}

/// Don't forget to call Super::populate_from_parent when subclassing & overriding.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this comment didn't make much sense so I didn't see a reason to keep it.

@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Dec 11, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 9252ebf on mining-min-gas-limit into ** on master**.

@gavofyork gavofyork merged commit b28537a into master Dec 11, 2016
@gavofyork gavofyork deleted the mining-min-gas-limit branch December 11, 2016 14:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants