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

Khalil/5639 epoch recovery transaction #439

Closed
wants to merge 165 commits into from

Conversation

kc1116
Copy link
Contributor

@kc1116 kc1116 commented Jul 30, 2024

This PR updates the FlowEpoch smart contract to support recovering the network while in Epoch Fallback Mode. It adds a new service event EpochRecover which contains the metadata for the recovery epoch. This metadata is generated out of band using the bootstrap utility util epoch efm-recover-tx-args onflow/flow-go#5576 and submitted to the contract with the recovery_epoch.cdc transaction. The FlowEpoch contract will end the current epoch, start the recovery epoch and store the metadata for the recovery epoch in storage. This metadata will then be emitted to the network during the next heartbeat interval.

pre-maturely merged: #420

kc1116 and others added 28 commits June 20, 2024 17:01
* Remove feature branch

* Add a new script that checks if payer has balance to pay for tx (#435)

* Add a new script that checks if payer has balance to pay for tx

* Rewrite check_if_payer_has_sufficient_balance to return struct

* Update contract to cadence 1

* create custom minted account

* payer executes tx and pays for it

* fix tx signers

* refactor test

---------

Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Illia <[email protected]>
…nflow/flow-core-contracts into khalil/5639-epoch-recovery-transaction
@kc1116 kc1116 closed this Jul 30, 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.

7 participants