dash/src/rpc
Odysseas Gabrielides f0009acfae
feat(rpc): Added previousConsecutiveDKGFailures for rotation in quorum rpc (#5158)
## Issue being fixed or feature implemented
Platform and research team have requested this change.

## What was done?
`quorum info` was updated with the introduction of new field
`previousConsecutiveDKGFailures` that be returned only for rotated
LLMQs.
This field will hold the number of previously consecutive failed DGKs
for the corresponding quorumIndex before the currently active one.
Note: If no previously commitments were found then 0 will be returned
for `previousConsecutiveDKGFailures`.

Example:

- DKG `A` was successful
- DKG `B` failed
- DKG `C` failed
- DKG `D` was successful
- DKG `E` was successful

- `previousConsecutiveDKGFailures` = 0 when requesting for quorum `A`
(because `A` is the first ever created quorum for that quorumIndex)
- `previousConsecutiveDKGFailures` = 2 when requesting for quorum `D`
- `previousConsecutiveDKGFailures` = 0 when requesting for quorum `E`

## How Has This Been Tested?

## Breaking Changes

## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e
tests
- [x] I have made corresponding changes to the documentation

**For repository code-owners and collaborators only**
- [x] I have assigned this pull request to a milestone

Co-authored-by: thephez <thephez@users.noreply.github.com>
2023-01-17 09:51:06 -06:00
..
blockchain.cpp refactor: remove the g_evoDb global; use NodeContext and locals (#5058) 2022-12-10 11:58:17 -06:00
blockchain.h refactor: create context for LLMQ subsystem within NodeContext, alias entangled globals (#5030) 2022-11-07 21:09:44 +03:00
client.cpp Merge #18495: rpc: Remove deprecated migration code 2023-01-01 20:16:57 -06:00
client.h
coinjoin.cpp merge bitcoin#20429: replace (sizeof(a)/sizeof(a[0])) with C++17 std::size 2022-11-01 00:28:53 -05:00
evo.cpp feat!: BLS scheme upgrade (#5021) 2022-12-29 23:45:31 -06:00
governance.cpp chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
masternode.cpp chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
mining.cpp chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
mining.h refactor: remove the g_evoDb global; use NodeContext and locals (#5058) 2022-12-10 11:58:17 -06:00
misc.cpp chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
net.cpp merge bitcoin#18134: Replace std::to_string with locale-independent alternative 2023-01-02 14:19:33 -06:00
protocol.h merge bitcoin#17407: Add reference to mempool in NodeContext 2022-04-20 00:22:36 +05:30
quorums.cpp feat(rpc): Added previousConsecutiveDKGFailures for rotation in quorum rpc (#5158) 2023-01-17 09:51:06 -06:00
rawtransaction_util.cpp merge bitcoin#16251: Improve signrawtransaction error reporting 2022-11-01 00:28:53 -05:00
rawtransaction_util.h Merge #17945: doc: Fix doxygen errors 2022-10-17 15:41:14 -05:00
rawtransaction.cpp merge bitcoin#18134: Replace std::to_string with locale-independent alternative 2023-01-02 14:19:33 -06:00
register.h
request.cpp refactor(rpc): Mechanical/Manual RPC backports (#4734) 2022-05-12 15:29:17 -05:00
request.h refactor: replace util::Ref with CoreContext (std::variant) (#5055) 2022-10-22 12:18:03 -05:00
server.cpp refactor: replace util::Ref with CoreContext (std::variant) (#5055) 2022-10-22 12:18:03 -05:00
server.h merge bitcoin#19056: Make gettxoutsetinfo/GetUTXOStats interruptible 2022-05-23 10:39:43 +05:30
util.cpp merge bitcoin#20452: Replace use of locale dependent atoi(…) with locale-independent std::from_chars(…) 2023-01-02 14:19:33 -06:00
util.h merge bitcoin#20736: Replace boost::variant with std::variant for RPCArg.m_fallback 2022-10-20 16:08:45 -05:00