Bitcoin ABC  0.24.7
P2P Digital Currency
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_t > remaining
 

Detailed Description

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

Definition at line 300 of file validation.h.

Constructor & Destructor Documentation

◆ CheckInputsLimiter()

CheckInputsLimiter::CheckInputsLimiter ( int64_t  limit)
inlineexplicit

Definition at line 305 of file validation.h.

Member Function Documentation

◆ check()

bool CheckInputsLimiter::check ( )
inline

Definition at line 312 of file validation.h.

◆ consume_and_check()

bool CheckInputsLimiter::consume_and_check ( int  consumed)
inline

Definition at line 307 of file validation.h.

Here is the caller graph for this function:

Member Data Documentation

◆ remaining

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

Definition at line 302 of file validation.h.


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