Skip to content

Commit

Permalink
Merge branch 'master' into proposalvotes-stats
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamc1 authored Feb 2, 2023
2 parents e51834a + faaad56 commit 0609603
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
2 changes: 1 addition & 1 deletion test/functional/feature_on_chain_government_voting_scenarios.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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', '-rpc-governance-accept-neutral=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 0609603

Please sign in to comment.