Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

이준혁 학생이 작업한 P2P module branch 정리 #119

Merged
merged 15 commits into from
Jan 7, 2021
20 changes: 12 additions & 8 deletions deprecated/plugins/blockchain-peer/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# How to compile
# Main dir to generate plugin-binary
# How to compile workplace: as below

Run the following commands.
```
mkdir build
cd build
cmake ../
make
```
1. Run the following commands

```````````````````
mkdir build
cd build
cmake ../
make
```````````````````

2. go to "workplace" dir inside build
3. use "libNODE.so" as plugin -> cp libNODE.so to Evaluation dir
6 changes: 3 additions & 3 deletions deprecated/test/BLEEP/test-rc1-gossip-recovery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ $# -eq 1 ]; then
n=`expr $1 + 1`
python test-rc1-gossip-recovery.py --nodenum $1
python print_log.py $n rc1-gossip-datadir PEER
python invariant_network_graph.py $n
python python-script/test-rc1-gossip-recovery.py --nodenum $1
python python-script/print_log.py $n rc1-gossip-datadir PEER
python python-script/network_graph.py $n
fi
6 changes: 3 additions & 3 deletions deprecated/test/BLEEP/test-rc1-membership-stretch.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [ $# -eq 1 ]; then
python test-rc1-membership-stretch.py --nodenum $1
python print_log.py $1 rc1-gossip-datadir PEER
python invariant_network_graph.py $1
python python-script/test-rc1-membership-stretch.py --nodenum $1
python python-script/print_log.py $1 rc1-gossip-datadir PEER
python python-script/network_graph.py $1
fi
6 changes: 3 additions & 3 deletions deprecated/test/BLEEP/test-rc1-network-recovery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ $# -eq 1 ]; then
n=`expr $1 + 2`
python test-rc1-network-recovery.py --nodenum $1
python print_log.py $n rc1-gossip-datadir PEER
python invariant_network_graph.py $n
python python-script/test-rc1-network-recovery.py --nodenum $1
python python-script/print_log.py $n rc1-gossip-datadir PEER
python python-script/network_graph.py $n
fi
12 changes: 5 additions & 7 deletions deprecated/test/BLEEP/test-rc1-network.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#!/bin/bash

if [ $# -eq 1 ]; then
python test-rc1-network.py --nodenum $1
#python print_log.py $1 rc1-datadir PEER
python invariant_network_graph.py $1
python python-script/test-rc1-network.py --nodenum $1
python python-script/network_graph.py $1

elif [ $# -eq 2 ]; then
n=`expr $1 + 1`
python test-rc1-network.py --nodenum $1 $2
#python print_log.py $n rc1-datadir PEER
python invariant_network_graph.py $n
python invariant_blockchain_graph.py $1 rc1-datadir
python python-script/test-rc1-network.py --nodenum $1 $2
python python-script/network_graph.py $n
python python-script/blockchain_graph.py $1 rc1-datadir

else
echo "Invalid Arguments"
Expand Down
6 changes: 3 additions & 3 deletions deprecated/test/BLEEP/test-rc1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

if [ $# -eq 1 ]; then
n=`expr $1 + 1`
python test-rc1.py --nodenum $1
python invariant_network_graph_proxy.py $n
python invariant_blockchain_graph.py $n rc1-datadir
python python-script/test-rc1.py --nodenum $1
python python-script/network_graph_proxy.py $n
python python-script/blockchain_graph.py $n rc1-datadir
else
echo "Invalid Arguments"
exit 0
Expand Down