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

Conversation

gnunicorn
Copy link
Contributor

@gnunicorn gnunicorn commented Jan 11, 2019

Fixes #1138.

I opted for keeping the mentioned message but rephrase it slightly, because it still contains other useful information and is a good default in non-aura cases. Instead I added another message post pre-sealing in aura to announce the hash change, that felt more explicit and cleaner to me.

Run with RUST_LOG=info node now announces them as:

2019-01-11 13:50:41 Prepared block for proposing at 1 [hash: 0xe07f9bcda5e8cdf4d1d2cd5ed5787b8a7d471cf4a269b5f32dfdd6871bdb5904; 
parent_hash: 0x7171…78a8; extrinsics: [0xad52…0fdd]]
2019-01-11 13:50:41 Pre-sealed block for proposal at 1. Hash now 0x9923b1c5cc870c25175c65dd32caeb5661c36e74f1a92c7becf171e98bb74c08, 
previously 0xe07f9bcda5e8cdf4d1d2cd5ed5787b8a7d471cf4a269b5f32dfdd6871bdb5904.

@gnunicorn gnunicorn requested a review from rphmeier January 11, 2019 12:55
@gnunicorn gnunicorn 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 Jan 11, 2019
@gnunicorn gnunicorn added this to the 1.0gamma milestone Jan 11, 2019
);

let import_block = ImportBlock {
let import_block : ImportBlock<B> = ImportBlock {
Copy link
Member

Choose a reason for hiding this comment

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

style:

Suggested change
let import_block : ImportBlock<B> = ImportBlock {
let import_block: ImportBlock<B> = ImportBlock {

@gavofyork gavofyork merged commit 4731b80 into master Jan 11, 2019
@gavofyork gavofyork deleted the ben-fix-1138-log-proper-block-hash branch January 11, 2019 14:20
gnunicorn added a commit to paritytech/polkadot that referenced this pull request Jan 14, 2019
rphmeier pushed a commit to paritytech/polkadot that referenced this pull request Jan 15, 2019
MTDK1 pushed a commit to bdevux/substrate that referenced this pull request Apr 12, 2019
…aritytech#1397)

* Properly log sealing and the newly created proposal hash from aura

* Update lib.rs
liuchengxu added a commit to liuchengxu/substrate that referenced this pull request May 31, 2023
…saction-proof

Refactor subspace-fraud-proof
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants