Skip to content

Add example killswitch - #11

Merged
kvinwang merged 6 commits into
masterfrom
killswitch
Dec 6, 2024
Merged

kvinwang merged 6 commits into
masterfrom
killswitch

Conversation

@kvinwang

@kvinwang kvinwang commented Nov 13, 2024 •

Copy link
Copy Markdown
Collaborator

The client agent in killswitch.py is controlled by contract AppRegistry.sol. Apps are registered to the contract first. Then, the app can modify its name, and either the contract administrator or the app itself can deactivate the app through a transaction banApp. Once deactivated, an app cannot modify its name on the blockchain.

  • Passive:
    When an app is banned on the chain, it is no longer allowed to submit changes to the contract.
  • Proactive:
    No light client yet. Currently, the Registry.run_killswitch() periodically checks the kill signal via node RPC. If the kill signal is observed, it shuts down the App (mocked).

Live demo

@kvinwang
kvinwang merged commit 930d7b3 into master Dec 6, 2024
@kvinwang
kvinwang deleted the killswitch branch December 6, 2024 01:25
kvinwang added a commit that referenced this pull request Jan 19, 2026
source-c pushed a commit to silicon-foundation/dstack that referenced this pull request Jul 13, 2026
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.

1 participant