neobytes/src/llmq
Alexander Block 03fa115503 Speed up CQuorumManager::ScanQuorums (#2677)
* Store quorumHash of first mined commitment in evoDb

This allows to skip scanning for quorums below this block.

* Speed up CQuorumManager::ScanQuorums

This does 2 things:
1. Only call HasQuorum for blocks that are potentially a quorumBlockHash
   These are only blocks which are at index 0 of each DKG interval
2. Stop scanning for quorums when we get below the first block that
   contained a commitment. If no commitment was ever mined, we bail out
   immediately.

* Return result instead of {}

* Remove HasQuorum() call as GetQuorum already does this

* Remove unnecessary "if (!qc.IsNull()))"

It's already checked at the top of the loop

* When necessary, remove DB_FIRST_MINED_COMMITMENT from evoDb in UndoBlock
2019-02-02 03:08:51 +03:00
..
quorums_blockprocessor.cpp Speed up CQuorumManager::ScanQuorums (#2677) 2019-02-02 03:08:51 +03:00
quorums_blockprocessor.h Speed up CQuorumManager::ScanQuorums (#2677) 2019-02-02 03:08:51 +03:00
quorums_chainlocks.cpp Rename inInvalidate->inEnforceBestChainLock and make it atomic 2019-01-28 12:24:15 +01:00
quorums_chainlocks.h Rename inInvalidate->inEnforceBestChainLock and make it atomic 2019-01-28 12:24:15 +01:00
quorums_commitment.cpp Deserialize CFinalCommitmentTxPayload instead of CFinalCommitment in TxToJSON (#2510) 2018-11-29 21:51:04 +03:00
quorums_commitment.h Deserialize CFinalCommitmentTxPayload instead of CFinalCommitment in TxToJSON (#2510) 2018-11-29 21:51:04 +03:00
quorums_debug.cpp Optimize DKG debug message processing for performance and lower bandwidth (#2672) 2019-02-01 10:49:01 +03:00
quorums_debug.h Optimize DKG debug message processing for performance and lower bandwidth (#2672) 2019-02-01 10:49:01 +03:00
quorums_dkgsession.cpp Optimize DKG debug message processing for performance and lower bandwidth (#2672) 2019-02-01 10:49:01 +03:00
quorums_dkgsession.h update copyright (#2648) 2019-01-29 15:53:14 +01:00
quorums_dkgsessionhandler.cpp Multiple fixes for LLMQs and BLS batch verification (#2674) 2019-02-01 12:07:21 +03:00
quorums_dkgsessionhandler.h update copyright (#2648) 2019-01-29 15:53:14 +01:00
quorums_dkgsessionmgr.cpp Drop cs_main from UpdatedBlockTip in CDKGSessionManager/CDKGSessionHandler (#2655) 2019-01-29 15:55:18 +01:00
quorums_dkgsessionmgr.h Implement LLMQ DKG 2019-01-09 12:16:12 +01:00
quorums_init.cpp Merge pull request #2643 from codablock/pr_llmq_chainlocks 2019-01-29 15:59:05 +01:00
quorums_init.h update copyright (#2648) 2019-01-29 15:53:14 +01:00
quorums_signing_shares.cpp Optimize DKG debug message processing for performance and lower bandwidth (#2672) 2019-02-01 10:49:01 +03:00
quorums_signing_shares.h update copyright (#2648) 2019-01-29 15:53:14 +01:00
quorums_signing.cpp Multiple fixes for LLMQs and BLS batch verification (#2674) 2019-02-01 12:07:21 +03:00
quorums_signing.h Merge pull request #2643 from codablock/pr_llmq_chainlocks 2019-01-29 15:59:05 +01:00
quorums_utils.cpp update copyright (#2648) 2019-01-29 15:53:14 +01:00
quorums_utils.h update copyright (#2648) 2019-01-29 15:53:14 +01:00
quorums.cpp Speed up CQuorumManager::ScanQuorums (#2677) 2019-02-02 03:08:51 +03:00
quorums.h Merge pull request #2643 from codablock/pr_llmq_chainlocks 2019-01-29 15:59:05 +01:00