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:
commit
fc757b193a
|
@ -110,8 +110,10 @@ impl MemoryWalletDb {
|
||||||
blocks: BTreeMap::new(),
|
blocks: BTreeMap::new(),
|
||||||
tx_idx: HashMap::new(),
|
tx_idx: HashMap::new(),
|
||||||
sapling_spends: BTreeMap::new(),
|
sapling_spends: BTreeMap::new(),
|
||||||
|
#[cfg(feature = "orchard")]
|
||||||
orchard_spends: BTreeMap::new(),
|
orchard_spends: BTreeMap::new(),
|
||||||
sapling_tree: ShardTree::new(MemoryShardStore::empty(), max_checkpoints),
|
sapling_tree: ShardTree::new(MemoryShardStore::empty(), max_checkpoints),
|
||||||
|
#[cfg(feature = "orchard")]
|
||||||
orchard_tree: ShardTree::new(MemoryShardStore::empty(), max_checkpoints),
|
orchard_tree: ShardTree::new(MemoryShardStore::empty(), max_checkpoints),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue