mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: timestamp fork activation semantics (#4785)
This commit is contained in:
@ -1276,7 +1276,7 @@ impl<'this, TX: DbTx<'this>> WithdrawalsProvider for DatabaseProvider<'this, TX>
|
||||
id: BlockHashOrNumber,
|
||||
timestamp: u64,
|
||||
) -> RethResult<Option<Vec<Withdrawal>>> {
|
||||
if self.chain_spec.is_shanghai_activated_at_timestamp(timestamp) {
|
||||
if self.chain_spec.is_shanghai_active_at_timestamp(timestamp) {
|
||||
if let Some(number) = self.convert_hash_or_number(id)? {
|
||||
// If we are past shanghai, then all blocks should have a withdrawal list, even if
|
||||
// empty
|
||||
|
||||
Reference in New Issue
Block a user