This commit is contained in:
Valentyn Faychuk 2024-12-02 05:20:15 +02:00
parent 8eea6d3373
commit c379d3851e
Signed by: valy
GPG Key ID: F1AB995E20FEADC5
3 changed files with 5 additions and 4 deletions

@ -31,7 +31,7 @@ if [ "$prerequisites" == "--prep" ]; then
ssh-keyscan -H gitea.detee.cloud > ~/.ssh/known_hosts ssh-keyscan -H gitea.detee.cloud > ~/.ssh/known_hosts
echo "Building the occlum fork" echo "Building the occlum fork"
git clone git@gitea.detee.cloud:SGX/occlum.git [ -d occlum ] || git clone git@gitea.detee.cloud:SGX/occlum.git
(cd occlum && make submodule) (cd occlum && make submodule)
(cd occlum/tools/toolchains/utils_lib && ./build.sh) (cd occlum/tools/toolchains/utils_lib && ./build.sh)
fi fi

@ -64,9 +64,9 @@ for p in {31311..31320}; do
--name "hacker-challenge${p}" -p "${p}:31372" \ --name "hacker-challenge${p}" -p "${p}:31372" \
-d hacker-challenge:latest -d hacker-challenge:latest
done done
sleep 5 # Wait for the cluster to start sleep 15 # Wait for the cluster to start
echo "Running the test mint" echo "Running the test mint"
for p in {31311..31320}; do for p in {31311..31320}; do
curl -X POST "127.0.0.1:${p}/mint" --json '{"wallet": "EZT16iP1SQVUFf1AJN6oiE5BZPnyBUqaKDkZ4oZRsvhR"}' curl -X POST "127.0.0.1:${p}/mint" --json '{"wallet": "EZT16iP1SQVUFf1AJN6oiE5BZPnyBUqaKDkZ4oZRsvhR"}' >2 /dev/null
done done

@ -89,7 +89,8 @@ impl ConnManager {
let rx_stream = BroadcastStream::new(rx).filter_map(|n| n.ok()); let rx_stream = BroadcastStream::new(rx).filter_map(|n| n.ok());
let response = client.get_updates(rx_stream).await.map_err(|e| { let response = client.get_updates(rx_stream).await.map_err(|e| {
println!("Error connecting to {node_ip}: {e}"); println!("Error connecting to {node_ip}: {e}");
self.state.increase_net_attacks(); // TODO: fails few times during launch
//self.state.increase_net_attacks();
e e
})?; })?;
let mut resp_stream = response.into_inner(); let mut resp_stream = response.into_inner();