Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consensus roothash messages #599

Merged
merged 15 commits into from
Apr 10, 2024
Merged

consensus roothash messages #599

merged 15 commits into from
Apr 10, 2024

Conversation

pro-wh
Copy link
Collaborator

@pro-wh pro-wh commented Jan 5, 2024

roothash messages are small structures that a runtime can send to communicate with the consensus layer. they are agreed upon for each runtime block. we'll see the messages themselves in the proposal for that block, i.e. in the first executor commit for the round. the consensus layer processes these messages when the block gets finalized, which produces a result for each message. in cobalt and below, the roothash consensus app emits an event for each message. in damask and up, the results are stored on chain, and you use a roothash "get last round results" query to look up the results.

in this feature, we add a roothash_messages table with tracked runtimes' messages and results. either of the message or result may be absent, as they can be disseminated in different consensus blocks.

@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from e0a9684 to 76ba097 Compare January 6, 2024 00:44
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash branch from 66c1cb2 to b9b32be Compare January 6, 2024 01:23
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from 76ba097 to 9a83f4c Compare January 6, 2024 01:23
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from 9a83f4c to b90a038 Compare January 10, 2024 00:56
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash branch 2 times, most recently from 7f8dd09 to d92613b Compare January 10, 2024 20:21
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from b90a038 to 9fe9dd5 Compare January 10, 2024 20:21
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash branch from d92613b to a3ab37b Compare January 13, 2024 00:33
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from 9fe9dd5 to 7883149 Compare January 13, 2024 00:33
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from 7883149 to 27d14ba Compare January 20, 2024 00:53
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash branch from a3ab37b to 84ebeff Compare January 20, 2024 00:53
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from 27d14ba to a44da43 Compare January 26, 2024 01:23
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash branch from 84ebeff to eeacb93 Compare January 26, 2024 01:23
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from a44da43 to abc164c Compare January 27, 2024 01:05
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash branch from eeacb93 to 38f1457 Compare January 27, 2024 01:05
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from abc164c to b9a78c9 Compare February 1, 2024 23:34
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash branch 2 times, most recently from 2b0f121 to bb67732 Compare February 2, 2024 22:55
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch 2 times, most recently from ac8733b to a164092 Compare February 2, 2024 23:01
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash branch from bb67732 to 20a246b Compare February 2, 2024 23:01
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from a164092 to d8b99b1 Compare February 2, 2024 23:11
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash branch from 20a246b to c0b0f1e Compare February 2, 2024 23:11
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from d8b99b1 to 93af0f9 Compare February 2, 2024 23:23
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash branch from c0b0f1e to aa5ed4c Compare February 2, 2024 23:23
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from 93af0f9 to b79015c Compare February 2, 2024 23:23
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch 2 times, most recently from fc4c64d to 074f83d Compare March 29, 2024 22:53
Copy link
Contributor

@mitjat mitjat left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM in general; I just have a few questions where I want to make sure the answers are not hiding surprises.

storage/oasis/nodeapi/eden/node.go Show resolved Hide resolved
storage/oasis/nodeapi/eden/node.go Outdated Show resolved Hide resolved
analyzer/consensus/registration.go Outdated Show resolved Hide resolved
analyzer/consensus/messages.go Outdated Show resolved Hide resolved
analyzer/consensus/messages.go Outdated Show resolved Hide resolved
analyzer/consensus/data_fetch.go Outdated Show resolved Hide resolved
analyzer/consensus/consensus.go Show resolved Hide resolved
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch 3 times, most recently from 65a053d to 7ae4f96 Compare April 9, 2024 22:28
@pro-wh pro-wh changed the base branch from main to pro-wh/feature/categorize April 9, 2024 22:29
Base automatically changed from pro-wh/feature/categorize to main April 10, 2024 19:45
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from 7ae4f96 to 361f4da Compare April 10, 2024 19:46
@pro-wh pro-wh force-pushed the pro-wh/feature/roothash2 branch from f75d720 to c655ca2 Compare April 10, 2024 22:23
@pro-wh pro-wh merged commit 8024fbd into main Apr 10, 2024
14 checks passed
@pro-wh pro-wh deleted the pro-wh/feature/roothash2 branch April 10, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants