Skip to content

Commit

Permalink
Merge branch 'master' into feat/vote_with_address_for_proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
DocteurPing authored Feb 3, 2023
2 parents ed8cbe9 + faaad56 commit 5c903ac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
30 changes: 18 additions & 12 deletions src/masternodes/mn_rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,12 @@ UniValue setgov(const JSONRPCRequest& request) {
CCoinControl coinControl;

// Set change to selected foundation address
CTxDestination dest;
ExtractDestination(*auths.cbegin(), dest);
if (IsValidDestination(dest)) {
coinControl.destChange = dest;
if (!auths.empty()) {
CTxDestination dest;
ExtractDestination(*auths.cbegin(), dest);
if (IsValidDestination(dest)) {
coinControl.destChange = dest;
}
}

fund(rawTx, pwallet, optAuthTx, &coinControl);
Expand Down Expand Up @@ -673,10 +675,12 @@ UniValue unsetgov(const JSONRPCRequest& request) {
CCoinControl coinControl;

// Set change to selected foundation address
CTxDestination dest;
ExtractDestination(*auths.cbegin(), dest);
if (IsValidDestination(dest)) {
coinControl.destChange = dest;
if (!auths.empty()) {
CTxDestination dest;
ExtractDestination(*auths.cbegin(), dest);
if (IsValidDestination(dest)) {
coinControl.destChange = dest;
}
}

fund(rawTx, pwallet, optAuthTx, &coinControl);
Expand Down Expand Up @@ -767,10 +771,12 @@ UniValue setgovheight(const JSONRPCRequest& request) {
CCoinControl coinControl;

// Set change to selected foundation address
CTxDestination dest;
ExtractDestination(*auths.cbegin(), dest);
if (IsValidDestination(dest)) {
coinControl.destChange = dest;
if (!auths.empty()) {
CTxDestination dest;
ExtractDestination(*auths.cbegin(), dest);
if (IsValidDestination(dest)) {
coinControl.destChange = dest;
}
}

fund(rawTx, pwallet, optAuthTx, &coinControl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def set_test_params(self):
self.num_nodes = 1
self.setup_clean_chain = True
self.extra_args = [
['-jellyfish_regtest=1', '-dummypos=0', '-txnotokens=0', '-amkheight=50', '-bayfrontheight=51', '-eunosheight=80', '-fortcanningheight=82', '-fortcanninghillheight=84', '-fortcanningroadheight=86', '-fortcanningcrunchheight=88', '-fortcanningspringheight=90', '-fortcanninggreatworldheight=94', '-grandcentralheight=101', '-simulatemainnet=1'],
['-jellyfish_regtest=1', '-dummypos=0', '-txnotokens=0', '-amkheight=50', '-bayfrontheight=51', '-eunosheight=80', '-fortcanningheight=82', '-fortcanninghillheight=84', '-fortcanningroadheight=86', '-fortcanningcrunchheight=88', '-fortcanningspringheight=90', '-fortcanninggreatworldheight=94', '-grandcentralheight=101', '-rpc-governance-accept-neutral=1', '-simulatemainnet=1'],
]

def setup_masternodes(self, nMasternodes = 19):
Expand Down

0 comments on commit 5c903ac

Please sign in to comment.