Skip to content

Commit 9d115ef

Browse files
authored
Remove old executor actions (#6768)
1 parent be08553 commit 9d115ef

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

samples/constitutions/default/actions.js

-25
Original file line numberDiff line numberDiff line change
@@ -1049,19 +1049,6 @@ const actions = new Map([
10491049
},
10501050
),
10511051
],
1052-
[
1053-
"add_executor_node_code",
1054-
new Action(
1055-
function (args) {
1056-
checkType(args.executor_code_id, "string", "executor_code_id");
1057-
},
1058-
function (args) {
1059-
const codeId = ccf.strToBuf(args.executor_code_id);
1060-
const ALLOWED = ccf.jsonCompatibleToBuf("AllowedToExecute");
1061-
ccf.kv["public:ccf.gov.nodes.executor_code_ids"].set(codeId, ALLOWED);
1062-
},
1063-
),
1064-
],
10651052
[
10661053
"add_snp_host_data",
10671054
new Action(
@@ -1254,18 +1241,6 @@ const actions = new Map([
12541241
},
12551242
),
12561243
],
1257-
[
1258-
"remove_executor_node_code",
1259-
new Action(
1260-
function (args) {
1261-
checkType(args.executor_code_id, "string", "executor_code_id");
1262-
},
1263-
function (args) {
1264-
const codeId = ccf.strToBuf(args.executor_code_id);
1265-
ccf.kv["public:ccf.gov.nodes.executor_code_ids"].delete(codeId);
1266-
},
1267-
),
1268-
],
12691244
[
12701245
"remove_node",
12711246
new Action(

0 commit comments

Comments
 (0)