Skip to content

Commit

Permalink
Remove old executor actions (#6768)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton authored Jan 17, 2025
1 parent be08553 commit 9d115ef
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions samples/constitutions/default/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 9d115ef

Please sign in to comment.