Skip to content

Commit 400f6f4

Browse files
committed
Moving uint256(str) to proper uint256S(str). --> uint256 string parse.
1 parent b0163f6 commit 400f6f4

File tree

13 files changed

+66
-66
lines changed

13 files changed

+66
-66
lines changed

src/activemasternode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ bool CActiveMasternode::GetMasterNodeVin(CTxIn& vin, CPubKey& pubkey, CKey& secr
368368
// Find the vin
369369
if (!strTxHash.empty()) {
370370
// Let's find it
371-
uint256 txHash(strTxHash);
371+
uint256 txHash(uint256S(strTxHash));
372372
int outputIndex;
373373
try {
374374
outputIndex = std::stoi(strOutputIndex.c_str());

src/bip38.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void DecryptAES(uint256 encryptedIn, uint256 decryptionKey, uint256& output)
3434
void ComputePreFactor(std::string strPassphrase, std::string strSalt, uint256& prefactor)
3535
{
3636
//passfactor is the scrypt hash of passphrase and ownersalt (NOTE this needs to handle alt cases too in the future)
37-
uint64_t s = uint256(ReverseEndianString(strSalt)).Get64();
37+
uint64_t s = uint256S(ReverseEndianString(strSalt)).GetCheapHash();
3838
scrypt_hash(strPassphrase.c_str(), strPassphrase.size(), BEGIN(s), strSalt.size() / 2, BEGIN(prefactor), 16384, 8, 8, 32);
3939
}
4040

@@ -82,7 +82,7 @@ void ComputeSeedBPass(CPubKey passpoint, std::string strAddressHash, std::string
8282
{
8383
// Derive decryption key for seedb using scrypt with passpoint, addresshash, and ownerentropy
8484
std::string salt = ReverseEndianString(strAddressHash + strOwnerSalt);
85-
uint256 s2(salt);
85+
uint256 s2(uint256S(salt));
8686
scrypt_hash(BEGIN(passpoint), HexStr(passpoint).size() / 2, BEGIN(s2), salt.size() / 2, BEGIN(seedBPass), 1024, 1, 1, 64);
8787
}
8888

@@ -107,7 +107,7 @@ std::string BIP38_Encrypt(std::string strAddress, std::string strPassphrase, uin
107107
std::string strAddressHash = AddressToBip38Hash(strAddress);
108108

109109
uint512 hashed;
110-
uint64_t salt = uint256(ReverseEndianString(strAddressHash)).Get64();
110+
uint64_t salt = uint256S(ReverseEndianString(strAddressHash)).GetCheapHash();
111111
scrypt_hash(strPassphrase.c_str(), strPassphrase.size(), BEGIN(salt), strAddressHash.size() / 2, BEGIN(hashed), 16384, 8, 8, 64);
112112

113113
uint256 derivedHalf1(hashed.ToString().substr(64, 64));
@@ -178,11 +178,11 @@ bool BIP38_Decrypt(std::string strPassphrase, std::string strEncryptedKey, uint2
178178
if (type == uint256(0x42)) {
179179
uint512 hashed;
180180
encryptedPart1 = uint256(ReverseEndianString(strKey.substr(14, 32)));
181-
uint64_t salt = uint256(ReverseEndianString(strAddressHash)).Get64();
181+
uint64_t salt = uint256S(ReverseEndianString(strAddressHash)).GetCheapHash();
182182
scrypt_hash(strPassphrase.c_str(), strPassphrase.size(), BEGIN(salt), strAddressHash.size() / 2, BEGIN(hashed), 16384, 8, 8, 64);
183183

184-
uint256 derivedHalf1(hashed.ToString().substr(64, 64));
185-
uint256 derivedHalf2(hashed.ToString().substr(0, 64));
184+
uint256 derivedHalf1(uint256S(hashed.ToString().substr(64, 64)));
185+
uint256 derivedHalf2(uint256S(hashed.ToString().substr(0, 64)));
186186

187187
uint256 decryptedPart1;
188188
DecryptAES(encryptedPart1, derivedHalf2, decryptedPart1);
@@ -224,8 +224,8 @@ bool BIP38_Decrypt(std::string strPassphrase, std::string strEncryptedKey, uint2
224224
ComputeSeedBPass(passpoint, strAddressHash, ownersalt, seedBPass);
225225

226226
//get derived halfs, being mindful for endian switch
227-
uint256 derivedHalf1(seedBPass.ToString().substr(64, 64));
228-
uint256 derivedHalf2(seedBPass.ToString().substr(0, 64));
227+
uint256 derivedHalf1(uint256S(seedBPass.ToString().substr(64, 64)));
228+
uint256 derivedHalf2(uint256S(seedBPass.ToString().substr(0, 64)));
229229

230230
/** Decrypt encryptedpart2 using AES256Decrypt to yield the last 8 bytes of seedb and the last 8 bytes of encryptedpart1. **/
231231
uint256 decryptedPart2;

src/chain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ int64_t CBlockIndex::GetMedianTimePast() const
166166

167167
unsigned int CBlockIndex::GetStakeEntropyBit() const
168168
{
169-
unsigned int nEntropyBit = ((GetBlockHash().Get64()) & 1);
169+
unsigned int nEntropyBit = ((GetBlockHash().GetCheapHash()) & 1);
170170
if (GetBoolArg("-printstakemodifier", false))
171171
LogPrintf("GetStakeEntropyBit: nHeight=%u hashBlock=%s nEntropyBit=%u\n", nHeight, GetBlockHash().ToString().c_str(), nEntropyBit);
172172

src/chainparams.cpp

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,26 @@ static void convertSeed6(std::vector<CAddress>& vSeedsOut, const SeedSpec6* data
8585
// + Contains no strange transactions
8686
static Checkpoints::MapCheckpoints mapCheckpoints =
8787
boost::assign::map_list_of
88-
(259201, uint256("1c9121bf9329a6234bfd1ea2d91515f19cd96990725265253f4b164283ade5dd"))
89-
(424998, uint256("f31e381eedb0ed3ed65fcc98cc71f36012bee32e8efd017c4f9fb0620fd35f6b"))
90-
(616764, uint256("29dd0bd1c59484f290896687b4ffb6a49afa5c498caf61967c69a541f8191557")) //first block to use modifierV2
91-
(623933, uint256("c7aafa648a0f1450157dc93bd4d7448913a85b7448f803b4ab970d91fc2a7da7"))
92-
(791150, uint256("8e76f462e4e82d1bd21cb72e1ce1567d4ddda2390f26074ffd1f5d9c270e5e50"))
93-
(795000, uint256("4423cceeb9fd574137a18733416275a70fdf95283cc79ad976ca399aa424a443"))
94-
(863787, uint256("5b2482eca24caf2a46bb22e0545db7b7037282733faa3a42ec20542509999a64"))
95-
(863795, uint256("2ad866818c4866e0d555181daccc628056216c0db431f88a825e84ed4f469067"))
96-
(863805, uint256("a755bd9a22b63c70d3db474f4b2b61a1f86c835b290a081bb3ec1ba2103eb4cb"))
97-
(867733, uint256("03b26296bf693de5782c76843d2fb649cb66d4b05550c6a79c047ff7e1c3ae15"))
98-
(879650, uint256("227e1d2b738b6cd83c46d1d64617934ec899d77cee34336a56e61b71acd10bb2"))
99-
(895400, uint256("7796a0274a608fac12d400198174e50beda992c1d522e52e5b95b884bc1beac6"))//block that serial# range is enforced
100-
(895991, uint256("d53013ed7ea5c325b9696c95e07667d6858f8ff7ee13fecfa90827bf3c9ae316"))//network split here
101-
(908000, uint256("202708f8c289b676fceb832a079ff6b308a28608339acbf7584de533619d014d"))
102-
(1142400, uint256("98aff9d605bf123247f98b1e3a02567eb5799d208d78ec30fb89737b1c1f79c5"))
103-
(1679090, uint256("f747ce055ba1b12e1f2e842bd480bc647210799359cb2e553ab292065e3419d6")) //!< First block with a "wrapped" serial spend
104-
(1686229, uint256("bb42bf1e886a7c23474634c90893dd3d68a6ccbfea4ac92a98da5cad0c6a6cb7")) //!< Last block in the "wrapped" serial attack range
105-
(1778954, uint256("0d3241268264a2908d6babf00d9cd1ffb83d93d7bb4e428820127fe227c2029c")) //!< Network split here
106-
(1788528, uint256("ea9243ff8fc079fdd7a04f11fac415de4d98e1bb0dc38db6f79f8f8bbfdbe496")) //!< Network split here
107-
(2153200, uint256("14e477e597d24549cac5e59d97d32155e6ec2861c1003b42d0566f9bf39b65d5")); //!< First v7 block
88+
(259201, uint256S("1c9121bf9329a6234bfd1ea2d91515f19cd96990725265253f4b164283ade5dd"))
89+
(424998, uint256S("f31e381eedb0ed3ed65fcc98cc71f36012bee32e8efd017c4f9fb0620fd35f6b"))
90+
(616764, uint256S("29dd0bd1c59484f290896687b4ffb6a49afa5c498caf61967c69a541f8191557")) //first block to use modifierV2
91+
(623933, uint256S("c7aafa648a0f1450157dc93bd4d7448913a85b7448f803b4ab970d91fc2a7da7"))
92+
(791150, uint256S("8e76f462e4e82d1bd21cb72e1ce1567d4ddda2390f26074ffd1f5d9c270e5e50"))
93+
(795000, uint256S("4423cceeb9fd574137a18733416275a70fdf95283cc79ad976ca399aa424a443"))
94+
(863787, uint256S("5b2482eca24caf2a46bb22e0545db7b7037282733faa3a42ec20542509999a64"))
95+
(863795, uint256S("2ad866818c4866e0d555181daccc628056216c0db431f88a825e84ed4f469067"))
96+
(863805, uint256S("a755bd9a22b63c70d3db474f4b2b61a1f86c835b290a081bb3ec1ba2103eb4cb"))
97+
(867733, uint256S("03b26296bf693de5782c76843d2fb649cb66d4b05550c6a79c047ff7e1c3ae15"))
98+
(879650, uint256S("227e1d2b738b6cd83c46d1d64617934ec899d77cee34336a56e61b71acd10bb2"))
99+
(895400, uint256S("7796a0274a608fac12d400198174e50beda992c1d522e52e5b95b884bc1beac6"))//block that serial# range is enforced
100+
(895991, uint256S("d53013ed7ea5c325b9696c95e07667d6858f8ff7ee13fecfa90827bf3c9ae316"))//network split here
101+
(908000, uint256S("202708f8c289b676fceb832a079ff6b308a28608339acbf7584de533619d014d"))
102+
(1142400, uint256S("98aff9d605bf123247f98b1e3a02567eb5799d208d78ec30fb89737b1c1f79c5"))
103+
(1679090, uint256S("f747ce055ba1b12e1f2e842bd480bc647210799359cb2e553ab292065e3419d6")) //!< First block with a "wrapped" serial spend
104+
(1686229, uint256S("bb42bf1e886a7c23474634c90893dd3d68a6ccbfea4ac92a98da5cad0c6a6cb7")) //!< Last block in the "wrapped" serial attack range
105+
(1778954, uint256S("0d3241268264a2908d6babf00d9cd1ffb83d93d7bb4e428820127fe227c2029c")) //!< Network split here
106+
(1788528, uint256S("ea9243ff8fc079fdd7a04f11fac415de4d98e1bb0dc38db6f79f8f8bbfdbe496")) //!< Network split here
107+
(2153200, uint256S("14e477e597d24549cac5e59d97d32155e6ec2861c1003b42d0566f9bf39b65d5")); //!< First v7 block
108108
static const Checkpoints::CCheckpointData data = {
109109
&mapCheckpoints,
110110
1578332625, // * UNIX timestamp of last checkpoint block
@@ -115,19 +115,19 @@ static const Checkpoints::CCheckpointData data = {
115115

116116
static Checkpoints::MapCheckpoints mapCheckpointsTestnet =
117117
boost::assign::map_list_of
118-
(0, uint256("0x001"))
119-
(1016800, uint256("6ae7d52092fd918c8ac8d9b1334400387d3057997e6e927a88e57186dc395231"))
120-
(1106100, uint256("c54b3e7e8b710e4075da1806adf2d508ae722627d5bcc43f594cf64d5eef8b30")) //!< zc public spend activation height
121-
(1112700, uint256("2ad8d507dbe3d3841b9f8a29c3878d570228e9361c3e057362d7915777bbc849"))
122-
(1347000, uint256("30c173ffc09a13f288bf6e828216107037ce5b79536b1cebd750a014f4939882")); //!< First v7 block
118+
(0, uint256S("0x001"))
119+
(1016800, uint256S("6ae7d52092fd918c8ac8d9b1334400387d3057997e6e927a88e57186dc395231"))
120+
(1106100, uint256S("c54b3e7e8b710e4075da1806adf2d508ae722627d5bcc43f594cf64d5eef8b30")) //!< zc public spend activation height
121+
(1112700, uint256S("2ad8d507dbe3d3841b9f8a29c3878d570228e9361c3e057362d7915777bbc849"))
122+
(1347000, uint256S("30c173ffc09a13f288bf6e828216107037ce5b79536b1cebd750a014f4939882")); //!< First v7 block
123123
static const Checkpoints::CCheckpointData dataTestnet = {
124124
&mapCheckpointsTestnet,
125125
1575145155,
126126
2971390,
127127
250};
128128

129129
static Checkpoints::MapCheckpoints mapCheckpointsRegtest =
130-
boost::assign::map_list_of(0, uint256("0x001"));
130+
boost::assign::map_list_of(0, uint256S("0x001"));
131131
static const Checkpoints::CCheckpointData dataRegtest = {
132132
&mapCheckpointsRegtest,
133133
1454124731,
@@ -144,8 +144,8 @@ class CMainParams : public CChainParams
144144

145145
genesis = CreateGenesisBlock(1454124731, 2402015, 0x1e0ffff0, 1, 250 * COIN);
146146
consensus.hashGenesisBlock = genesis.GetHash();
147-
assert(consensus.hashGenesisBlock == uint256("0x0000041e482b9b9691d98eefb48473405c0b8ec31b76df3797c74a78680ef818"));
148-
assert(genesis.hashMerkleRoot == uint256("0x1b2ef6e2f28be914103a277377ae7729dcd125dfeb8bf97bd5964ba72b6dc39b"));
147+
assert(consensus.hashGenesisBlock == uint256S("0x0000041e482b9b9691d98eefb48473405c0b8ec31b76df3797c74a78680ef818"));
148+
assert(genesis.hashMerkleRoot == uint256S("0x1b2ef6e2f28be914103a277377ae7729dcd125dfeb8bf97bd5964ba72b6dc39b"));
149149

150150
consensus.fPowAllowMinDifficultyBlocks = false;
151151
consensus.powLimit = ~UINT256_ZERO >> 20; // PIVX starting difficulty is 1 / 2^12
@@ -265,8 +265,8 @@ class CTestNetParams : public CMainParams
265265

266266
genesis = CreateGenesisBlock(1454124731, 2402015, 0x1e0ffff0, 1, 250 * COIN);
267267
consensus.hashGenesisBlock = genesis.GetHash();
268-
assert(consensus.hashGenesisBlock == uint256("0x0000041e482b9b9691d98eefb48473405c0b8ec31b76df3797c74a78680ef818"));
269-
assert(genesis.hashMerkleRoot == uint256("0x1b2ef6e2f28be914103a277377ae7729dcd125dfeb8bf97bd5964ba72b6dc39b"));
268+
assert(consensus.hashGenesisBlock == uint256S("0x0000041e482b9b9691d98eefb48473405c0b8ec31b76df3797c74a78680ef818"));
269+
assert(genesis.hashMerkleRoot == uint256S("0x1b2ef6e2f28be914103a277377ae7729dcd125dfeb8bf97bd5964ba72b6dc39b"));
270270

271271
consensus.fPowAllowMinDifficultyBlocks = true;
272272
consensus.powLimit = ~UINT256_ZERO >> 20; // PIVX starting difficulty is 1 / 2^12
@@ -389,8 +389,8 @@ class CRegTestParams : public CTestNetParams
389389

390390
genesis = CreateGenesisBlock(1454124731, 2402015, 0x1e0ffff0, 1, 250 * COIN);
391391
consensus.hashGenesisBlock = genesis.GetHash();
392-
assert(consensus.hashGenesisBlock == uint256("0x0000041e482b9b9691d98eefb48473405c0b8ec31b76df3797c74a78680ef818"));
393-
assert(genesis.hashMerkleRoot == uint256("0x1b2ef6e2f28be914103a277377ae7729dcd125dfeb8bf97bd5964ba72b6dc39b"));
392+
assert(consensus.hashGenesisBlock == uint256S("0x0000041e482b9b9691d98eefb48473405c0b8ec31b76df3797c74a78680ef818"));
393+
assert(genesis.hashMerkleRoot == uint256S("0x1b2ef6e2f28be914103a277377ae7729dcd125dfeb8bf97bd5964ba72b6dc39b"));
394394

395395
consensus.fPowAllowMinDifficultyBlocks = true;
396396
consensus.powLimit = ~UINT256_ZERO >> 20; // PIVX starting difficulty is 1 / 2^12

src/crypter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ bool CCryptoKeyStore::GetDeterministicSeed(const uint256& hashSeed, uint256& see
408408
std::vector<unsigned char> vchCryptedSeed;
409409
//read encrypted seed
410410
if (db.ReadZPIVSeed(hashSeed, vchCryptedSeed)) {
411-
uint256 seedRetrieved = uint256(ReverseEndianString(HexStr(vchCryptedSeed)));
411+
uint256 seedRetrieved = uint256S(ReverseEndianString(HexStr(vchCryptedSeed)));
412412
//this checks if the hash of the seed we just read matches the hash given, meaning it is not encrypted
413413
//the use case for this is when not crypted, seed is set, then password set, the seed not yet crypted in memory
414414
if(hashSeed == Hash(seedRetrieved.begin(), seedRetrieved.end())) {
@@ -419,7 +419,7 @@ bool CCryptoKeyStore::GetDeterministicSeed(const uint256& hashSeed, uint256& see
419419
CKeyingMaterial kmSeed;
420420
//attempt decrypt
421421
if (DecryptSecret(vMasterKey, vchCryptedSeed, hashSeed, kmSeed)) {
422-
seedOut = uint256(ReverseEndianString(HexStr(kmSeed)));
422+
seedOut = uint256S(ReverseEndianString(HexStr(kmSeed)));
423423
return true;
424424
}
425425
strErr = "decrypt seed";
@@ -429,7 +429,7 @@ bool CCryptoKeyStore::GetDeterministicSeed(const uint256& hashSeed, uint256& see
429429
std::vector<unsigned char> vchSeed;
430430
// wallet not crypted
431431
if (db.ReadZPIVSeed(hashSeed, vchSeed)) {
432-
seedOut = uint256(ReverseEndianString(HexStr(vchSeed)));
432+
seedOut = uint256S(ReverseEndianString(HexStr(vchSeed)));
433433
return true;
434434
}
435435
strErr = "read seed from wallet";

src/invalid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace invalid_out
3737
if (!vTxid.isStr())
3838
return false;
3939

40-
uint256 txid = uint256(vTxid.get_str());
40+
uint256 txid = uint256S(vTxid.get_str());
4141
if (txid.IsNull())
4242
return false;
4343

src/qt/proposalframe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void ProposalFrame::voteButton_clicked(int nVote)
265265

266266
void ProposalFrame::SendVote(std::string strHash, int nVote)
267267
{
268-
uint256 hash = uint256(strHash);
268+
uint256 hash = uint256S(strHash);
269269
int failed = 0, success = 0;
270270
std::string mnresult;
271271
for (CMasternodeConfig::CMasternodeEntry mne : masternodeConfig.getEntries()) {

src/rpc/blockchain.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ UniValue getblock(const UniValue& params, bool fHelp)
534534
LOCK(cs_main);
535535

536536
std::string strHash = params[0].get_str();
537-
uint256 hash(strHash);
537+
uint256 hash(uint256S(strHash));
538538

539539
bool fVerbose = true;
540540
if (params.size() > 1)
@@ -590,7 +590,7 @@ UniValue getblockheader(const UniValue& params, bool fHelp)
590590
HelpExampleRpc("getblockheader", "\"00000000000fd08c2fb661d2fcb0d49abb3a91e5f27082ce64feed3b4dede2e2\""));
591591

592592
std::string strHash = params[0].get_str();
593-
uint256 hash(strHash);
593+
uint256 hash(uint256S(strHash));
594594

595595
bool fVerbose = true;
596596
if (params.size() > 1)
@@ -695,7 +695,7 @@ UniValue gettxout(const UniValue& params, bool fHelp)
695695
UniValue ret(UniValue::VOBJ);
696696

697697
std::string strHash = params[0].get_str();
698-
uint256 hash(strHash);
698+
uint256 hash(uint256S(strHash));
699699
int n = params[1].get_int();
700700
bool fMempool = true;
701701
if (params.size() > 2)
@@ -1029,7 +1029,7 @@ UniValue invalidateblock(const UniValue& params, bool fHelp)
10291029
HelpExampleCli("invalidateblock", "\"blockhash\"") + HelpExampleRpc("invalidateblock", "\"blockhash\""));
10301030

10311031
std::string strHash = params[0].get_str();
1032-
uint256 hash(strHash);
1032+
uint256 hash(uint256S(strHash));
10331033
CValidationState state;
10341034

10351035
{
@@ -1067,7 +1067,7 @@ UniValue reconsiderblock(const UniValue& params, bool fHelp)
10671067
HelpExampleCli("reconsiderblock", "\"blockhash\"") + HelpExampleRpc("reconsiderblock", "\"blockhash\""));
10681068

10691069
std::string strHash = params[0].get_str();
1070-
uint256 hash(strHash);
1070+
uint256 hash(uint256S(strHash));
10711071
CValidationState state;
10721072

10731073
{

src/rpc/budget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ UniValue mnfinalbudget(const UniValue& params, bool fHelp)
778778
throw std::runtime_error("Correct usage is 'mnfinalbudget vote-many BUDGET_HASH'");
779779

780780
std::string strHash = params[1].get_str();
781-
uint256 hash(strHash);
781+
uint256 hash(uint256S(strHash));
782782

783783
int success = 0;
784784
int failed = 0;
@@ -849,7 +849,7 @@ UniValue mnfinalbudget(const UniValue& params, bool fHelp)
849849
throw std::runtime_error("Correct usage is 'mnfinalbudget vote BUDGET_HASH'");
850850

851851
std::string strHash = params[1].get_str();
852-
uint256 hash(strHash);
852+
uint256 hash(uint256S(strHash));
853853

854854
CPubKey pubKeyMasternode;
855855
CKey keyMasternode;
@@ -906,7 +906,7 @@ UniValue mnfinalbudget(const UniValue& params, bool fHelp)
906906
throw std::runtime_error("Correct usage is 'mnbudget getvotes budget-hash'");
907907

908908
std::string strHash = params[1].get_str();
909-
uint256 hash(strHash);
909+
uint256 hash(uint256S(strHash));
910910

911911
UniValue obj(UniValue::VOBJ);
912912

src/rpc/masternode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ bool StartMasternodeEntry(UniValue& statusObjRet, CMasternodeBroadcast& mnbRet,
259259
return false;
260260
}
261261

262-
CTxIn vin = CTxIn(uint256(mne.getTxHash()), uint32_t(nIndex));
262+
CTxIn vin = CTxIn(uint256S(mne.getTxHash()), uint32_t(nIndex));
263263
CMasternode* pmn = mnodeman.Find(vin);
264264
if (pmn != NULL) {
265265
if (strCommand == "missing") return false;
@@ -533,7 +533,7 @@ UniValue listmasternodeconf (const UniValue& params, bool fHelp)
533533
int nIndex;
534534
if(!mne.castOutputIndex(nIndex))
535535
continue;
536-
CTxIn vin = CTxIn(uint256(mne.getTxHash()), uint32_t(nIndex));
536+
CTxIn vin = CTxIn(uint256S(mne.getTxHash()), uint32_t(nIndex));
537537
CMasternode* pmn = mnodeman.Find(vin);
538538

539539
std::string strStatus = pmn ? pmn->Status() : "MISSING";

0 commit comments

Comments
 (0)