neobytes/src/bls
Alexander Block 18950f923e Optimize DKG debug message processing for performance and lower bandwidth (#2672)
* Allow sub-batch verification in CBLSInsecureBatchVerifier

* Implement batch verification of CDKGDebugStatus messages

* Use uint8_t for statusBitset in CDKGDebugMemberStatus and CDKGDebugSessionStatus

No need to waste one byte per member and per LLMQ type.

* Reserve 4k of buffer for CSerializedNetMsg buffer

Profiling has shown that a lot of time is spent in resizing the data
vector when large messages are involved.

* Remove nHeight from CDKGDebugStatus

This field changes every block and causes all masternodes to propagate
its status for every block, even if nothing DKG related has changed.

* Leave out session statuses when we're not a member of that session

Otherwise MNs which are not members of DKG sessions will spam the network

* Remove receivedFinalCommitment from CDKGDebugSessionStatus

This is not bound to a session and thus is prone to spam the network when
final commitments are propagated in the finalization phase.

* Add "minableCommitments" to "quorum dkgstatus"

* Hold cs_main while calling GetMinableCommitment

* Abort processing of pending debug messages when spork18 gets disabled

* Don't ask for debug messages when we've already seen them

"statuses" only contains the current messages but none of the old messages,
so nodes kept re-requesting old messages.
2019-02-01 10:49:01 +03:00
..
bls_batchverifier.h Optimize DKG debug message processing for performance and lower bandwidth (#2672) 2019-02-01 10:49:01 +03:00
bls_ies.cpp Move bls stuff from crypto/ to bls/ 2018-10-12 19:39:26 +02:00
bls_ies.h Move bls stuff from crypto/ to bls/ 2018-10-12 19:39:26 +02:00
bls_worker.cpp Move bls stuff from crypto/ to bls/ 2018-10-12 19:39:26 +02:00
bls_worker.h Move bls stuff from crypto/ to bls/ 2018-10-12 19:39:26 +02:00
bls.cpp Reintroduce BLSInit to correctly set secure alloctor callbacks (#2543) 2018-12-10 06:04:48 +01:00
bls.h Allow to skip malleability check when deserializing BLS primitives 2019-01-09 12:16:11 +01:00