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

Remove Require from governance attributes #1819

Merged
merged 2 commits into from
Mar 15, 2023
Merged

Conversation

Bushstar
Copy link
Member

@Bushstar Bushstar commented Mar 14, 2023

To improve performance Require logic was removed from some of the hotpaths earlier and also converted to lambas for lazy evaluation of the error code path.

However this has defeated the rationale for introduction in the first place making it verbose and noisy. So, to keep with one convention through the code base, this PR continues the removal of Require.

Area: Gov Var Attributes

Jouzo
Jouzo previously approved these changes Mar 14, 2023
@prasannavl prasannavl requested a review from DocteurPing March 15, 2023 00:46
src/masternodes/errors.h Outdated Show resolved Hide resolved
src/masternodes/errors.h Outdated Show resolved Hide resolved
@prasannavl
Copy link
Member

Logic LGTM. Let's fix @DocteurPing's catch and go ahead.

@prasannavl prasannavl changed the title Remove require from ATTRIBUTES Remove Require from governance attributes Mar 15, 2023
@prasannavl prasannavl added the v/next-release Items ready or targeted for upcoming release(s) label Mar 15, 2023
@prasannavl prasannavl merged commit 91e3e92 into master Mar 15, 2023
@prasannavl prasannavl deleted the govvar-no-require branch March 15, 2023 03:30
Mixa84 pushed a commit to Mixa84/ain that referenced this pull request Mar 17, 2023
* Remove require from ATTRIBUTES

* Fix format of errors for strings

---------

Co-authored-by: cedric ogire <[email protected]>
@dcorral dcorral mentioned this pull request Mar 17, 2023
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v/next-release Items ready or targeted for upcoming release(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants