redgold 0.1.0

A relative proof conflict resolution & irreversibility service with trust modeling custodial pooling and executor contracts
use std::sync::Arc;
use tokio::runtime::{Builder, Runtime};

pub fn build_runtime(threads: usize, name: impl Into<String>) -> Arc<Runtime> {
    Arc::new(
        build_simple_runtime(threads, name),
    )
}

pub fn build_simple_runtime(threads: usize, name: impl Into<String> + Sized) -> Runtime {
    Builder::new_multi_thread()
        .worker_threads(threads)
        .thread_name(name)
        .thread_stack_size(8192 * 1024 * 1024)
        .enable_all()
        .enable_time()
        .build()
        .unwrap()
}