Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inform and stop node if tier two initialization failed. #2756

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

furszy
Copy link

@furszy furszy commented Mar 7, 2022

Fixing two problems:

  1. If tier two initialization failed, shutdown the node at startup after informing the problem to the user. (right now, it could only fail due an invalid masternode configuration file).

  2. Do not error out at startup if the masternodes metadata manager was not loaded properly. The node will re-create its state all over while it's running.

@furszy furszy self-assigned this Mar 7, 2022
@Liquid369
Copy link
Member

tACK f273603
We can either rebase this into the new PR, or merge this as there is no conflicts between the two
Tested this while working on PR #2804

Copy link

@panleone panleone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK f273603
Tested on regtest with the full v6 update and this part is working fine

panleone pushed a commit to panleone/PIVX that referenced this pull request Nov 5, 2024
Don't pass CEvoDB to CDKGSessionHandler and CDKGSession

Was never used.

Introduce global llmq::llmqDb instance of CDBWrapper

This DB is for LLMQ related data that is not part of on-chain consensus.
This for example included LLMQ secret key shares and recovered signatures.

Don't use CEvoDB in CDKGSessionManager and instead use llmqDb

Contributions are not part of on-chain consensus and shouldn't be stored in
CEvoDB.

Use llmqDb for CRecoveredSigsDb

Instead of creating its own CDBWrapper internally.

Add key prefix to "rs_" for CRecoveredSigsDb keys

This avoids future conflicts with other data stored in llmqDb

Add HasVotedOnId/GetVoteForId to CSigningManager

These just pass through to CRecoveredSigsDb

Use unordered_lru_cache in CRecoveredSigsDb
Fuzzbawls added a commit that referenced this pull request Nov 9, 2024
901976a Stop tracking interested/participating nodes and send/announce to MNAUTH peers (#2798) (Alexander Block)
59dfdc2 update bestChainLockWithKnownBlock in AcceptedBlockHeader (Alessandro Rezzi)
bd0a3f8 Introduce "qsendrecsigs" to indicate that plain recovered sigs should be sent (#2783) (Alexander Block)
846fd9a Make LLMQ/InstantSend/ChainLocks code less spammy (#2781) (Alexander Block)
1a52ad0 Fix LogPrintf call in ::DoInvalidateBlock (Alessandro Rezzi)
e3c5eef Multiple fixes/refactorings for ChainLocks (#2765) (Alexander Block)
9dda5d2 Implement LLMQ based InstantSend (#2735) (Alexander Block)
149e3e3 Various small cleanups (#2761) (UdjinM6)
cc7450d Use ReleaseNodeVector and CopyNodeVector in PIVX specific code (Alessandro Rezzi)
ed463a6 Do not hold cs_vNodes in CSigSharesManager::SendMessages() for too long (#2758) (UdjinM6)
cd1809f Implement persistence for LLMQ based InstantSend (#2756) (Alexander Block)
924ee8f Don't be too harsh for invalid CLSIGs (#2742) (Alexander Block)
f255314 Fix banning when local node doesn't have the vvec (#2739) (Alexander Block)

Pull request description:

  each commit backports a different PR. The PR number is in the commit message.

  There are also 3 extra (trivial) commits added by me

ACKs for top commit: 901976a
  Duddino:
    utACK 901976a
  Liquid369:
    uTACK 901976a

Tree-SHA512: 70b53ae3fc014c23964cae3452f6c8270d96b3b375c0f172e04039ba6f3b537d56c38677e5e4005c8b810a82b447a64fc978c2d63344b9e9736ceff7db162a18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants