-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix: actually vote NO on triggers we don't like, some additional cleanups and tests #5670
Changes from 3 commits
78d91b7
1052500
c7f5b7d
4e64443
a4b9e81
e1f5e49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -293,8 +293,9 @@ class CGovernanceManager : public GovernanceStore | |
|
||
void ProcessMessage(CNode& peer, PeerManager& peerman, CConnman& connman, std::string_view msg_type, CDataStream& vRecv); | ||
|
||
std::optional<CSuperblock> CreateSuperblockCandidate(int nHeight) const; | ||
void CreateGovernanceTrigger(const CSuperblock& sb, CConnman& connman); | ||
const std::optional<CSuperblock> CreateSuperblockCandidate(int nHeight) const; | ||
const std::optional<CGovernanceObject> CreateGovernanceTrigger(const std::optional<CSuperblock>& sb_opt, CConnman& connman); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is your goal marking these returned values as const? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think probably if anything you may want There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oops 🙈 fixed |
||
void VoteGovernanceTriggers(const std::optional<CGovernanceObject>& trigger_opt, CConnman& connman); | ||
bool VoteFundingTrigger(const uint256& nHash, const vote_outcome_enum_t outcome, CConnman& connman); | ||
bool HasAlreadyVotedFundingTrigger() const; | ||
void ResetVotedFundingTrigger(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tip MUST be same for GetListForBlock and for GetProjectedMNPayees due to #5590