Skip to content

Commit 98ec7d7

Browse files
Updated corrRNG native mode example to run again. Included fixing reading config file, and starting simulaqron differently
1 parent 1a55555 commit 98ec7d7

File tree

3 files changed

+29
-13
lines changed

3 files changed

+29
-13
lines changed

examples/nativeMode/corrRNG/classicalNet.cfg

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"default": {
3+
"nodes": {
4+
"Alice": {
5+
"app_socket": ["localhost", 8821],
6+
"qnodeos_socket": ["localhost", 8822],
7+
"vnode_socket": ["localhost", 8823]
8+
},
9+
"Bob": {
10+
"app_socket": ["localhost", 8831],
11+
"qnodeos_socket": ["localhost", 8832],
12+
"vnode_socket": ["localhost", 8833]
13+
}
14+
},
15+
"topology": null
16+
}
17+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env sh
2+
TEST_PIDS=$(ps aux | grep python | grep -E "Test" | awk {'print $2'})
3+
if [ "$TEST_PIDS" != "" ]
4+
then
5+
kill -9 $TEST_PIDS
6+
fi
7+
8+
# Check if SimulaQron is running
9+
if [ -f ~/.simulaqron_pids/simulaqron_network_default.pid ]; then
10+
cat $HOME/.simulaqron_pids/simulaqron_network_default.pid | xargs kill -9
11+
fi
12+

0 commit comments

Comments
 (0)