Skip to content

Commit 1c10e62

Browse files
JuArceentropidelic
andauthored
fix: minor issues on scripts (#575)
Co-authored-by: Mariano A. Nicolini <mariano.nicolini.91@gmail.com>
1 parent 232a199 commit 1c10e62

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

alerts/process_errors_alerts.sh

100644100755
File mode changed.

batcher/aligned-batcher/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,13 @@ impl Batcher {
384384

385385
{
386386
let mut last_uploaded_batch_block = self.last_uploaded_batch_block.lock().await;
387-
self.submit_batch(&batch_bytes, &batch_merkle_tree.root, submitter_addresses)
388-
.await;
389387
// update last uploaded batch block
390388
*last_uploaded_batch_block = block_number;
389+
info!("Batch Finalizer: Last uploaded batch block updated to: {}. Lock unlocked", block_number);
391390
}
391+
// Moving this outside the previous scope is a hotfix until we merge https://github.com/yetanotherco/aligned_layer/pull/365
392+
self.submit_batch(&batch_bytes, &batch_merkle_tree.root, submitter_addresses)
393+
.await;
392394

393395
if !wait_for_verification {
394396
send_batch_inclusion_data_responses(finalized_batch, &batch_merkle_tree).await;

batcher/aligned/generate_proof_and_send.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Check that USER_PRIVATE_KEY is not empty
4-
if [[ "$USER_PRIVATE_KEY" -eq "" ]]; then
4+
if [[ -z "$USER_PRIVATE_KEY" ]]; then
55
echo "USER_PRIVATE_KEY is empty, using default value 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
66
USER_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
77
fi;

batcher/aligned/send_burst_tasks.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ fi
2626

2727
while true
2828
do
29-
# Run in backaground to be able to run onece per second, and not wait for the previous one to finish
30-
./batcher/aligned/generate_proof_and_send.sh $counter $burst &
29+
# Run in backaground to be able to run onece per second, and not wait for the previous one to finish
30+
. ./batcher/aligned/generate_proof_and_send.sh $counter $burst &
3131
sleep 1
3232
counter=$((counter + 1))
3333
done

0 commit comments

Comments
 (0)