diff --git a/backend/rust-gbt/src/gbt.rs b/backend/rust-gbt/src/gbt.rs index ff491d52c..a138ac1d2 100644 --- a/backend/rust-gbt/src/gbt.rs +++ b/backend/rust-gbt/src/gbt.rs @@ -36,18 +36,12 @@ impl Ord for TxPriority { } } -pub fn gbt( - mempool: &mut HashMap, -) -> Option<(Vec>, Vec<(u32, f64)>, Vec>)> { - make_block_templates(mempool) -} - /* * Build projected mempool blocks using an approximation of the transaction selection algorithm from Bitcoin Core * (see BlockAssembler in https://github.com/bitcoin/bitcoin/blob/master/src/node/miner.cpp) * Ported from https://github.com/mempool/mempool/blob/master/backend/src/api/tx-selection-worker.ts */ -fn make_block_templates( +pub fn gbt( mempool: &mut HashMap, ) -> Option<(Vec>, Vec<(u32, f64)>, Vec>)> { let mut audit_pool: HashMap = HashMap::new();