Skip to content

Commit

Permalink
when having features enabled then the right field should be used for …
Browse files Browse the repository at this point in the history
…transactions (MystenLabs#5550)
  • Loading branch information
akichidis authored Oct 25, 2022
1 parent 6916253 commit 7caa48d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions narwhal/worker/src/batch_maker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl BatchMaker {

// Look for sample txs (they all start with 0) and gather their txs id (the next 8 bytes).
let tx_ids: Vec<_> = batch
.0
.transactions
.iter()
.filter(|tx| tx[0] == 0u8 && tx.len() > 8)
.filter_map(|tx| tx[1..9].try_into().ok())
Expand All @@ -170,7 +170,7 @@ impl BatchMaker {
// that's useful for debugging and tracking the lifetime of messages between
// Narwhal and clients.
let tracking_ids: Vec<_> = batch
.0
.transactions
.iter()
.map(|tx| {
let len = tx.len();
Expand Down

0 comments on commit 7caa48d

Please sign in to comment.