Class EnrollmentPool
Constructors
Name | Description |
this
(db)
|
Constructor
|
Fields
Name | Type | Description |
log
|
Logger | Logger instance
|
Methods
Name | Description |
add
(enroll, avail_height, finder, findEnrollment, getPenaltyDeposit)
|
Add a enrollment data to the enrollment pool after validating it
|
addValidated
(enroll, avail_height)
|
Directly add an enrollment to the pool, without validation
|
count
()
|
|
getEnrollment
(enroll_hash, req_height)
|
Get the enrollment with the key
|
getEnrollments
(height)
|
Get the unregistered enrollments from the pool
And this is arranged in ascending order with the utxo_key
|
hasEnrollment
(enroll_hash, avail_height)
|
Check if a enrollment data exists in the enrollment pool.
|
remove
(enroll_hash)
|
Remove the enrollment data with the given key from the enrollment pool
|
removeExpired
(height)
|
Remove the enrollment data which did not make it into the intended block
from the enrollment pool
|