dash/src/governance
Konstantin Akimov 07fd889be9
refactor: deglobalization of bls_legacy_scheme 2/N (#5443)
## Issue being fixed or feature implemented
Many usages of `CBLS{Signature,PrivateKey,PublicKey}` assume using
global variable, even if can be specified explicitly.
Some of these usages have been deglobalized in this PR.

Some prior improvements and fixes are here:
[#5403](https://github.com/dashpay/dash/pull/5403)

## What was done?
- Refactored the uses of global variable of `bls_legacy_scheme` from
`SetHex`, `SetByteVector`, some rpc calls.
- Removed flag `checkMalleable` to simplify code because it's always
`true`.
- Removed dependency from `txmempool.h` on `bls.h` to speed up
compilation.

## How Has This Been Tested?
Run unit/functional tests.



## Breaking Changes
No breaking changes assumed. But in theory behaviour of some RPC can be
more explicit and predictable.

## Checklist:
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have added or updated relevant unit/integration/functional/e2e
tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone
2023-06-30 19:27:39 -05:00
..
classes.cpp chore: harden dip 20 and 24 activation (#5344) 2023-05-17 14:11:33 +03:00
classes.h refactor: use enums instead of random const ints (#5322) 2023-04-16 12:09:37 -05:00
exceptions.h
governance.cpp chore: harden dip 20 and 24 activation (#5344) 2023-05-17 14:11:33 +03:00
governance.h Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
object.cpp refactor: deglobalization of bls_legacy_scheme 2/N (#5443) 2023-06-30 19:27:39 -05:00
object.h Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
validators.cpp refactor: use enums instead of random const ints (#5322) 2023-04-16 12:09:37 -05:00
validators.h chore: harden dip 20 and 24 activation (#5344) 2023-05-17 14:11:33 +03:00
vote.cpp refactor: deglobalization of bls_legacy_scheme 2/N (#5443) 2023-06-30 19:27:39 -05:00
vote.h chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
votedb.cpp
votedb.h