mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add block timestamp to meta (#7460)
This commit is contained in:
@ -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)))
|
||||
|
||||
@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user