forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't delete/add values to the unique property map when it's null (#2538
) * Don't delete/add values to the unique property map when it's null This happens when revoking operator keys, as the revoked MN will then have the address and operator keys set to the null representation. We shouldn't add the null value to the unique property map as otherwise future revokes crash in an assert. * Assert that no null values are passed to Add/DeleteUniqueProperty * Check for null values before calling Add/DeleteUniqueProperty * Apply suggestions from code review Co-Authored-By: codablock <[email protected]> * Add user generated default constructors to BLS primitives Fixes build issues on Mac: In file included from evo/deterministicmns.cpp:5: ./evo/deterministicmns.h:375:24: error: default initialization of an object of const type 'const CBLSPublicKey' without a user-provided default constructor static const T nullValue; ^
- Loading branch information
Showing
3 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters