Skip to content

Commit

Permalink
use btree for tx_map in zkapp_commands_to_block_transactions too
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Oct 22, 2024
1 parent 3375290 commit 18b75de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/search_transactions.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::HashMap;
use std::collections::{BTreeMap, HashMap};

use coinbase_mesh::models::{
AccountIdentifier, BlockIdentifier, BlockTransaction, Operation, SearchTransactionsRequest,
Expand Down Expand Up @@ -160,7 +160,7 @@ impl MinaMesh {
}

pub fn zkapp_commands_to_block_transactions(commands: Vec<ZkAppCommand>) -> Vec<BlockTransaction> {
let mut block_map: HashMap<(i64, String), HashMap<String, Vec<Operation>>> = HashMap::new();
let mut block_map: HashMap<(i64, String), BTreeMap<String, Vec<Operation>>> = HashMap::new();

for command in commands {
// Group by block identifier (block index and block hash)
Expand Down

0 comments on commit 18b75de

Please sign in to comment.