fix annoying compiler warnings (#1204)
This commit is contained in:
parent
30da3f56a7
commit
072b0fd708
@ -240,7 +240,7 @@ public:
|
|||||||
nMaxTipAge = 0x7fffffff; // allow mining on top of old blocks for testnet
|
nMaxTipAge = 0x7fffffff; // allow mining on top of old blocks for testnet
|
||||||
nPruneAfterHeight = 1000;
|
nPruneAfterHeight = 1000;
|
||||||
|
|
||||||
genesis = CreateGenesisBlock(1390666206, 3861367235, 0x1e0ffff0, 1, 50 * COIN);
|
genesis = CreateGenesisBlock(1390666206UL, 3861367235UL, 0x1e0ffff0, 1, 50 * COIN);
|
||||||
consensus.hashGenesisBlock = genesis.GetHash();
|
consensus.hashGenesisBlock = genesis.GetHash();
|
||||||
assert(consensus.hashGenesisBlock == uint256S("0x00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c"));
|
assert(consensus.hashGenesisBlock == uint256S("0x00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c"));
|
||||||
assert(genesis.hashMerkleRoot == uint256S("0xe0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7"));
|
assert(genesis.hashMerkleRoot == uint256S("0xe0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7"));
|
||||||
|
@ -115,7 +115,7 @@ bool CSporkManager::IsSporkActive(int nSporkID)
|
|||||||
case SPORK_14_REQUIRE_SENTINEL_FLAG: r = SPORK_14_REQUIRE_SENTINEL_FLAG_DEFAULT; break;
|
case SPORK_14_REQUIRE_SENTINEL_FLAG: r = SPORK_14_REQUIRE_SENTINEL_FLAG_DEFAULT; break;
|
||||||
default:
|
default:
|
||||||
LogPrint("spork", "CSporkManager::IsSporkActive -- Unknown Spork ID %d\n", nSporkID);
|
LogPrint("spork", "CSporkManager::IsSporkActive -- Unknown Spork ID %d\n", nSporkID);
|
||||||
r = 4070908800; // 2099-1-1 i.e. off by default
|
r = 4070908800ULL; // 2099-1-1 i.e. off by default
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
src/spork.h
10
src/spork.h
@ -32,12 +32,12 @@ static const int SPORK_14_REQUIRE_SENTINEL_FLAG = 10013;
|
|||||||
static const int64_t SPORK_2_INSTANTSEND_ENABLED_DEFAULT = 0; // ON
|
static const int64_t SPORK_2_INSTANTSEND_ENABLED_DEFAULT = 0; // ON
|
||||||
static const int64_t SPORK_3_INSTANTSEND_BLOCK_FILTERING_DEFAULT = 0; // ON
|
static const int64_t SPORK_3_INSTANTSEND_BLOCK_FILTERING_DEFAULT = 0; // ON
|
||||||
static const int64_t SPORK_5_INSTANTSEND_MAX_VALUE_DEFAULT = 1000; // 1000 DASH
|
static const int64_t SPORK_5_INSTANTSEND_MAX_VALUE_DEFAULT = 1000; // 1000 DASH
|
||||||
static const int64_t SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT_DEFAULT = 4070908800; // OFF
|
static const int64_t SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT_DEFAULT = 4070908800ULL;// OFF
|
||||||
static const int64_t SPORK_9_SUPERBLOCKS_ENABLED_DEFAULT = 4070908800; // OFF
|
static const int64_t SPORK_9_SUPERBLOCKS_ENABLED_DEFAULT = 4070908800ULL;// OFF
|
||||||
static const int64_t SPORK_10_MASTERNODE_PAY_UPDATED_NODES_DEFAULT = 4070908800; // OFF
|
static const int64_t SPORK_10_MASTERNODE_PAY_UPDATED_NODES_DEFAULT = 4070908800ULL;// OFF
|
||||||
static const int64_t SPORK_12_RECONSIDER_BLOCKS_DEFAULT = 0; // 0 BLOCKS
|
static const int64_t SPORK_12_RECONSIDER_BLOCKS_DEFAULT = 0; // 0 BLOCKS
|
||||||
static const int64_t SPORK_13_OLD_SUPERBLOCK_FLAG_DEFAULT = 4070908800; // OFF
|
static const int64_t SPORK_13_OLD_SUPERBLOCK_FLAG_DEFAULT = 4070908800ULL;// OFF
|
||||||
static const int64_t SPORK_14_REQUIRE_SENTINEL_FLAG_DEFAULT = 4070908800; // OFF
|
static const int64_t SPORK_14_REQUIRE_SENTINEL_FLAG_DEFAULT = 4070908800ULL;// OFF
|
||||||
|
|
||||||
extern std::map<uint256, CSporkMessage> mapSporks;
|
extern std::map<uint256, CSporkMessage> mapSporks;
|
||||||
extern CSporkManager sporkManager;
|
extern CSporkManager sporkManager;
|
||||||
|
@ -83,7 +83,7 @@ BOOST_AUTO_TEST_CASE(univalue_typecheck)
|
|||||||
|
|
||||||
UniValue v4;
|
UniValue v4;
|
||||||
BOOST_CHECK(v4.setNumStr("2147483648"));
|
BOOST_CHECK(v4.setNumStr("2147483648"));
|
||||||
BOOST_CHECK_EQUAL(v4.get_int64(), 2147483648);
|
BOOST_CHECK_EQUAL(v4.get_int64(), 2147483648ULL);
|
||||||
BOOST_CHECK_THROW(v4.get_int(), runtime_error);
|
BOOST_CHECK_THROW(v4.get_int(), runtime_error);
|
||||||
BOOST_CHECK(v4.setNumStr("1000"));
|
BOOST_CHECK(v4.setNumStr("1000"));
|
||||||
BOOST_CHECK_EQUAL(v4.get_int(), 1000);
|
BOOST_CHECK_EQUAL(v4.get_int(), 1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user