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

Fixing removal from gas price when moving future->current #2076

Merged
merged 2 commits into from
Sep 13, 2016
Merged

Conversation

tomusdrw
Copy link
Collaborator

@tomusdrw tomusdrw commented Sep 13, 2016

Extracted GasPriceQueue operations into a separate struct.

Closes #2020

@tomusdrw tomusdrw added the A0-pleasereview 🤓 Pull request needs code review. label Sep 13, 2016
@keorn keorn added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Sep 13, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.007%) to 84.72% when pulling 686bd3c on txqueue-fix into 83ddce0 on master.

// Operation may be ok: only if hash is in gas-price's Set.
return hashes.remove(hash);
}
if hashes.iter().next().unwrap() != hash {
Copy link
Contributor

Choose a reason for hiding this comment

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

should be an expect here with a proof

Copy link

Choose a reason for hiding this comment

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

.expect("Look at the 4 lines above")

Copy link
Contributor

Choose a reason for hiding this comment

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

it's a trivial proof but it's important to be consistent

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@rphmeier rphmeier added the M4-core ⛓ Core client code / Rust. label Sep 13, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 84.759% when pulling 813d518 on txqueue-fix into 83ddce0 on master.

@arkpar arkpar merged commit 325967c into master Sep 13, 2016
@tomusdrw tomusdrw deleted the txqueue-fix branch September 17, 2016 13:35
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.

5 participants