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 Integration #1467

Merged
merged 23 commits into from
Apr 20, 2022
Merged

Consensus Integration #1467

merged 23 commits into from
Apr 20, 2022

Conversation

asonnino
Copy link
Contributor

@asonnino asonnino commented Apr 19, 2022

Putting all the pieces together to support shared-objects!

@asonnino asonnino marked this pull request as draft April 19, 2022 22:03
@asonnino asonnino added Type: Major Feature Major new functionality or integration, which has a significant impact on the network Priority: High Very important task, not blocking but potentially delaying milestones or limiting our offering Status: In Progress Issue is actively being worked on sui-node labels Apr 19, 2022
@asonnino asonnino self-assigned this Apr 19, 2022
@asonnino asonnino changed the title Narwhal integration Consensus integration Apr 19, 2022
@asonnino asonnino added this to the DevNet milestone Apr 19, 2022
@asonnino asonnino added Status: Blocked Issue / PR is blocked by another issue or PR and removed Status: In Progress Issue is actively being worked on labels Apr 19, 2022
@asonnino asonnino marked this pull request as ready for review April 20, 2022 17:25
@asonnino asonnino requested review from gdanezis and huitseeker April 20, 2022 17:25
@asonnino asonnino added Status: Needs Review PR is ready for review and removed Status: Blocked Issue / PR is blocked by another issue or PR labels Apr 20, 2022
@asonnino asonnino changed the title Consensus integration Consensus Integration Apr 20, 2022
@todd-mystenlabs
Copy link
Contributor

@lxfind - similar to #1449, I'd love to get this PR landed. Who can I get to review it?

@asonnino asonnino requested review from lxfind and bmwill April 20, 2022 18:22
.github/workflows/rust.yml Outdated Show resolved Hide resolved
@asonnino
Copy link
Contributor Author

We should be able to drop this

Fixed

@bmwill
Copy link
Contributor

bmwill commented Apr 20, 2022

This is built on top of your other PR correct? Lets land that one and then I'll be able to do a quicker/easier review of this one

@asonnino asonnino mentioned this pull request Apr 20, 2022
@asonnino asonnino enabled auto-merge (squash) April 20, 2022 20:57
@asonnino
Copy link
Contributor Author

This is built on top of your other PR correct? Lets land that one and then I'll be able to do a quicker/easier review of this one

Previous Pr landed @bmwill

@@ -40,7 +40,7 @@ const MAX_DELAY_MILLIS: u64 = 5_000; // 5 sec

pub struct AuthorityServer {
server: NetworkServer,
pub state: AuthorityState,
pub state: Arc<AuthorityState>,
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a couple of fields within AuthorityState defined as Arc. Are they redundant with this, or do these two Arc serve different purposes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point looking into it. The one over the storage serves a different purpose, but I will double check the others.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can probably remove some but it will touch a lot of files. So I made an issue here #1496 that I can handle separately

sui/src/sui_commands.rs Outdated Show resolved Hide resolved
sui_types/src/error.rs Outdated Show resolved Hide resolved
}

async fn load_execution_indices(&self) -> Result<ExecutionIndices, Self::Error> {
self._database.last_consensus_index()
Copy link
Contributor

Choose a reason for hiding this comment

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

can we rename _database to database since its used now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is also an easy fix but it seems that many currently opened PR will have to rebase if I do it now. So I made an issue that I will quickly fix separately #1497

sui/src/sui_commands.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Very important task, not blocking but potentially delaying milestones or limiting our offering Status: Needs Review PR is ready for review sui-node Type: Major Feature Major new functionality or integration, which has a significant impact on the network umbrella
Projects
None yet
5 participants