mirror of
https://github.com/romanz/electrs.git
synced 2025-02-24 15:02:21 +01:00
Print more information when starting electrs
This commit is contained in:
parent
66b6bdb408
commit
092ac7a0fd
2 changed files with 7 additions and 4 deletions
|
@ -9,8 +9,10 @@ use std::net::ToSocketAddrs;
|
|||
use std::path::PathBuf;
|
||||
use std::str::FromStr;
|
||||
|
||||
use std::env::consts::{ARCH, OS};
|
||||
use std::time::Duration;
|
||||
|
||||
pub const ELECTRS_VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
const DEFAULT_SERVER_ADDRESS: [u8; 4] = [127, 0, 0, 1]; // by default, serve on IPv4 localhost
|
||||
|
||||
mod internal {
|
||||
|
@ -316,7 +318,10 @@ impl Config {
|
|||
server_banner: config.server_banner,
|
||||
args: args.map(|a| a.into_string().unwrap()).collect(),
|
||||
};
|
||||
eprintln!("{:?}", config);
|
||||
eprintln!(
|
||||
"Starting electrs {} on {} {} with {:?}",
|
||||
ELECTRS_VERSION, ARCH, OS, config
|
||||
);
|
||||
env_logger::Builder::from_default_env()
|
||||
.default_format()
|
||||
.format_timestamp_millis()
|
||||
|
|
|
@ -14,7 +14,7 @@ use std::iter::FromIterator;
|
|||
|
||||
use crate::{
|
||||
cache::Cache,
|
||||
config::Config,
|
||||
config::{Config, ELECTRS_VERSION},
|
||||
daemon::{self, extract_bitcoind_error, Daemon},
|
||||
merkle::Proof,
|
||||
metrics::{self, Histogram},
|
||||
|
@ -24,9 +24,7 @@ use crate::{
|
|||
types::ScriptHash,
|
||||
};
|
||||
|
||||
const ELECTRS_VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
const PROTOCOL_VERSION: &str = "1.4";
|
||||
|
||||
const UNKNOWN_FEE: isize = -1; // (allowed by Electrum protocol)
|
||||
|
||||
/// Per-client Electrum protocol state
|
||||
|
|
Loading…
Add table
Reference in a new issue