-
Notifications
You must be signed in to change notification settings - Fork 2
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
Set inital signers #971
Set inital signers #971
Changes from 5 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -785,7 +785,7 @@ async fn test_jumpstart_network() { | |
|
||
// wait for jump start event check that key exists in kvdb | ||
let mut got_jumpstart_event = false; | ||
for _ in 0..45 { | ||
for _ in 0..75 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to check - did you bump this when you were having some issue which you then resolved, or does the initial DKG just take longer as there are now 3 parties rather than 2. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ya I was getting some inconsistent failings in my last PR for this on the CI, I couldn't always hit it, so I added an assert statment here in the last PR and if I saw it again I would now have an error and know it was here |
||
std::thread::sleep(std::time::Duration::from_millis(1000)); | ||
let block_hash = rpc.chain_get_block_hash(None).await.unwrap(); | ||
let events = EventsClient::new(api.clone()).at(block_hash.unwrap()).await.unwrap(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,6 @@ pub async fn new_reshare( | |
) -> Result<StatusCode, ValidatorErr> { | ||
let data = OcwMessageReshare::decode(&mut encoded_data.as_ref())?; | ||
// TODO: validate message came from chain (check reshare block # against current block number) see #941 | ||
|
||
let api = get_api(&app_state.configuration.endpoint).await?; | ||
let rpc = get_rpc(&app_state.configuration.endpoint).await?; | ||
validate_new_reshare(&api, &rpc, &data, &app_state.kv_store).await?; | ||
|
@@ -79,6 +78,7 @@ pub async fn new_reshare( | |
let validators_info = get_validators_info(&api, &rpc, next_signers) | ||
.await | ||
.map_err(|e| ValidatorErr::UserError(e.to_string()))?; | ||
|
||
let (signer, x25519_secret_key) = get_signer_and_x25519_secret(&app_state.kv_store) | ||
.await | ||
.map_err(|e| ValidatorErr::UserError(e.to_string()))?; | ||
|
@@ -104,6 +104,7 @@ pub async fn new_reshare( | |
.any(|validator_info| validator_info.tss_account == *signer.account_id()); | ||
|
||
if !is_proper_signer { | ||
dbg!("not proper"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Either remove or change to |
||
return Ok(StatusCode::MISDIRECTED_REQUEST); | ||
} | ||
// get old key if have it | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍