Skip to content
Snippets Groups Projects
Select Git revision
  • eabdadca0a1dc3d3db5acb89fa9956c3c84e1a0c
  • master default protected
  • tuxmain/fix-change-owner-key
  • fix_picked_up_file_in_runtime_release
  • network/gtest-1000 protected
  • upgradable-multisig
  • runtime/gtest-1000
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • gtest-1000-0.11.1 protected
  • gtest-1000-0.11.0 protected
  • gtest-1000 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
41 results

verify-runtime-code.md

Blame
  • lib.rs 28.60 KiB
    //  Copyright (C) 2018  The Duniter Project Developers.
    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as
    // published by the Free Software Foundation, either version 3 of the
    // License, or (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <https://www.gnu.org/licenses/>.
    
    //! Crate containing Duniter-rust core.
    
    //#![cfg_attr(feature = "cargo-clippy", allow(implicit_hasher))]
    #![deny(
        missing_docs,
        missing_copy_implementations,
        trivial_casts,
        trivial_numeric_casts,
        unsafe_code,
        unstable_features,
        unused_import_braces,
        unused_qualifications
    )]
    
    #[macro_use]
    extern crate log;
    #[macro_use]
    extern crate structopt;
    
    pub mod change_conf;
    pub mod cli;
    pub mod router;
    
    pub use duniter_conf::{keys::*, ChangeGlobalConf, DuRsConf, DuniterKeyPairs, KEYPAIRS_FILENAME};
    use duniter_module::*;
    use duniter_network::cli::sync::*;
    use duniter_network::NetworkModule;
    use durs_blockchain::{BlockchainModule, DBExQuery, DBExTxQuery, DBExWotQuery};
    use durs_message::*;
    use log::Level;
    use simplelog::*;
    //use std::error::Error;
    //use std::fmt::{Debug, Formatter};
    use crate::cli::keys::*;
    use crate::cli::*;
    use std::collections::HashMap;
    use std::fs;
    use std::fs::{File, OpenOptions};
    use std::sync::mpsc;
    use std::thread;
    use structopt::clap::{App, ArgMatches};
    use structopt::StructOpt;
    
    #[macro_export]
    /// Launch durs core server
    macro_rules! durs_core_server {
        ( $closure_inject_cli:expr, $closure_plug:expr ) => {{
            duniter_core::main(
                env!("CARGO_PKG_NAME"),
                env!("CARGO_PKG_VERSION"),
                &DursOpt::clap(),
                $closure_inject_cli,
                $closure_plug,
            );
        }};