Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Oct 30, 2023
1 parent 94ce963 commit 7844f80
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,6 @@ impl Database {
/// Returns all the tx hashes for a block
pub async fn get_tx_hashes_block(&self, hash: &[u8]) -> Result<Vec<Row>, Error> {
// query for all tx hash that are in a block identified by the block_id
// let str = format!("SELECT t.hash FROM {0}.{BLOCKS_TABLE_NAME} b JOIN {0}.{TX_TABLE_NAME} t ON b.block_id = t.block_id WHERE b.block_id =$1;", self.network);
let str = format!("SELECT t.hash, t.tx_type FROM {0}.{BLOCKS_TABLE_NAME} b JOIN {0}.{TX_TABLE_NAME} t ON b.block_id = t.block_id WHERE b.block_id = $1;", self.network);

query(&str)
Expand Down

0 comments on commit 7844f80

Please sign in to comment.