use crate::allocator::{Allocator, NodePtr};
use crate::chia_dialect::ClvmFlags;
use crate::cost::Cost;
use crate::op_utils::get_args;
use crate::reduction::Response;
use crate::treehash::*;
pub fn op_sha256_tree(
a: &mut Allocator,
input: NodePtr,
max_cost: Cost,
_flags: ClvmFlags,
) -> Response {
let [n] = get_args::<1>(a, input, "sha256tree")?;
tree_hash_costed(a, n, max_cost)
}