chik_consensus/
allocator.rs

1use klvmr::allocator::Allocator;
2use klvmr::chik_dialect::LIMIT_HEAP;
3
4pub fn make_allocator(flags: u32) -> Allocator {
5    if flags & LIMIT_HEAP != 0 {
6        Allocator::new_limited(500_000_000)
7    } else {
8        Allocator::new_limited(u32::MAX as usize)
9    }
10}