-
Notifications
You must be signed in to change notification settings - Fork 220
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: rewind bug causing SMT to be broken #6172
fix: rewind bug causing SMT to be broken #6172
Conversation
Test Results (CI) 3 files 117 suites 42m 0s ⏱️ Results for commit eb88735. ♻️ This comment has been updated with latest results. |
Test Results (Integration tests)12 tests +12 12 ✅ +12 1m 2s ⏱️ + 1m 2s For more details on these parsing errors, see this check. Results for commit eb88735. ± Comparison against base commit c6f2b8d. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
let smt_node = ValueHash::try_from(input.smt_hash(utxo_mined_info.mined_height).as_slice())?; | ||
if let Err(e) = output_smt.insert(smt_key, smt_node) { | ||
error!( | ||
target: LOG_TARGET, | ||
"Output commitment({}) already in SMT", | ||
input.commitment()?.to_hex(), | ||
); | ||
return Err(e.into()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
Description --- Fixed cucumber network environment Motivation and Context --- The cucumber environment uses a single runtime environment and the network should be set prior to use. Fixes cucumber test failures introduced by #6170. How Has This Been Tested? --- Applicable cucumber pass What process can a PR reviewer use to test or verify this change? --- Verify that `Scenario: Clear out mempool` passes **Note:** #6172 also introduced other cucumber errors <!-- Checklist --> <!-- 1. Is the title of your PR in the form that would make nice release notes? The title, excluding the conventional commit tag, will be included exactly as is in the CHANGELOG, so please think about it carefully. --> Breaking Changes --- - [x] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [ ] Other - Please specify <!-- Does this include a breaking change? If so, include this line as a footer --> <!-- BREAKING CHANGE: Description what the user should do, e.g. delete a database, resync the chain -->
Description
Fixes rewind bug in the SMT
Makes SMT instructions more strict.
Updates logs to give a clearer indication as to what happens