mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-10 01:59:28 +00:00
debug
This commit is contained in:
parent
35b7712b12
commit
d96e7aed68
@ -17,6 +17,20 @@ curl -sf "${CFG_SERVER_ADDR}/deployment-settings" -o /deployment-settings.yaml
|
|||||||
# Single-node test setup: bump slot_activation_coeff from 1/10 to 1/2 so blocks
|
# Single-node test setup: bump slot_activation_coeff from 1/10 to 1/2 so blocks
|
||||||
# (and LIB) advance ~5x faster, keeping the indexer integration test within budget.
|
# (and LIB) advance ~5x faster, keeping the indexer integration test within budget.
|
||||||
# Safe with 1 node since there are no reorgs.
|
# Safe with 1 node since there are no reorgs.
|
||||||
sed -i '/slot_activation_coeff:/{n;n;s/denominator: 10/denominator: 2/}' /deployment-settings.yaml
|
# Range-based sed: within the 4 lines after `slot_activation_coeff:`, rewrite any
|
||||||
|
# `denominator: <num>` to `denominator: 2` regardless of field order or spacing.
|
||||||
|
sed -i '/slot_activation_coeff:/,+4 s/denominator: [0-9]\+/denominator: 2/' /deployment-settings.yaml
|
||||||
|
|
||||||
|
# Lower security_param so finalization (LIB) lag is shorter — the indexer only
|
||||||
|
# sees finalized blocks, so a smaller security_param makes inscriptions visible
|
||||||
|
# to the indexer much sooner.
|
||||||
|
sed -i 's/security_param: [0-9]\+/security_param: 10/' /deployment-settings.yaml
|
||||||
|
|
||||||
|
# Verify the patches took effect (printed to container stdout for debugging).
|
||||||
|
echo "=== slot_activation_coeff after sed ==="
|
||||||
|
sed -n '/slot_activation_coeff:/,+4 p' /deployment-settings.yaml
|
||||||
|
echo "=== security_param after sed ==="
|
||||||
|
grep 'security_param' /deployment-settings.yaml
|
||||||
|
echo "======================================="
|
||||||
|
|
||||||
exec /usr/bin/logos-blockchain-node /config.yaml --deployment /deployment-settings.yaml
|
exec /usr/bin/logos-blockchain-node /config.yaml --deployment /deployment-settings.yaml
|
||||||
|
|||||||
@ -45,13 +45,12 @@ async fn wait_for_indexer_to_catch_up(ctx: &TestContext) -> u64 {
|
|||||||
tokio::time::sleep(Duration::from_secs(2)).await;
|
tokio::time::sleep(Duration::from_secs(2)).await;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
match tokio::time::timeout(timeout, inner).await {
|
tokio::time::timeout(timeout, inner)
|
||||||
Ok(ind) => ind,
|
.await
|
||||||
Err(_) => {
|
.unwrap_or_else(|_| {
|
||||||
info!("Indexer catch-up timed out: ind={last_ind}");
|
info!("Indexer catch-up timed out: ind={last_ind}");
|
||||||
last_ind
|
last_ind
|
||||||
}
|
})
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user