Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(engine)!: determinism bug with log entries #926

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Feb 1, 2024

Description

Remove timestamp from LogEntry to fix determinism bug in txreceipt
Removed timestamp from UI

Motivation and Context

Initially logs were not part of any substate, but these are added in TxReceipt. Logs contained a timestamp based on the local clock of the VN.

This PR removes the timestamp, ordering is maintained by the Vec.

How Has This Been Tested?

Not explicitly tested. This caused Merkle root mismatches in #924

What process can a PR reviewer use to test or verify this change?

Check that tx receipt does not have local time in it

Breaking Changes

  • None
  • Requires data directory to be deleted
  • Other - Please specify

@sdbondi sdbondi force-pushed the engine-fix-determinism-bug-tx-receipt branch from 4a20fd6 to 3a7ea47 Compare February 1, 2024 11:35
Cifko
Cifko previously approved these changes Feb 1, 2024
Copy link

github-actions bot commented Feb 1, 2024

Test Results (CI)

447 tests  ±0   447 ✅ ±0   1h 54m 37s ⏱️ - 56m 6s
 57 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit 4cb867c. ± Comparison against base commit b526c09.

♻️ This comment has been updated with latest results.

@sdbondi sdbondi added this pull request to the merge queue Feb 2, 2024
Merged via the queue into tari-project:development with commit 76d052c Feb 2, 2024
12 checks passed
@sdbondi sdbondi deleted the engine-fix-determinism-bug-tx-receipt branch February 2, 2024 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants