dash/src/llmq
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
..
blockprocessor.cpp fix: Resolve mainnet v19 fork issues (#5403) 2023-06-04 23:45:56 +03:00
blockprocessor.h Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
chainlocks.cpp fix: do not check chainlock state in IsTxSafeForMining (#5444) 2023-06-20 22:49:41 -05:00
chainlocks.h refactor: using reference instead reference to unique_ptr with object (#5381) 2023-06-04 15:26:23 -05:00
clsig.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
clsig.h chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
commitment.cpp Merge #15921: validation: Tidy up ValidationState interface 2023-04-17 10:42:25 -05:00
commitment.h Merge #15921: validation: Tidy up ValidationState interface 2023-04-17 10:42:25 -05:00
context.cpp refactor: using reference instead reference to unique_ptr with object (#5381) 2023-06-04 15:26:23 -05:00
context.h merge bitcoin#19791: Move Misbehaving() to PeerManager 2023-05-11 09:19:47 -05:00
debug.cpp merge bitcoin#20749: Prune g_chainman usage related to ::LookupBlockIndex 2023-04-04 12:41:45 -05:00
debug.h Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
dkgsession.cpp refactor: deglobalization of bls_legacy_scheme 2/N (#5443) 2023-06-30 19:27:39 -05:00
dkgsession.h refactor: deglobalization of bls_legacy_scheme 2/N (#5443) 2023-06-30 19:27:39 -05:00
dkgsessionhandler.cpp merge bitcoin#19791: Move Misbehaving() to PeerManager 2023-05-11 09:19:47 -05:00
dkgsessionhandler.h Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
dkgsessionmgr.cpp merge bitcoin#19791: Move Misbehaving() to PeerManager 2023-05-11 09:19:47 -05:00
dkgsessionmgr.h Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
instantsend.cpp merge bitcoin#21789: Remove ::Params() global from CChainState 2023-06-06 22:38:56 +05:30
instantsend.h refactor: using reference instead reference to unique_ptr with object (#5381) 2023-06-04 15:26:23 -05:00
params.h docs: wrong threshold for LLMQ_25_67 (#5358) 2023-05-04 23:33:47 -05:00
quorums.cpp Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
quorums.h Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
signing_shares.cpp fix: Resolve mainnet v19 fork issues (#5403) 2023-06-04 23:45:56 +03:00
signing_shares.h Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
signing.cpp merge bitcoin#19791: Move Misbehaving() to PeerManager 2023-05-11 09:19:47 -05:00
signing.h fix: Resolve mainnet v19 fork issues (#5403) 2023-06-04 23:45:56 +03:00
snapshot.cpp merge bitcoin#20749: Prune g_chainman usage related to ::LookupBlockIndex 2023-04-04 12:41:45 -05:00
snapshot.h Merge #17891: scripted-diff: Replace CCriticalSection with RecursiveMutex 2023-05-24 12:43:57 -05:00
utils.cpp fix: off-by-one in the way we use v19 activation helpers (#5431) 2023-06-13 17:24:19 +03:00
utils.h fix: off-by-one in the way we use v19 activation helpers (#5431) 2023-06-13 17:24:19 +03:00