Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
CheckInputsLimiter Class Reference

Simple class for regulating resource usage during CheckInputScripts (and CScriptCheck), atomic so as to be compatible with parallel validation. More...

#include <validation.h>

Inheritance diagram for CheckInputsLimiter:
[legend]

Public Member Functions

 CheckInputsLimiter (int64_t limit)
 
bool consume_and_check (int consumed)
 
bool check ()
 

Protected Attributes

std::atomic< int64_tremaining
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CheckInputsLimiter()

CheckInputsLimiter::CheckInputsLimiter ( int64_t  limit)
inlineexplicit

Definition at line 388 of file validation.h.

Member Function Documentation

◆ check()

bool CheckInputsLimiter::check ( )
inline

Definition at line 395 of file validation.h.

◆ consume_and_check()

bool CheckInputsLimiter::consume_and_check ( int  consumed)
inline

Definition at line 390 of file validation.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ remaining

std::atomic<int64_t> CheckInputsLimiter::remaining
protected

Definition at line 385 of file validation.h.


The documentation for this class was generated from the following file: