mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Merge pull request #6519
7f1f8f5Move mempool rejections to new debug category (Wladimir J. van der Laan)66daed5Add information to errors in ConnectBlock, CheckBlock (Wladimir J. van der Laan)6cab808Remove most logging from transaction validation (Wladimir J. van der Laan)9003c7cAdd function to convert CValidationState to a human-readable message (Wladimir J. van der Laan)dc58258Introduce REJECT_INTERNAL codes for local AcceptToMempool errors (Wladimir J. van der Laan)fbf44e6Add debug message to CValidationState for optional extra information (Wladimir J. van der Laan)
This commit is contained in:
11
src/main.h
11
src/main.h
@@ -455,7 +455,16 @@ extern CBlockTreeDB *pblocktree;
|
||||
*/
|
||||
int GetSpendHeight(const CCoinsViewCache& inputs);
|
||||
|
||||
/** local "reject" message codes for RPC which can not be triggered by p2p trasactions */
|
||||
/** 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;
|
||||
/** Transaction is already known (either in mempool or blockchain) */
|
||||
static const unsigned int REJECT_ALREADY_KNOWN = 0x101;
|
||||
/** Transaction conflicts with a transaction already known */
|
||||
static const unsigned int REJECT_CONFLICT = 0x102;
|
||||
|
||||
#endif // BITCOIN_MAIN_H
|
||||
|
||||
Reference in New Issue
Block a user