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
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user