message: Change NULL to C++11 nullptr in main.h
diff: @@ -261,7 +261,7 @@ FILE *OpenUndoFile(const CDiskBlockPos &pos, bool fReadOnly = false);
  /** Translation to a filesystem path */
  fs::path GetBlockPosFilename(const CDiskBlockPos &pos, const char *prefix);
  /** Import blocks from an external file */
  -bool LoadExternalBlockFile(const CChainParams &chainparams, FILE *fileIn, CDiskBlockPos *dbp = NULL);
  +bool LoadExternalBlockFile(const CChainParams &chainparams, FILE *fileIn, CDiskBlockPos *dbp = nullptr);
  /** Initialize a new block tree database + block data on disk */
  bool InitBlockIndex(const CChainParams &chainparams);
  /** Load the block tree and coins database from disk */
  @@ -274,7 +274,7 @@ bool AlreadyHave(const CInv &);
  bool AcceptBlockHeader(const CBlockHeader &block,
  CValidationState &state,
  const CChainParams &chainparams,
  - CBlockIndex **ppindex = NULL);
  + CBlockIndex **ppindex = nullptr);
  /** Process a single protocol messages received from a given node */
  bool ProcessMessage(CNode *pfrom, std::string strCommand, CDataStream &vRecv, int64_t nTimeReceived);
  @@ -311,7 +311,7 @@ bool GetTransaction(const uint256 &hash,
  /** Find the best known block, and make it the tip of the block chain */
  bool ActivateBestChain(CValidationState &state,
  const CChainParams &chainparams,
  - const CBlock *pblock = NULL,
  + const CBlock *pblock = nullptr,
  bool fParallel = false);
  CAmount GetBlockSubsidy(int nHeight, const Consensus::Params &consensusParams);
  @@ -406,8 +406,8 @@ bool CheckInputs(const CTransaction &tx,
  unsigned int flags,
  bool cacheStore,
  ValidationResourceTracker *resourceTracker,
  - std::vector<CScriptCheck> *pvChecks = NULL,
  - unsigned char *sighashType = NULL);
  + std::vector<CScriptCheck> *pvChecks = nullptr,
  + unsigned char *sighashType = nullptr);
  /** Apply the effects of this transaction on the UTXO set represented by view */
  @@ -438,7 +438,10 @@ bool TestLockPointValidity(const LockPoints *lp);
  *
  * See consensus/consensus.h for flag definitions.
  */
  -bool CheckSequenceLocks(const CTransaction &tx, int flags, LockPoints *lp = NULL, bool useExistingLockPoints = false);
  +bool CheckSequenceLocks(const CTransaction &tx,
  + int flags,
  + LockPoints *lp = nullptr,
  + bool useExistingLockPoints = false);
  /**
  * Class that keeps track of number of signature operations
  @@ -488,7 +491,7 @@ bool DisconnectBlock(const CBlock &block,
  CValidationState &state,
  const CBlockIndex *pindex,
  CCoinsViewCache &coins,
  - bool *pfClean = NULL);
  + bool *pfClean = nullptr);
  /** Apply the effects of this block (with given index) on the UTXO set represented by coins */
  bool ConnectBlock(const CBlock &block,
  @@ -525,7 +528,7 @@ bool CheckAgainstCheckpoint(unsigned int height, const uint256 &hash, const CCha
  /** Store block on disk. If dbp is non-NULL, the file is known to already reside on disk */
  bool AcceptBlock(CBlock &block, CValidationState &state, CBlockIndex **pindex, bool fRequested, CDiskBlockPos *dbp);
  -bool AcceptBlockHeader(const CBlockHeader &block, CValidationState &state, CBlockIndex **ppindex = NULL);
  +bool AcceptBlockHeader(const CBlockHeader &block, CValidationState &state, CBlockIndex **ppindex = nullptr);
  /** RAII wrapper for VerifyDB: Verify consistency of the block and coin databases */
  class CVerifyDB
  