From ca28b83d30b909a8395c769260d8934175509dd7 Mon Sep 17 00:00:00 2001 From: Derek Anderson Date: Fri, 30 Aug 2024 14:33:51 -0500 Subject: [PATCH] updated debug files Signed-off-by: Derek Anderson --- .gitignore | 5 +- .vscode/launch.json | 202 ++++++++++++++++++----------- configs/testkeys/ident3/identity | 1 + configs/testkeys/ident3/peerid.txt | 1 + configs/testkeys/ident3/priv.bin | 2 + configs/testkeys/ident3/pub.bin | 1 + configs/testkeys/ident3/pubkey.txt | 1 + configs/testkeys/ident4/identity | 1 + configs/testkeys/ident4/peerid.txt | 1 + configs/testkeys/ident4/priv.bin | 1 + configs/testkeys/ident4/pub.bin | 1 + configs/testkeys/ident4/pubkey.txt | 1 + 12 files changed, 141 insertions(+), 77 deletions(-) create mode 100644 configs/testkeys/ident3/identity create mode 100644 configs/testkeys/ident3/peerid.txt create mode 100644 configs/testkeys/ident3/priv.bin create mode 100644 configs/testkeys/ident3/pub.bin create mode 100644 configs/testkeys/ident3/pubkey.txt create mode 100644 configs/testkeys/ident4/identity create mode 100644 configs/testkeys/ident4/peerid.txt create mode 100644 configs/testkeys/ident4/priv.bin create mode 100644 configs/testkeys/ident4/pub.bin create mode 100644 configs/testkeys/ident4/pubkey.txt diff --git a/.gitignore b/.gitignore index d232dfc9..488af727 100644 --- a/.gitignore +++ b/.gitignore @@ -11,5 +11,6 @@ dist/ runtime/ *.env __debug* - -*.exe \ No newline at end of file +.b7s_* +*.exe +.vscode/ \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index d35bbe92..7c928a17 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,77 +1,129 @@ { - "version": "0.2.0", - "configurations": [ - { - "name": "Launch Head Node", - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${workspaceFolder}/cmd/node", - "args": [ - "--peer-db", - "/tmp/b7s/head-peer-db", - "--function-db", - "/tmp/b7s/head-fdb", - "--log-level", - "debug", - "--port", - "9527", - "--role", - "head", - "--workspace", - "/tmp/debug/head", - "--private-key", - "${workspaceFolder}/configs/testkeys/ident1/priv.bin", - "--rest-api", - ":8081" - ], - "cwd": "${workspaceFolder}" - }, - { - "name": "Launch Worker Node", - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${workspaceFolder}/cmd/node", - "args": [ - "--peer-db", - "/tmp/b7s/worker-peer-db", - "--function-db", - "/tmp/b7s/worker-fdb", - "--log-level", - "debug", - "--port", - "0", - "--role", - "worker", - "--runtime-path", - "/tmp/runtime", - "--runtime-cli", - "bls-runtime", - "--workspace", - "/tmp/debug/worker", - "--private-key", - "${workspaceFolder}/configs/testkeys/ident2/priv.bin", - "--boot-nodes", - "/ip4/0.0.0.0/tcp/9527/p2p/12D3KooWH9GerdSEroL2nqjpd2GuE5dwmqNi7uHX7FoywBdKcP4q" - ], - "cwd": "${workspaceFolder}" - }, - { - "name": "Launch Manager", - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${workspaceFolder}/cmd/manager", - "args": [ - "-l", - "3333", - "--private-key", - "${workspaceFolder}/configs/testkeys/ident2/priv.bin", - "--allowed-peer", - "QmSz8bJZjg9gWfvrJjYibo4UhSo8dXYtpNRb4kxn28SoHG" - ], - "cwd": "${workspaceFolder}" - } - ] + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Head Node", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceFolder}/cmd/node", + "args": [ + "--db", + "/tmp/b7s/head-db", + "--log-level", + "debug", + "--port", + "9527", + "--role", + "head", + "--workspace", + "/tmp/debug/head", + "--private-key", + "${workspaceFolder}/configs/testkeys/ident1/priv.bin", + "--rest-api", + ":8081" + ], + "cwd": "${workspaceFolder}" + }, + { + "name": "Launch Worker 1", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceFolder}/cmd/node", + "args": [ + "--db", + "/tmp/b7s/worker1-db", + "--log-level", + "debug", + "--port", + "0", + "--role", + "worker", + "--runtime-path", + "/tmp/runtime", + "--runtime-cli", + "bls-runtime", + "--workspace", + "/tmp/debug/worker", + "--private-key", + "${workspaceFolder}/configs/testkeys/ident2/priv.bin", + "--boot-nodes", + "/ip4/0.0.0.0/tcp/9527/p2p/12D3KooWH9GerdSEroL2nqjpd2GuE5dwmqNi7uHX7FoywBdKcP4q" + ], + "cwd": "${workspaceFolder}" + }, + { + "name": "Launch Worker 2", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceFolder}/cmd/node", + "args": [ + "--db", + "/tmp/b7s/worker2-db", + "--log-level", + "debug", + "--port", + "0", + "--role", + "worker", + "--runtime-path", + "/tmp/runtime", + "--runtime-cli", + "bls-runtime", + "--workspace", + "/tmp/debug/worker", + "--private-key", + "${workspaceFolder}/configs/testkeys/ident3/priv.bin", + "--boot-nodes", + "/ip4/0.0.0.0/tcp/9527/p2p/12D3KooWH9GerdSEroL2nqjpd2GuE5dwmqNi7uHX7FoywBdKcP4q" + ], + "cwd": "${workspaceFolder}" + }, + { + "name": "Launch Worker 3", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceFolder}/cmd/node", + "args": [ + "--db", + "/tmp/b7s/worker3-db", + "--log-level", + "debug", + "--port", + "0", + "--role", + "worker", + "--runtime-path", + "/tmp/runtime", + "--runtime-cli", + "bls-runtime", + "--workspace", + "/tmp/debug/worker", + "--private-key", + "${workspaceFolder}/configs/testkeys/ident4/priv.bin", + "--boot-nodes", + "/ip4/0.0.0.0/tcp/9527/p2p/12D3KooWH9GerdSEroL2nqjpd2GuE5dwmqNi7uHX7FoywBdKcP4q" + ], + "cwd": "${workspaceFolder}" + }, + { + "name": "Launch Manager", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceFolder}/cmd/manager", + "args": [ + "-l", + "3333", + "--private-key", + "${workspaceFolder}/configs/testkeys/ident2/priv.bin", + "--allowed-peer", + "QmSz8bJZjg9gWfvrJjYibo4UhSo8dXYtpNRb4kxn28SoHG" + ], + "cwd": "${workspaceFolder}" + } + ] } diff --git a/configs/testkeys/ident3/identity b/configs/testkeys/ident3/identity new file mode 100644 index 00000000..b77eff56 --- /dev/null +++ b/configs/testkeys/ident3/identity @@ -0,0 +1 @@ +12D3KooWDQrRTPyYGMtNigi4giFuN2mGSrVwz5CfqGeaz8vVJKTG \ No newline at end of file diff --git a/configs/testkeys/ident3/peerid.txt b/configs/testkeys/ident3/peerid.txt new file mode 100644 index 00000000..b77eff56 --- /dev/null +++ b/configs/testkeys/ident3/peerid.txt @@ -0,0 +1 @@ +12D3KooWDQrRTPyYGMtNigi4giFuN2mGSrVwz5CfqGeaz8vVJKTG \ No newline at end of file diff --git a/configs/testkeys/ident3/priv.bin b/configs/testkeys/ident3/priv.bin new file mode 100644 index 00000000..72dea452 --- /dev/null +++ b/configs/testkeys/ident3/priv.bin @@ -0,0 +1,2 @@ +@PB g7{}`仌bGc5y +5h9ϼJqX}s-D8GC \ No newline at end of file diff --git a/configs/testkeys/ident3/pub.bin b/configs/testkeys/ident3/pub.bin new file mode 100644 index 00000000..b55d4d63 --- /dev/null +++ b/configs/testkeys/ident3/pub.bin @@ -0,0 +1 @@ + 5h9ϼJqX}s-D8GC \ No newline at end of file diff --git a/configs/testkeys/ident3/pubkey.txt b/configs/testkeys/ident3/pubkey.txt new file mode 100644 index 00000000..666e7ebc --- /dev/null +++ b/configs/testkeys/ident3/pubkey.txt @@ -0,0 +1 @@ +CAESIDVowTm5z7xKH+Fx+P+yWL2gfXO6+C3CRAjooxc4R9hD \ No newline at end of file diff --git a/configs/testkeys/ident4/identity b/configs/testkeys/ident4/identity new file mode 100644 index 00000000..f426cb89 --- /dev/null +++ b/configs/testkeys/ident4/identity @@ -0,0 +1 @@ +12D3KooWQMjaFg6nypNHiahyzG7L3Vpgod9NfBxrUbj1n25KycKA \ No newline at end of file diff --git a/configs/testkeys/ident4/peerid.txt b/configs/testkeys/ident4/peerid.txt new file mode 100644 index 00000000..f426cb89 --- /dev/null +++ b/configs/testkeys/ident4/peerid.txt @@ -0,0 +1 @@ +12D3KooWQMjaFg6nypNHiahyzG7L3Vpgod9NfBxrUbj1n25KycKA \ No newline at end of file diff --git a/configs/testkeys/ident4/priv.bin b/configs/testkeys/ident4/priv.bin new file mode 100644 index 00000000..013961ca --- /dev/null +++ b/configs/testkeys/ident4/priv.bin @@ -0,0 +1 @@ +@rW,BKYts8P۝]