From 0f1f151d65aa0ac5cfb8dca97d0a7425e1acca5c Mon Sep 17 00:00:00 2001 From: junderw Date: Sat, 24 Jun 2023 09:23:09 -0700 Subject: [PATCH] Remove empty function --- backend/rust-gbt/src/gbt.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/rust-gbt/src/gbt.rs b/backend/rust-gbt/src/gbt.rs index 912ec5956..9cab724a4 100644 --- a/backend/rust-gbt/src/gbt.rs +++ b/backend/rust-gbt/src/gbt.rs @@ -43,16 +43,12 @@ impl Ord for TxPriority { /// 3. A 2D Vector of transaction IDs representing clusters of dependent mempool transactions pub type GbtResult = (Vec>, Vec<(u32, f64)>, Vec>); -pub fn gbt(mempool: &mut HashMap) -> Option { - 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(mempool: &mut HashMap) -> Option { +pub fn gbt(mempool: &mut HashMap) -> Option { let mut audit_pool: HashMap = HashMap::new(); let mut mempool_array: VecDeque = VecDeque::new(); let mut cluster_array: Vec> = Vec::new();