From 9d115ef0a8c21737b26dd890d1bba87ad7f24af4 Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Fri, 17 Jan 2025 11:51:08 +0000 Subject: [PATCH] Remove old executor actions (#6768) --- samples/constitutions/default/actions.js | 25 ------------------------ 1 file changed, 25 deletions(-) diff --git a/samples/constitutions/default/actions.js b/samples/constitutions/default/actions.js index 98f0ed2f7c0..7a41bc0a8e0 100644 --- a/samples/constitutions/default/actions.js +++ b/samples/constitutions/default/actions.js @@ -1049,19 +1049,6 @@ const actions = new Map([ }, ), ], - [ - "add_executor_node_code", - new Action( - function (args) { - checkType(args.executor_code_id, "string", "executor_code_id"); - }, - function (args) { - const codeId = ccf.strToBuf(args.executor_code_id); - const ALLOWED = ccf.jsonCompatibleToBuf("AllowedToExecute"); - ccf.kv["public:ccf.gov.nodes.executor_code_ids"].set(codeId, ALLOWED); - }, - ), - ], [ "add_snp_host_data", new Action( @@ -1254,18 +1241,6 @@ const actions = new Map([ }, ), ], - [ - "remove_executor_node_code", - new Action( - function (args) { - checkType(args.executor_code_id, "string", "executor_code_id"); - }, - function (args) { - const codeId = ccf.strToBuf(args.executor_code_id); - ccf.kv["public:ccf.gov.nodes.executor_code_ids"].delete(codeId); - }, - ), - ], [ "remove_node", new Action(