-
-
Notifications
You must be signed in to change notification settings - Fork 368
Tests: stabilize Spark mint-spend state #1942
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ | |
| #include "ui_interface.h" | ||
| #include "rpc/server.h" | ||
| #include "rpc/register.h" | ||
| #include "spark/state.h" | ||
|
|
||
| #include "test/testutil.h" | ||
| #include "test/fixtures.h" | ||
|
|
@@ -313,5 +314,5 @@ CTransaction SparkTestingSetup::GenerateSparkSpend( | |
|
|
||
| SparkTestingSetup::~SparkTestingSetup() | ||
| { | ||
| pwalletMain->sparkWallet->FinishTasks(); | ||
| } | ||
| spark::CSparkState::GetState()->Reset(); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: Assessment: 🟠 Prompt for AI Agent 🤖This is a comment left during a code review.
**Path:** src/test/fixtures.cpp
**Line:** 317:317
**Comment:**
*Stale Reference: `Reset()` leaves `ltagTxhash` and `extendedMintMetaInfo` populated, so later Spark tests can inherit stale global indexes despite this fixture cleanup.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This correct, but preexisting and not related to this. Will send separate pr. |
||
| } | ||
|
navidR marked this conversation as resolved.
|
||
Uh oh!
There was an error while loading. Please reload this page.