fix after merge

This commit is contained in:
Rostyslav Tyshko
2025-06-10 01:39:11 -04:00
parent b77289937f
commit 720263ae2d
4 changed files with 9 additions and 6 deletions
@@ -88,6 +88,8 @@ impl NodeBlockStore {
Ok(serde_json::from_slice(
&self.dbio.get_snapshot_transaction()?,
)?)
}
pub fn put_snapshot_at_block_id(
&self,
id: u64,
+2 -1
View File
@@ -30,7 +30,7 @@ pub struct NodeChainStore {
}
impl NodeChainStore {
pub fn new(home_dir: &Path, genesis_block: Block) -> Result<(Self, u64)> {
pub fn new(config: NodeConfig, genesis_block: Block) -> Result<(Self, u64)> {
let mut acc_map = HashMap::new();
let mut nullifier_store = HashSet::new();
let mut utxo_commitments_store = UTXOCommitmentsMerkleTree::new(vec![]);
@@ -58,6 +58,7 @@ impl NodeChainStore {
nullifier_store,
utxo_commitments_store,
pub_tx_store,
node_config: config,
},
block_id,
))
+1 -1
View File
@@ -98,7 +98,7 @@ impl NodeCore {
let genesis_block = client.get_block(genesis_id.genesis_id).await?.block;
let (mut storage, mut chain_height) = NodeChainStore::new(&config.home, genesis_block)?;
let (mut storage, mut chain_height) = NodeChainStore::new(config.clone(), genesis_block)?;
pre_start::setup_empty_sc_states(&storage).await?;