feat: add block timestamp to meta (#7460)

This commit is contained in:
Matthias Seitz
2024-04-04 16:46:20 +02:00
committed by GitHub
parent 9c11961488
commit ca82ff5be6
5 changed files with 7 additions and 1 deletions

View File

@ -1608,6 +1608,7 @@ impl<TX: DbTx> TransactionsProvider for DatabaseProvider<TX> {
block_number,
base_fee: header.base_fee_per_gas,
excess_blob_gas: header.excess_blob_gas,
timestamp: header.timestamp,
};
return Ok(Some((transaction, meta)))

View File

@ -247,6 +247,7 @@ impl TransactionsProvider for MockEthProvider {
block_number: block.header.number,
base_fee: block.header.base_fee_per_gas,
excess_blob_gas: block.header.excess_blob_gas,
timestamp: block.header.timestamp,
};
return Ok(Some((tx.clone(), meta)))
}