bitviewd 0.12.2

The self-hostable Bitview Bitcoin data daemon
Documentation
#![doc = include_str!("../README.md")]

use std::process::ExitCode;

use bitview_default::DefaultPlugins;

fn main() -> ExitCode {
    match bitviewd::run(DefaultPlugins::import) {
        Ok(()) => ExitCode::SUCCESS,
        Err(error) => {
            if error.is_lock_error() {
                eprintln!(
                    "Error: Bitview's data directory is already in use by another process.\n\
                     Stop the other bitviewd instance and try again."
                );
            } else {
                eprintln!("Error: {error}");
            }
            ExitCode::FAILURE
        }
    }
}