Explorar el Código

dao: fix compile error due to ValidatorState::new() changes

x hace 3 años
padre
commit
f3eac08216
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/contract/dao/tests/harness.rs

+ 4 - 1
src/contract/dao/tests/harness.rs

@@ -19,7 +19,9 @@ use std::collections::HashMap;
 
 
 use darkfi::{
 use darkfi::{
     consensus::{
     consensus::{
-        constants::{TESTNET_GENESIS_HASH_BYTES, TESTNET_GENESIS_TIMESTAMP},
+        constants::{
+            TESTNET_BOOTSTRAP_TIMESTAMP, TESTNET_GENESIS_HASH_BYTES, TESTNET_GENESIS_TIMESTAMP,
+        },
         ValidatorState, ValidatorStatePtr,
         ValidatorState, ValidatorStatePtr,
     },
     },
     wallet::WalletDb,
     wallet::WalletDb,
@@ -81,6 +83,7 @@ impl DaoTestHarness {
 
 
         let alice_state = ValidatorState::new(
         let alice_state = ValidatorState::new(
             &alice_sled_db,
             &alice_sled_db,
+            *TESTNET_BOOTSTRAP_TIMESTAMP,
             *TESTNET_GENESIS_TIMESTAMP,
             *TESTNET_GENESIS_TIMESTAMP,
             *TESTNET_GENESIS_HASH_BYTES,
             *TESTNET_GENESIS_HASH_BYTES,
             alice_wallet,
             alice_wallet,