Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

add cron fields #64

Closed
wants to merge 5 commits into from
Closed

add cron fields #64

wants to merge 5 commits into from

Conversation

cryptoAtwill
Copy link
Collaborator

@cryptoAtwill cryptoAtwill commented Mar 15, 2023

Changes

  • Somehow the ci does not have some clippy warning detected. Updated the ci and fixed all the clippy and fmt warnings.
  • Add cron_period and genesis_epoch to the state and constructor param

Updates:

  • Added genesis_epoch in gateway constructor param
  • Added genesis_epoch using current epoch in subnet actor

Tests

cargo test --all

Issues

@cryptoAtwill cryptoAtwill requested a review from adlrocha March 15, 2023 10:24
Copy link
Contributor

@adlrocha adlrocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a slight confusion in the genesis epoch. Also, if you don't mind adding genesis_epoch as a parameter in the subnet actor state that it is set to rt.current_epoch() in construction? (this is the one that will be used to set the contruct params of the subnet).

gateway/src/lib.rs Outdated Show resolved Hide resolved
gateway/src/state.rs Outdated Show resolved Hide resolved
gateway/src/state.rs Outdated Show resolved Hide resolved
gateway/src/types.rs Show resolved Hide resolved
cryptoAtwill and others added 3 commits March 15, 2023 20:15
Co-authored-by: adlrocha <adlrocha@tutamail.com>
Co-authored-by: adlrocha <adlrocha@tutamail.com>
* update cron

* fix lint

---------

Co-authored-by: willesxm <willeslau@gmail.com>
Copy link
Contributor

@adlrocha adlrocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the fixes 🙏

Do you mind taking note of all the changes over data structures we are making, or propagating them directly to a PR on https://github.com/consensus-shipyard/go-ipc-types? That way we don't end up with inconsistencies and serialization errors as we had we list-subnets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants