Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Change storage Proximity function #1079

Closed
wants to merge 1 commit into from
Closed

Change storage Proximity function #1079

wants to merge 1 commit into from

Conversation

janos
Copy link
Member

@janos janos commented Dec 21, 2018

This PR changes Proximity function in storage package to successfully pass all test cases in a newly added TestProximity function. Current Proximity function returns MaxPO value for MaxPO-9 to MaxPO-1 (last 8 bins of MaxPO bins, or last byte) instead lower values.

For example, for MaxPO=16 the test will fail with incorrect values for bins 8-15 with value 16 for all of them, and for MaxPO=32 bins 24-31 will have value of 32.

Copy link
Member

@zelig zelig left a comment

Choose a reason for hiding this comment

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

O M G 🤦‍♂️

@zelig
Copy link
Member

zelig commented Jan 2, 2019

we said we want no migration or db repair with this fix for now until the new db is in place.
Then this is to be submitted to upstream

@janos
Copy link
Member Author

janos commented Jan 2, 2019

Submitted upstream ethereum/go-ethereum#18379.

@zelig
Copy link
Member

zelig commented Jan 3, 2019

merged upstream ethereum#18379.

@zelig zelig closed this Jan 3, 2019
@frncmx frncmx deleted the storage-proximity branch January 22, 2019 09:33
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.

2 participants