chik-consensus 0.17.0

Utility functions and types used by the Chik blockchain full node
Documentation
1
2
3
4
5
6
7
8
9
10
use klvmr::allocator::Allocator;
use klvmr::chik_dialect::LIMIT_HEAP;

pub fn make_allocator(flags: u32) -> Allocator {
    if flags & LIMIT_HEAP != 0 {
        Allocator::new_limited(500_000_000)
    } else {
        Allocator::new_limited(u32::MAX as usize)
    }
}