Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve timestamp handling #335

Merged
merged 16 commits into from
Apr 4, 2024
Merged

Improve timestamp handling #335

merged 16 commits into from
Apr 4, 2024

Conversation

rakanalh
Copy link
Contributor

@rakanalh rakanalh commented Apr 3, 2024

Description

  • Remove genesis timestamp field
  • Add timestamp to various soft confirmations related data structures & initialize it from latest block storage.
  • Fix tests accordingly.

Linked Issues

Testing

  • Fixed existing unit / integration tests to pass against this new change.
  • Added tests for queries & hooks in the soft-confirmation-enforcer crate.

Docs

  • rustdocs included for the newly added field

@rakanalh rakanalh marked this pull request as ready for review April 3, 2024 00:13
@rakanalh rakanalh requested review from kpp, eyusufatik and otaliptus April 3, 2024 00:21
@rakanalh rakanalh self-assigned this Apr 3, 2024
crates/soft-confirmation-rule-enforcer/src/hooks.rs Outdated Show resolved Hide resolved
crates/sequencer/src/sequencer.rs Outdated Show resolved Hide resolved
crates/sequencer/src/sequencer.rs Outdated Show resolved Hide resolved
@rakanalh rakanalh requested review from kpp and eyusufatik April 3, 2024 21:11
@rakanalh rakanalh requested a review from eyusufatik April 3, 2024 23:28
@eyusufatik eyusufatik merged commit 8e10668 into nightly Apr 4, 2024
4 checks passed
@eyusufatik eyusufatik deleted the rakan/timestamps branch April 4, 2024 08:34
rakanalh added a commit that referenced this pull request Apr 6, 2024
* Add timestamp field

* Pass timestamp value

* Apply timestamp rule

* Add block time delta to timestamp

* Remove "genesis_timestamp" field

* Add timestamp to SoftBatchResponse

* Fix all tests

* Remove block timestamp delta field

* Use chrono to set current timestamp

* Set edition in rustfmt

* Fix tests

* Update docs

* Add soft confirmation rule enforce timestamp tests

* Fix RPC tests

* Remove set_timestamp
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.

EVM: enhance time handling
3 participants