Bitcoin ABC 0.26.3
P2P Digital Currency
|
Simple class for regulating resource usage during CheckInputScripts (and CScriptCheck), atomic so as to be compatible with parallel validation. More...
#include <validation.h>
Public Member Functions | |
CheckInputsLimiter (int64_t limit) | |
bool | consume_and_check (int consumed) |
bool | check () |
Protected Attributes | |
std::atomic< int64_t > | remaining |
Simple class for regulating resource usage during CheckInputScripts (and CScriptCheck), atomic so as to be compatible with parallel validation.
Definition at line 383 of file validation.h.
|
inlineexplicit |
Definition at line 388 of file validation.h.
|
inline |
Definition at line 395 of file validation.h.
Definition at line 390 of file validation.h.
|
protected |
Definition at line 385 of file validation.h.