mirror of
https://github.com/vacp2p/research.git
synced 2025-02-23 03:38:18 +00:00
Basic scripts to run on right ports with logfile, update README
This commit is contained in:
parent
7cd6fefeab
commit
5c6f2bfd5c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
sync_pb2.pyc
|
||||
*.tmp
|
||||
.data*
|
||||
*.log
|
||||
|
@ -68,7 +68,16 @@ Ok we have two (hardcoded) independent, locally running Geth nodes with swarm se
|
||||
Received message Hello world from 307830346335363133316438646564393065373962373662393766323665386663303332353937383836666636386162363535376639316334626631616534366561623934343135633664663330626236343739636634306638313139373762623262323337373837663562383037643937313931663761393934613535383633336530
|
||||
```
|
||||
|
||||
Next steps?
|
||||
### How to run
|
||||
```
|
||||
# Run receiver
|
||||
./scripts/run-bob
|
||||
|
||||
# Run sender
|
||||
./scripts/run-alice
|
||||
```
|
||||
|
||||
### Next steps?
|
||||
- Put logs elsewhere
|
||||
- Allow send and receive from both (bg subscribe)?
|
||||
- Allow interactive message send?
|
||||
|
5
hello-pss/scripts/run-alice
Executable file
5
hello-pss/scripts/run-alice
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
echo "[Running alice with key alice.key on port 9600 and logs in alice.log.]"
|
||||
go run hello_pss.go alice.key 9600 2> alice.log
|
||||
echo "[Done.]"
|
5
hello-pss/scripts/run-bob
Executable file
5
hello-pss/scripts/run-bob
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
echo "[Running bob with key bob.key on port 9601 and logs in bob.log.]"
|
||||
go run hello_pss.go bob.key 9601 2> bob.log
|
||||
echo "[Done.]"
|
Loading…
x
Reference in New Issue
Block a user