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

Feat/activation round #96

Merged
merged 15 commits into from
Sep 1, 2022
Merged

Conversation

Karrenbelt
Copy link
Contributor

activation- round & behaviour and associated tests

def check_payload(self, payload: BaseTxPayload) -> None:
"""Check payload."""
raise NotImplementedError
_ = Event.AWAITING_BONDING
Copy link
Contributor Author

Choose a reason for hiding this comment

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

to pass linter. It can be removed. I think entire waiting round may be removed. Let me know your opinion on this then we may open an issue on it

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you think it can be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the activation round can take care of all this logic. It can compute the actual difference between bonding and last block, and decide to sleep for that long (or until timeout hits) before attempting to activate.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If we can remove a round without changing the logic or complicating the implementation too much, then I would suggest that we do this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#99

@Karrenbelt Karrenbelt force-pushed the feat/activation_round branch from faef933 to c1b5cc6 Compare September 1, 2022 15:12
contract_id=str(Keep3rV1Contract.contract_id),
contract_callable="build_activation_tx",
)
activation_tx = cast(str, contract_api_response.state.body.get("data"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing performative check and handling

@DavidMinarsch DavidMinarsch merged commit 5f1097c into feat/waiting_round Sep 1, 2022
@DavidMinarsch DavidMinarsch deleted the feat/activation_round branch September 1, 2022 22:10
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