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

[authority] Refactor AuthorityState creation to have a single creation point #504

Merged
merged 3 commits into from
Feb 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed unnecessary already commented out code
  • Loading branch information
awelc committed Feb 21, 2022
commit 87a8a17451e5c439a9af3b9fdfeaa2e894c5d260
21 changes: 1 addition & 20 deletions sui_core/src/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,26 +462,7 @@ impl AuthorityState {
object_and_lock,
})
}
/*
pub fn new(
committee: Committee,
name: AuthorityName,
secret: StableSyncAuthoritySigner,
store: Arc<AuthorityStore>,
) -> Self {
let native_functions =
sui_framework::natives::all_natives(MOVE_STDLIB_ADDRESS, SUI_FRAMEWORK_ADDRESS);
AuthorityState {
committee,
name,
secret,
_native_functions: native_functions.clone(),
move_vm: adapter::new_move_vm(native_functions)
.expect("We defined natives to not fail here"),
_database: store,
}
}
*/

pub async fn new(
committee: Committee,
name: AuthorityName,
Expand Down