contract/test-harness: Set fixed-difficulty=1 mining

This commit is contained in:
parazyd
2024-01-10 09:37:20 +01:00
parent f573585b72
commit ec1e9ff64e
3 changed files with 4 additions and 1 deletions

1
Cargo.lock generated
View File

@@ -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",

View File

@@ -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"

View File

@@ -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(),