|
18 | 18 | #include "addrman.h" |
19 | 19 | #include "amount.h" |
20 | 20 | #include "bls/bls_wrapper.h" |
21 | | -#include "budget/budgetdb.h" |
22 | | -#include "budget/budgetmanager.h" |
23 | 21 | #include "checkpoints.h" |
24 | 22 | #include "compat/sanity.h" |
25 | 23 | #include "consensus/upgrades.h" |
|
31 | 29 | #include "invalid.h" |
32 | 30 | #include "key.h" |
33 | 31 | #include "mapport.h" |
34 | | -#include "masternode-payments.h" |
35 | 32 | #include "masternodeconfig.h" |
36 | 33 | #include "masternodeman.h" |
37 | 34 | #include "miner.h" |
@@ -228,9 +225,7 @@ void Shutdown() |
228 | 225 | g_connman.reset(); |
229 | 226 | peerLogic.reset(); |
230 | 227 |
|
231 | | - DumpMasternodes(); |
232 | | - DumpBudgets(g_budgetman); |
233 | | - DumpMasternodePayments(); |
| 228 | + DumpTierTwo(); |
234 | 229 | if (::mempool.IsLoaded() && gArgs.GetBoolArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) { |
235 | 230 | DumpMempool(::mempool); |
236 | 231 | } |
@@ -1772,8 +1767,8 @@ bool AppInitMain() |
1772 | 1767 | } |
1773 | 1768 | } |
1774 | 1769 |
|
1775 | | - //get the mode of budget voting for this masternode |
1776 | | - g_budgetman.strBudgetMode = gArgs.GetArg("-budgetvotemode", "auto"); |
| 1770 | + // set the mode of budget voting for this node |
| 1771 | + SetBudgetFinMode(gArgs.GetArg("-budgetvotemode", "auto")); |
1777 | 1772 |
|
1778 | 1773 | #ifdef ENABLE_WALLET |
1779 | 1774 | // !TODO: remove after complete transition to DMN |
@@ -1807,7 +1802,6 @@ bool AppInitMain() |
1807 | 1802 | } |
1808 | 1803 |
|
1809 | 1804 | LogPrintf("fLiteMode %d\n", fLiteMode); |
1810 | | - LogPrintf("Budget Mode %s\n", g_budgetman.strBudgetMode.c_str()); |
1811 | 1805 |
|
1812 | 1806 | threadGroup.create_thread(std::bind(&ThreadCheckMasternodes)); |
1813 | 1807 |
|
|
0 commit comments