Skip to content

Commit

Permalink
Merge pull request #683 from breez/revert-596-ok300-connect-schedule-…
Browse files Browse the repository at this point in the history
…signer

Revert "Schedule signer if `GL::connect()` has seed and creds"
  • Loading branch information
ok300 authored Dec 12, 2023
2 parents accb02a + 057949c commit 19e7456
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions libs/sdk-core/src/greenlight/node_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ impl Greenlight {
match encrypted_creds {
Some(c) => {
persister.set_gl_credentials(c)?;
let gl_node = Greenlight::new(config, seed, creds, persister).await?;
// Make small API call to ensure the signer can be scheduled. This will fail if there are any network issues.
// The other two scenarios (recover, register) already include a network call.
gl_node.start().await?;
Ok(gl_node)
Greenlight::new(config, seed, creds, persister)
}
None => {
return Err(anyhow!("Failed to encrypt credentials"));
Expand All @@ -132,7 +128,7 @@ impl Greenlight {
res
}

async fn new(
fn new(
sdk_config: Config,
seed: Vec<u8>,
connection_credentials: GreenlightCredentials,
Expand Down

0 comments on commit 19e7456

Please sign in to comment.