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

Feature: Cross-net message support #155

Merged
merged 14 commits into from
Apr 18, 2023
Merged

Feature: Cross-net message support #155

merged 14 commits into from
Apr 18, 2023

Conversation

adlrocha
Copy link
Contributor

@adlrocha adlrocha commented Apr 12, 2023

Update (2022-04-13)

This branch has been repurposed to become the staging branch for the integration of cross-net support and the actors refactor into the agent. After this PR is merged the agent should have:

  • Support to send top-down and bottom-up cross-net messages.
  • New processes for the submission and commitment of bottom-up and top-down checkpoints.
  • Compatibility with the latest actor bundle version.

Original description

This PR updates the types to accommodate the changes for the new actor bundle, and fixes the serialization of all this types.

This should become the base branch to build upon for the bottom-up and top-down checkpointing logic.

* adapt checkpointing to actor refactor

* fix submission logic

* ¨

* minor fixes to logic

* subnet state serialization fixes

* add get top-down message call
@adlrocha adlrocha changed the title Updated types for actor refactor Feature: Cross-net message support Apr 13, 2023
hmoniz and others added 2 commits April 18, 2023 18:32
* Move topdown commit prototype to new branch

* Function to manage topdown checkpoints

* Update install_infra.sh

fix infra script

* restruct cli

* refactor cli

* add skeleton

* remove checkpoint

* update method naming

* simplify code

* make it compile

* update serialization

* Update Checkpoint serialization/deserialization (#154)

* json serialization

* lint

* rename struct

* updated types for actor refactor

* Adapt bottom-up checkpoints to actor refactor (#156)

* adapt checkpointing to actor refactor

* fix submission logic

* ¨

* minor fixes to logic

* subnet state serialization fixes

* add get top-down message call

* Move topdown commit prototype to new branch

* Function to manage topdown checkpoints

* Implementation of topdown checkpoints

* wip: adapting logic to correct submission logic

* finalize top-down logic including pending endpoints

* add logging to bottom up

* add more logging

* info use as_ref

* We don't stop the top-down (resp. bottom-up) checkpoint manager if the bottom-up (resp. top-down) manager fails

* add new genesis_epoch endpoint

* check if subnet initialized for top-down checkpoint

* add top down checkpoint submission looping (#164)

* Fix error logging of manage checkpoint futures

* Topdown loop submission (#165)

* add top down checkpoint submission looping

* fix state wait

* update nonce

* fix top down nonce

* cleaning code

* catch up bu checkpoint (#166)

* catch up bu checkpoint

* format code

* last topdown executed checkpoint handler

* fmt

---------

Co-authored-by: Jorge Soares <547492+jsoares@users.noreply.github.com>
Co-authored-by: cryptoAtwill <willes.lau@protocol.ai>
Co-authored-by: cryptoAtwill <108330426+cryptoAtwill@users.noreply.github.com>
Co-authored-by: Alfonso de la Rocha <adlrocha@tutamail.com>
@adlrocha adlrocha merged commit 9957aee into main Apr 18, 2023
@adlrocha adlrocha deleted the adlrocha/new-types branch April 18, 2023 16:56
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