mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
consensus/ouroboros: fixed tests, fmt, removed db folder
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use ::darkfi::{
|
||||
consensus::ouroboros::{EpochConsensus, Stakeholder},
|
||||
net::Settings,
|
||||
consensus::ouroboros::{Stakeholder, EpochConsensus},util::time::Timestamp,
|
||||
util::time::Timestamp,
|
||||
};
|
||||
|
||||
use clap::Parser;
|
||||
@@ -8,7 +9,6 @@ use futures::executor::block_on;
|
||||
use std::thread;
|
||||
use url::Url;
|
||||
|
||||
|
||||
#[derive(Parser)]
|
||||
struct NetCli {
|
||||
#[clap(long, value_parser, default_value = "tls://127.0.0.1:12003")]
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
use futures::executor::block_on;
|
||||
use halo2_proofs::dev::MockProver;
|
||||
use log::debug;
|
||||
use pasta_curves::pallas;
|
||||
use url::Url;
|
||||
|
||||
use darkfi::{
|
||||
consensus::ouroboros::{Epoch, EpochConsensus, Stakeholder},
|
||||
crypto::leadcoin::{LeadCoin, LEAD_PUBLIC_INPUT_LEN},
|
||||
net::Settings,
|
||||
consensus::ouroboros::{Stakeholder, Epoch, EpochConsensus},
|
||||
};
|
||||
|
||||
|
||||
fn main() {
|
||||
env_logger::init();
|
||||
|
||||
@@ -46,9 +44,7 @@ fn main() {
|
||||
let eta: pallas::Base = stakeholder.get_eta();
|
||||
let mut epoch = Epoch::new(consensus, eta);
|
||||
let sigma = pallas::Base::from(10);
|
||||
let coins: Vec<Vec<LeadCoin>> = epoch.create_coins(sigma.clone(),
|
||||
sigma,
|
||||
vec![]);
|
||||
let coins: Vec<Vec<LeadCoin>> = epoch.create_coins(sigma.clone(), sigma, vec![]);
|
||||
let coin = coins[0][0];
|
||||
let contract = coin.create_contract();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user