Skip to content

fix: avoid calling functions that change wallet state inside of assert(...) - #6123

Merged
PastaPastaPasta merged 1 commit into
dashpay:developfrom
UdjinM6:fix_asserts
Jul 20, 2024
Merged

fix: avoid calling functions that change wallet state inside of assert(...)#6123
PastaPastaPasta merged 1 commit into
dashpay:developfrom
UdjinM6:fix_asserts

Conversation

@UdjinM6

@UdjinM6 UdjinM6 commented Jul 17, 2024

Copy link
Copy Markdown

Issue being fixed or feature implemented

Functions that change the state should not be called inside asserts

kudos to @kwvg for noticing #6116 (comment)

What was done?

Move them out

How Has This Been Tested?

Breaking Changes

n/a

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

@kwvg kwvg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, utACK 121c032

@knst knst left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 121c032

@PastaPastaPasta

Copy link
Copy Markdown
Member

Looks fine; should we backport this or don't bother?

@knst

knst commented Jul 18, 2024

Copy link
Copy Markdown
Collaborator

Looks fine; should we backport this or don't bother?

it woks years, maybe even 10 years. I don't feel like necessary to backport

@UdjinM6
UdjinM6 requested a review from PastaPastaPasta July 19, 2024 23:24

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 121c032

@PastaPastaPasta
PastaPastaPasta merged commit 914a505 into dashpay:develop Jul 20, 2024
@UdjinM6 UdjinM6 added this to the 21.1 milestone Jul 23, 2024
@UdjinM6 UdjinM6 modified the milestones: 21.1, 21.2 Aug 8, 2024
@UdjinM6 UdjinM6 modified the milestones: 21.2, 22 Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants