Skip to content

Commit

Permalink
Fixed compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wqking committed Sep 29, 2021
1 parent 433ff62 commit ca740e8
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/libzerocoin/ParamGeneration.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ void calculateGroupParamLengths(uint32_t maxPLen, uint32_t securityLevel,
#define NUM_SCHNORRGEN_ATTEMPTS 10000

// Prototypes
bool primalityTestByTrialDivision(uint32_t candidate);
uint256 calculateSeed(CBigNum modulus, std::string auxString, uint32_t securityLevel, std::string groupName);
uint256 calculateGeneratorSeed(uint256 seed, uint256 pSeed, uint256 qSeed, std::string label, uint32_t index, uint32_t count);

Expand Down
6 changes: 0 additions & 6 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn);
void UnregisterValidationInterface(CValidationInterface* pwalletIn);
/** Unregister all wallets from core */
void UnregisterAllValidationInterfaces();
/** Push an updated transaction to all registered wallets */
void SyncWithWallets(const CTransaction& tx, const CBlock* pblock = NULL);

/** Register with a network node to receive its signals */
void RegisterNodeSignals(CNodeSignals& nodeSignals);
Expand Down Expand Up @@ -227,10 +225,6 @@ bool SendMessages(CNode* pto, bool fSendTrickle);
/** Run an instance of the script checking thread */
void ThreadScriptCheck();

// ***TODO*** probably not the right place for these 2
/** Check whether a block hash satisfies the proof-of-work requirement specified by nBits */
bool CheckProofOfWork(uint256 hash, unsigned int nBits);

/** Check whether we are doing an initial block download (synchronizing from disk or network) */
bool IsInitialBlockDownload();
/** Format a string that describes several potential problems detected by the core */
Expand Down
2 changes: 0 additions & 2 deletions src/primitives/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@



extern bool GetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock, bool fAllowSlow);

std::string COutPoint::ToString() const
{
return strprintf("COutPoint(%s, %u)", hash.ToString()/*.substr(0,10)*/, n);
Expand Down
7 changes: 0 additions & 7 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,5 @@ void TraceThread(const char* name, Callable func)
}
}

/** Parse number as fixed point according to JSON number syntax.
* See http://json.org/number.gif
* @returns true on success, false on error.
* @note The result must be in the range (-10^18,10^18), otherwise an overflow error will trigger.
*/
bool ParseFixedPoint(const std::string &val, int decimals, int64_t *amount_out);


#endif // BITCOIN_UTIL_H
2 changes: 0 additions & 2 deletions src/wallet/rpcdump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

using namespace std;

void EnsureWalletIsUnlocked(bool fAllowAnonOnly);

std::string static EncodeDumpTime(int64_t nTime)
{
return DateTimeStrFormat("%Y-%m-%dT%H:%M:%SZ", nTime);
Expand Down

0 comments on commit ca740e8

Please sign in to comment.