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

Fix Bloom migration #9992

Merged
merged 2 commits into from
Nov 30, 2018
Merged

Fix Bloom migration #9992

merged 2 commits into from
Nov 30, 2018

Conversation

ngotchac
Copy link
Contributor

Fixes #9629

The bloom's block number where wrongly converted from the previous format (the index was in fact block_number / 16, because there were 16 blooms per entry).

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. B1-patch-beta 🕷🕷 M4-core ⛓ Core client code / Rust. B0-patch-stable 🕷 Pull request should also be back-ported to the stable branch. labels Nov 29, 2018
@ngotchac ngotchac requested a review from debris November 29, 2018 16:10
@5chdn 5chdn added this to the 2.3 milestone Nov 29, 2018
Copy link
Contributor

@andresilva andresilva left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@andresilva andresilva closed this Nov 29, 2018
@andresilva andresilva reopened this Nov 29, 2018
@andresilva
Copy link
Contributor

Sorry misclick. In the future if we see issues with missing logs we should ask users whether their db migrated from 1.x to 2.x (since blooms were borked in the process).

@5chdn 5chdn added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Nov 29, 2018
@ghost
Copy link

ghost commented Nov 30, 2018

@andresilva May I ask is there any ETA to update #9762 PR? Thanks.

@sorpaas sorpaas merged commit 7c0d894 into master Nov 30, 2018
@sorpaas
Copy link
Collaborator

sorpaas commented Nov 30, 2018

@naikmyeong Let's move discussions about progpow to #9762.

@sorpaas sorpaas deleted the ng-bloom-db branch November 30, 2018 04:08
5chdn pushed a commit that referenced this pull request Nov 30, 2018
* Fix wrong block number in blooms migration

* Fix wrong `const` type (usize -> u64) 😬
@5chdn 5chdn mentioned this pull request Nov 30, 2018
3 tasks
5chdn pushed a commit that referenced this pull request Nov 30, 2018
* Fix wrong block number in blooms migration

* Fix wrong `const` type (usize -> u64) 😬
@5chdn 5chdn mentioned this pull request Nov 30, 2018
3 tasks
5chdn added a commit that referenced this pull request Nov 30, 2018
* version: bump stable to 2.1.8

* Fix Bloom migration (#9992)

* Fix wrong block number in blooms migration

* Fix wrong `const` type (usize -> u64) 😬

* Fix daemonize (#10000)

* Revert "prevent silent errors in daemon mode, closes #9367 (#9946)"

This reverts commit 52d5278.

* deps(daemonize): switch back to crates.io

* move daemonize before creating account provider (#10003)

* move daemonize before creating account provider

* daemonize: add a future-proofing comment
5chdn added a commit that referenced this pull request Nov 30, 2018
* version: bump beta to 2.2.3

* Fix Bloom migration (#9992)

* Fix wrong block number in blooms migration

* Fix wrong `const` type (usize -> u64) 😬

* Fix daemonize (#10000)

* Revert "prevent silent errors in daemon mode, closes #9367 (#9946)"

This reverts commit 52d5278.

* deps(daemonize): switch back to crates.io

* move daemonize before creating account provider (#10003)

* move daemonize before creating account provider

* daemonize: add a future-proofing comment
niklasad1 pushed a commit that referenced this pull request Dec 16, 2018
* Fix wrong block number in blooms migration

* Fix wrong `const` type (usize -> u64) 😬
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. B0-patch-stable 🕷 Pull request should also be back-ported to the stable branch. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants