[validation] Remove REJECT code from CValidationState

We no longer send BIP 61 REJECT messages, so there's no need to set
a REJECT code in the CValidationState object.
This commit is contained in:
John Newbery
2019-09-30 16:25:04 -04:00
parent 0053e16714
commit e9d5a59e34
5 changed files with 72 additions and 96 deletions

View File

@@ -779,14 +779,6 @@ extern VersionBitsCache versionbitscache;
*/
int32_t ComputeBlockVersion(const CBlockIndex* pindexPrev, const Consensus::Params& params);
/** Reject codes greater or equal to this can be returned by AcceptToMemPool
* for transactions, to signal internal conditions. They cannot and should not
* be sent over the P2P network.
*/
static const unsigned int REJECT_INTERNAL = 0x100;
/** Too high fee. Can not be triggered by P2P transactions */
static const unsigned int REJECT_HIGHFEE = 0x100;
/** Get block file info entry for one block file */
CBlockFileInfo* GetBlockFileInfo(size_t n);