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

feat: print signer version and pubkey on startup #1279

Merged
merged 8 commits into from
Feb 10, 2025
Merged
Changes from 3 commits
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
8 changes: 8 additions & 0 deletions signer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use signer::context::Context;
use signer::context::SignerContext;
use signer::emily_client::EmilyClient;
use signer::error::Error;
use signer::keys::PublicKey;
use signer::network::libp2p::SignerSwarmBuilder;
use signer::network::P2PNetwork;
use signer::request_decider::RequestDeciderEventLoop;
Expand Down Expand Up @@ -74,11 +75,18 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
revision = signer::GIT_COMMIT,
arch = signer::TARGET_ARCH,
env_abi = signer::TARGET_ENV_ABI,
signer_version = signer::VERSION,
matteojug marked this conversation as resolved.
Show resolved Hide resolved
"starting the sBTC signer",
);

// Load the configuration file and/or environment variables.
let settings = Settings::new(args.config)?;

tracing::info!(
signer_public_key = %PublicKey::from_private_key(&settings.signer.private_key),
djordon marked this conversation as resolved.
Show resolved Hide resolved
"constructed signer settings",
);

signer::metrics::setup_metrics(settings.signer.prometheus_exporter_endpoint);

// Open a connection to the signer db.
Expand Down