PIVX Core  5.6.99
P2P Digital Currency
budgetutil.h
Go to the documentation of this file.
1 // Copyright (c) 2021 The PIVX Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or https://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PIVX_BUDGET_BUDGETUTIL_H
6 #define PIVX_BUDGET_BUDGETUTIL_H
7 
8 #include "uint256.h"
9 #include "budget/budgetvote.h"
10 
11 #include <string>
12 #include <list>
13 
14 // Future: Decouple UniValue usage. Should be used only in the RPC server files for the inputs/outputs values.
15 
16 class CWallet;
17 
18 // vote on proposal (finalized budget, if fFinal=true) with the active local masternode
19 // Note: for DMNs only finalized budget voting is allowed with the operator key
20 // (proposal voting requires the voting key)
21 UniValue mnLocalBudgetVoteInner(bool fLegacyMN, const uint256& budgetHash, bool fFinal,
22  const CBudgetVote::VoteDirection& nVote);
23 
24 UniValue mnBudgetVoteInner(CWallet* const pwallet, bool fLegacyMN, const uint256& budgetHash, bool fFinal,
25  const CBudgetVote::VoteDirection& nVote, const Optional<std::string>& mnAliasFilter);
26 
27 #endif // PIVX_BUDGET_BUDGETUTIL_H
UniValue mnBudgetVoteInner(CWallet *const pwallet, bool fLegacyMN, const uint256 &budgetHash, bool fFinal, const CBudgetVote::VoteDirection &nVote, const Optional< std::string > &mnAliasFilter)
Definition: budgetutil.cpp:235
UniValue mnLocalBudgetVoteInner(bool fLegacyMN, const uint256 &budgetHash, bool fFinal, const CBudgetVote::VoteDirection &nVote)
Definition: budgetutil.cpp:258
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
Definition: wallet.h:577
256-bit opaque blob.
Definition: uint256.h:138
boost::optional< T > Optional
Substitute for C++17 std::optional.
Definition: optional.h:12