Explorar o código

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

x %!s(int64=3) %!d(string=hai) anos
pai
achega
f3eac08216
Modificáronse 1 ficheiros con 4 adicións e 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::{
     consensus::{
-        constants::{TESTNET_GENESIS_HASH_BYTES, TESTNET_GENESIS_TIMESTAMP},
+        constants::{
+            TESTNET_BOOTSTRAP_TIMESTAMP, TESTNET_GENESIS_HASH_BYTES, TESTNET_GENESIS_TIMESTAMP,
+        },
         ValidatorState, ValidatorStatePtr,
     },
     wallet::WalletDb,
@@ -81,6 +83,7 @@ impl DaoTestHarness {
 
         let alice_state = ValidatorState::new(
             &alice_sled_db,
+            *TESTNET_BOOTSTRAP_TIMESTAMP,
             *TESTNET_GENESIS_TIMESTAMP,
             *TESTNET_GENESIS_HASH_BYTES,
             alice_wallet,