Skip to content

Commit 7a30343

Browse files
committed
update service files
update yaml template
1 parent 5b16aa9 commit 7a30343

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

infra/aggregation_mode/aggregation_mode.service

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ Type=oneshot
77
WorkingDirectory=/home/user
88
ExecStartPre=sleep 60
99
ExecStart=/home/user/.cargo/bin/proof_aggregator /home/user/config/config-proof-aggregator.yaml
10-
ExecStartPost=/home/user/repos/proof_aggregation/aligned_layer/infra/aggregation_mode/aggregation_mode_shutdown.sh
11-
RemainAfterExit=yes
1210
Environment="SP1_PROVER=cuda"
13-
EnvironmentFile=/home/app/config/.env.aggregation_mode_shutdown
1411

1512
[Install]
1613
WantedBy=multi-user.target

infra/aggregation_mode/aggregation_mode.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ cd
100100
# Create keystore
101101
cast wallet import proof_aggregation.keystore -k $HOME/.keystores -i
102102

103-
# Copy config file
104-
#cp repos/proof_aggregation/aligned_layer/config-files/config-proof-aggregator.yaml config/config-proof-aggregator.yaml
103+
# Create config file interactively
105104
$HOME/repos/proof_aggregation/aligned_layer/infra/aggregation_mode/config_file.sh $HOME/repos/proof_aggregation/aligned_layer/infra/aggregation_mode/config-proof-aggregator.template.yaml
105+
read -p "Enter a number (last_aggregated_block): " num && echo "{\"last_aggregated_block\":$num}" > $HOME/config/proof-aggregator.last_aggregated_block.json.test
106106

107107
# Build the proof_aggregator
108108
cd repos/proof_aggregation/aligned_layer
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[Unit]
22
Description=AggregationMode Timer
3-
Requires=aggregation_mode_start.service
3+
Requires=aggregation_mode.service
44

55
[Timer]
66
Unit=aggregation_mode.service
77
AccuracySec=1s
8-
OnCalendar=16:55
8+
# Run at 15:00 UTC (12:00 UTC-3) every day
9+
OnCalendar=15:00
910

1011
[Install]
1112
WantedBy=timers.target

infra/aggregation_mode/config_file.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ prompt_and_replace "<aligned_service_manager_address>" "Aligned Service Manager
3232
prompt_and_replace "<proof_aggregation_service_address>" "Proof Aggregation Service Address"
3333
prompt_and_replace "<eth_rpc_url>" "Ethereum RPC URL"
3434
prompt_and_replace "<eth_ws_url>" "Ethereum WebSocket URL"
35+
prompt_and_replace "last_aggregated_block_filepath" "Last Aggregated Block Filepath"
3536
prompt_and_replace "<private_key_store_path>" "ECDSA Private Key Store Path"
3637
prompt_and_replace "<private_key_store_password>" "ECDSA Private Key Store Password"
3738

0 commit comments

Comments
 (0)