mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
contract/test-harness: Set fixed-difficulty=1 mining
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -1833,6 +1833,7 @@ dependencies = [
|
|||||||
"darkfi_deployooor_contract",
|
"darkfi_deployooor_contract",
|
||||||
"darkfi_money_contract",
|
"darkfi_money_contract",
|
||||||
"log",
|
"log",
|
||||||
|
"num-bigint",
|
||||||
"rand 0.8.5",
|
"rand 0.8.5",
|
||||||
"simplelog",
|
"simplelog",
|
||||||
"sled",
|
"sled",
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ darkfi_money_contract = {path = "../money", features = ["client", "no-entrypoint
|
|||||||
darkfi_consensus_contract = {path = "../consensus", features = ["client", "no-entrypoint"]}
|
darkfi_consensus_contract = {path = "../consensus", features = ["client", "no-entrypoint"]}
|
||||||
darkfi_deployooor_contract = {path = "../deployooor", features = ["client", "no-entrypoint"]}
|
darkfi_deployooor_contract = {path = "../deployooor", features = ["client", "no-entrypoint"]}
|
||||||
|
|
||||||
|
num-bigint = "0.4.4"
|
||||||
blake3 = "1.5.0"
|
blake3 = "1.5.0"
|
||||||
bs58 = "0.5.0"
|
bs58 = "0.5.0"
|
||||||
log = "0.4.20"
|
log = "0.4.20"
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ use darkfi_sdk::{
|
|||||||
pasta::pallas,
|
pasta::pallas,
|
||||||
};
|
};
|
||||||
use log::{info, warn};
|
use log::{info, warn};
|
||||||
|
use num_bigint::BigUint;
|
||||||
use rand::rngs::OsRng;
|
use rand::rngs::OsRng;
|
||||||
|
|
||||||
mod benchmarks;
|
mod benchmarks;
|
||||||
@@ -163,7 +164,7 @@ impl Wallet {
|
|||||||
3,
|
3,
|
||||||
1,
|
1,
|
||||||
90,
|
90,
|
||||||
None,
|
Some(BigUint::from(1_u8)),
|
||||||
genesis_block.clone(),
|
genesis_block.clone(),
|
||||||
0,
|
0,
|
||||||
faucet_pubkeys.to_vec(),
|
faucet_pubkeys.to_vec(),
|
||||||
|
|||||||
Reference in New Issue
Block a user