Merge pull request #1295 from oxarbitrage/memory_wallet_fix_build

Fix the memory wallet build by hiding orchard fields in `new()` behind a flag
This commit is contained in:
Kris Nuttycombe 2024-03-21 09:02:07 -06:00 committed by GitHub
commit fc757b193a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -110,8 +110,10 @@ impl MemoryWalletDb {
blocks: BTreeMap::new(),
tx_idx: HashMap::new(),
sapling_spends: BTreeMap::new(),
#[cfg(feature = "orchard")]
orchard_spends: BTreeMap::new(),
sapling_tree: ShardTree::new(MemoryShardStore::empty(), max_checkpoints),
#[cfg(feature = "orchard")]
orchard_tree: ShardTree::new(MemoryShardStore::empty(), max_checkpoints),
}
}