mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: track exact number of transactions (#2343)
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user