Skip to content

Commit c2855a7

Browse files
Merge pull request #480 from aguycalled/fix-rpc-tests
Fix RPC Tests
2 parents 7fac091 + 0a9d0d7 commit c2855a7

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

qa/rpc-tests/cfund-rawtx-create-proposal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ def test_happy_path(self):
196196

197197
def check_good_proposal(self, proposal):
198198

199-
assert (proposal['votingCycle'] == 0)
200199
assert (proposal['version'] == 2)
201200
assert (proposal['paymentAddress'] == self.goodAddress)
202201
assert (proposal['proposalDuration'] == self.goodDuration)

src/chainparams.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ class CDevNetParams : public CChainParams {
473473
consensus.nModifierInterval = 10 * 60; // time to elapse before new modifier is computed
474474
consensus.nTargetTimespan = 25 * 30;
475475
consensus.nLastPOWBlock = 100000;
476-
consensus.nBlocksPerVotingCycle = 180; // 1.5 hours
476+
consensus.nBlocksPerVotingCycle = 30; // 15 minutes
477477
consensus.nMinimumQuorum = 0.5;
478478
consensus.nMinimumQuorumFirstHalf = 0.5;
479479
consensus.nMinimumQuorumSecondHalf = 0.4;
@@ -570,13 +570,13 @@ class CDevNetParams : public CChainParams {
570570
// 2) Rebuild
571571
// 3) Launch daemon. It'll calculate the new parameters.
572572
// 4) Update the following variables with the new values:
573-
uint256 hashGenesisBlock = uint256S("0x0000e01b12644af6917e5aada637a609dd9590ad6bdc4828cd8df95258d85c02");
573+
uint256 hashGenesisBlock = uint256S("0x0000971c241a5a1b8462c3cb8d455f0493043eb37c7163f88c658c70aa689929");
574574
uint256 hashMerkleRoot = uint256S("0x2d9101b87fe7b9deaea41849c1f3bed71e060739147802a238fe968f75ad0fd9");
575-
uint32_t nNonce = 2043184832;
575+
uint32_t nNonce = 2043198879;
576576
// 5) Rebuild. Launch daemon.
577577
// 6) Generate first block using RPC command "./navcoin-cli generate 1"
578578

579-
genesis = CreateGenesisBlockTestnet(nTimestamp, nNonce, 0x1d00ffff, 1, 0);
579+
genesis = CreateGenesisBlockTestnet(nTimestamp, nNonce, 0xffffffff, 1, 0);
580580
consensus.hashGenesisBlock = genesis.GetHash();
581581

582582
if (true && (genesis.GetHash() != hashGenesisBlock || genesis.hashMerkleRoot != hashMerkleRoot))

0 commit comments

Comments
 (0)