Skip to content

Announce new deploys in storage#89

Merged
afck merged 8 commits intocasper-network:masterfrom
marc-casperlabs:NDRS-165/announce-new-deploys
Jul 16, 2020
Merged

Announce new deploys in storage#89
afck merged 8 commits intocasper-network:masterfrom
marc-casperlabs:NDRS-165/announce-new-deploys

Conversation

@marc-casperlabs
Copy link
Contributor

This implements an announcement for new deploys whenever a new deploy is stored on the storage component. @Fraser999 please have a look to ensure that I did not miss a point where a deploy is inserted. =)

This PR does not have tests, as implementing those depends on reinventing a lot of things also in #87. We will have to add them once it is merged or rely on the higher level tests that leverage the deploy gossiper to find errors - if we are not seeing any new deploys, the issue should become apparent very quickly.

@afck afck self-requested a review July 16, 2020 08:16
@afck afck self-requested a review July 16, 2020 10:42
@marc-casperlabs
Copy link
Contributor Author

Only potential issue is that I think the last commit could be construed as slightly too clever. By passing in the hash and header not as seperate entities, but instead by reference of a full deploy, there is no risk of these being "out-of-sync" by accident.

This requires a bit of lifetime trickery, returning a "manual" future in the effect and some "buffering" of the future in the storage component.

All this is visible in f1d03c5

@afck afck merged commit d11b6dd into casper-network:master Jul 16, 2020
@marc-casperlabs marc-casperlabs deleted the NDRS-165/announce-new-deploys branch July 16, 2020 14:49
darthsiroftardis pushed a commit to darthsiroftardis/casper-node that referenced this pull request Nov 8, 2021
darthsiroftardis pushed a commit to darthsiroftardis/casper-node that referenced this pull request Nov 8, 2021
darthsiroftardis pushed a commit to darthsiroftardis/casper-node that referenced this pull request Nov 8, 2021
darthsiroftardis pushed a commit to darthsiroftardis/casper-node that referenced this pull request Nov 8, 2021
darthsiroftardis pushed a commit to darthsiroftardis/casper-node that referenced this pull request Nov 10, 2021
afck added a commit that referenced this pull request Nov 15, 2022
Prune orphaned and finalized rounds.
rafal-ch pushed a commit that referenced this pull request Sep 11, 2024
rafal-ch pushed a commit that referenced this pull request Sep 11, 2024
rafal-ch pushed a commit that referenced this pull request Sep 11, 2024
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