Skip to content

Conversation

qdm12
Copy link
Contributor

@qdm12 qdm12 commented Jan 16, 2025

Why this should be merged

In core/types, the Block method Timestamp does the same as the method Time and is not present upstream (this causes small difficulties in #750)

How this works

  • Define core.BlockContext implementing contract.ConfigurationBlockContext (same as subnet-evm)
  • Use core.NewBlockContext to convert types.Block and types.Header for calls to core.ApplyUpgrades

How this was tested

Existing CI passing

Need to be documented?

No

Need to update RELEASES.md?

No

@qdm12 qdm12 force-pushed the qdm12/block-remove-timestamp branch from 7f4bf55 to ec26332 Compare January 16, 2025 16:03
@qdm12

This comment was marked as outdated.

@qdm12 qdm12 changed the title chore(all): remove Timestamp() method on Block types chore(all): remove Timestamp() method on core/types.Block Jan 17, 2025
@qdm12 qdm12 changed the title chore(all): remove Timestamp() method on core/types.Block chore(core/types): remove Blocks's Timestamp() method Jan 17, 2025
@qdm12 qdm12 requested a review from darioush January 21, 2025 10:14
@qdm12 qdm12 force-pushed the qdm12/block-remove-timestamp branch from 37cbc5c to 5d7b0c4 Compare January 21, 2025 10:14
@qdm12 qdm12 marked this pull request as ready for review January 21, 2025 10:15
@qdm12 qdm12 requested review from a team and ceyonur as code owners January 21, 2025 10:15
ceyonur
ceyonur previously approved these changes Jan 21, 2025
darioush
darioush previously approved these changes Jan 21, 2025
@qdm12 qdm12 dismissed stale reviews from darioush and ceyonur via 19f0c6b January 21, 2025 15:59
@qdm12 qdm12 force-pushed the qdm12/block-remove-timestamp branch from 5d7b0c4 to 19f0c6b Compare January 21, 2025 15:59
darioush
darioush previously approved these changes Jan 21, 2025
@qdm12 qdm12 force-pushed the qdm12/block-remove-timestamp branch 2 times, most recently from 940bb2a to 85ec7d0 Compare January 23, 2025 07:40
@qdm12 qdm12 force-pushed the qdm12/block-remove-timestamp branch from 01d201c to b204317 Compare February 6, 2025 08:09
@qdm12 qdm12 changed the base branch from master to libevm February 6, 2025 08:24
@qdm12 qdm12 force-pushed the qdm12/block-remove-timestamp branch 2 times, most recently from 1c393af to 395184d Compare February 6, 2025 08:27
- Define `core.BlockContext` implementing `contract.ConfigurationBlockContext` (same as subnet-evm)
- Use `core.NewBlockContext` to convert `types.Block` and `types.Header` for calls to `core.ApplyUpgrades`
@qdm12 qdm12 force-pushed the qdm12/block-remove-timestamp branch from 395184d to be07a4c Compare February 7, 2025 07:44
@qdm12 qdm12 removed the Do not merge label Feb 7, 2025
@qdm12 qdm12 requested a review from darioush February 7, 2025 08:00
@qdm12 qdm12 enabled auto-merge (squash) February 7, 2025 08:00
@qdm12 qdm12 merged commit 1465dc2 into libevm Feb 7, 2025
6 checks passed
@qdm12 qdm12 deleted the qdm12/block-remove-timestamp branch February 7, 2025 19:05
ARR4N pushed a commit that referenced this pull request Mar 10, 2025
- Define `core.BlockContext` implementing `contract.ConfigurationBlockContext` (same as subnet-evm)
- Use `core.NewBlockContext` to convert `types.Block` and `types.Header` for calls to `core.ApplyUpgrades`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants