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

Fixing an overflow panic #591

Merged
merged 1 commit into from
Mar 4, 2016
Merged

Fixing an overflow panic #591

merged 1 commit into from
Mar 4, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Mar 4, 2016

When calculating a block propagation client.chain_info() is called 2 times. If this yields different results due to a race condition there will be an overflow panic. The fix is to call it once and use the same best block data.

@arkpar arkpar added the A0-pleasereview 🤓 Pull request needs code review. label Mar 4, 2016
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 4, 2016
gavofyork pushed a commit that referenced this pull request Mar 4, 2016
Fixing an overflow panic
@gavofyork gavofyork merged commit 87cd8eb into master Mar 4, 2016
@gavofyork gavofyork deleted the sync branch March 4, 2016 22:51
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants