From 178bb960e93aa1c5a69dc548ef9d8332b0d36e3f Mon Sep 17 00:00:00 2001 From: mononaut <83316221+mononaut@users.noreply.github.com> Date: Sat, 24 Jun 2023 10:25:45 -0400 Subject: [PATCH] Remove redundant gbt function Co-authored-by: Jonathan Underwood --- backend/rust-gbt/src/gbt.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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();