Fix sync error: use block_data['height'] instead of undefined height variable
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 3s
Integration Tests / test-service-integration (push) Failing after 10s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 4s
Python Tests / test-python (push) Successful in 29s
Security Scanning / security-scan (push) Has been cancelled

This commit is contained in:
aitbc
2026-04-22 13:41:06 +02:00
parent f36fd45d28
commit 941fff1b9d
3 changed files with 75 additions and 1 deletions

View File

@@ -380,7 +380,7 @@ class ChainSync:
if computed_root != expected_root:
logger.warning(
f"[SYNC] State root mismatch at height {height}: "
f"[SYNC] State root mismatch at height {block_data['height']}: "
f"expected {expected_root.hex()}, computed {computed_root.hex()}"
)
# For now, log warning but accept block (to be enforced in Phase 1.3)