fix: track exact number of transactions (#2343)

This commit is contained in:
Matthias Seitz
2023-04-21 20:14:39 +02:00
committed by GitHub
parent 0664ee108b
commit 1169d75d1d
2 changed files with 9 additions and 4 deletions

View File

@ -40,6 +40,9 @@ impl StoredBlockBodyIndices {
}
/// First transaction index.
///
/// Caution: If the block is empty, this is the number of the first transaction
/// in the next non-empty block.
pub fn first_tx_num(&self) -> TxNumber {
self.first_tx_num
}