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

Prevent events from being emitted during genesis construction #5463

Merged
merged 20 commits into from
Mar 31, 2020

Conversation

shawntabrizi
Copy link
Member

@shawntabrizi shawntabrizi commented Mar 30, 2020

This PR stops System events from being populated during genesis construction.

The significant change here is that the Number storage item is set to 0 now at genesis rather than 1.

polkadot companion: paritytech/polkadot#953

@shawntabrizi shawntabrizi added A0-please_review Pull request needs code review. A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). labels Mar 30, 2020
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

Please add a test to ensure this.

frame/system/src/lib.rs Outdated Show resolved Hide resolved
frame/system/src/lib.rs Outdated Show resolved Hide resolved
@bkchr bkchr added the B0-silent Changes should not be mentioned in any release notes label Mar 30, 2020
shawntabrizi and others added 5 commits March 30, 2020 23:27
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
@bkchr
Copy link
Member

bkchr commented Mar 30, 2020

Tests still failing

@shawntabrizi shawntabrizi removed the A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). label Mar 31, 2020
frame/im-online/src/mock.rs Outdated Show resolved Hide resolved
frame/contracts/src/tests.rs Outdated Show resolved Hide resolved
@bkchr bkchr mentioned this pull request Mar 31, 2020
@shawntabrizi
Copy link
Member Author

IDK why polkadot CI fails, the companion PR is def there. :)

@shawntabrizi shawntabrizi added A8-mergeoncegreen and removed A0-please_review Pull request needs code review. labels Mar 31, 2020
@shawntabrizi shawntabrizi added this to the 2.0 milestone Mar 31, 2020
@bkchr
Copy link
Member

bkchr commented Mar 31, 2020

You need to mention the companion pr in this pr description. Look at other prs for an example.

@bkchr
Copy link
Member

bkchr commented Mar 31, 2020

Please merge again master^^

@bkchr bkchr merged commit d0bbb22 into master Mar 31, 2020
@bkchr bkchr deleted the shawntabrizi-remove-genesis-events branch March 31, 2020 13:57
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
…aritytech#948)

* Use `add_benchmark` macro

* Return error if `batches` is empty

* Update Cargo.lock

* Companion for paritytech#5463 (paritytech#953)

* Fix test with genesis block 0

* Update Cargo.lock
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
B0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants