mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +00:00
Load Signer at startup
This commit is contained in:
parent
2802fe01a0
commit
388e92ac05
@ -80,6 +80,18 @@ impl Overlord {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn run_inner(&mut self) -> Result<(), Error> {
|
pub async fn run_inner(&mut self) -> Result<(), Error> {
|
||||||
|
// Load Signer (we cannot unlock yet, UI will have to drive that after
|
||||||
|
// prompting for a password)
|
||||||
|
if let Some(epk) = GLOBALS
|
||||||
|
.settings
|
||||||
|
.read()
|
||||||
|
.await
|
||||||
|
.encrypted_private_key
|
||||||
|
.to_owned()
|
||||||
|
{
|
||||||
|
GLOBALS.signer.write().await.load_encrypted_private_key(epk);
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME - if this needs doing, it should be done dynamically as
|
// FIXME - if this needs doing, it should be done dynamically as
|
||||||
// new people are encountered, not batch-style on startup.
|
// new people are encountered, not batch-style on startup.
|
||||||
// Create a person record for every person seen, possibly autofollow
|
// Create a person record for every person seen, possibly autofollow
|
||||||
|
Loading…
Reference in New Issue
Block a user