mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: convert hash field to OnceLock<TxHash> on TransactionSigned (#12596)
Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com>
This commit is contained in:
@ -142,7 +142,7 @@ mod tests {
|
||||
for block in &blocks {
|
||||
tx_hash_numbers.reserve_exact(block.body.transactions.len());
|
||||
for transaction in &block.body.transactions {
|
||||
tx_hash_numbers.push((transaction.hash, tx_hash_numbers.len() as u64));
|
||||
tx_hash_numbers.push((transaction.hash(), tx_hash_numbers.len() as u64));
|
||||
}
|
||||
}
|
||||
let tx_hash_numbers_len = tx_hash_numbers.len();
|
||||
|
||||
Reference in New Issue
Block a user