GNUnet 0.21.1
GNUNET_GNSRECORD_PowCalculationHandle Struct Reference

The handle to a PoW calculation. More...

Collaboration diagram for GNUNET_GNSRECORD_PowCalculationHandle:
[legend]

Data Fields

struct BestPow best [POW_COUNT]
 Current set of found PoWs. More...
 
struct GNUNET_GNSRECORD_PowPpow
 The final PoW result data structure. More...
 
uint64_t current_pow
 The current nonce to try. More...
 
unsigned int epochs
 Epochs how long the PoW should be valid. More...
 
unsigned int difficulty
 The difficulty (leading zeros) to achieve. More...
 

Detailed Description

The handle to a PoW calculation.

Used in iterative PoW rounds.

Definition at line 55 of file gnsrecord_pow.c.

Field Documentation

◆ best

struct BestPow GNUNET_GNSRECORD_PowCalculationHandle::best[POW_COUNT]

Current set of found PoWs.

Definition at line 60 of file gnsrecord_pow.c.

Referenced by calculate_score().

◆ pow

struct GNUNET_GNSRECORD_PowP* GNUNET_GNSRECORD_PowCalculationHandle::pow

The final PoW result data structure.

Definition at line 65 of file gnsrecord_pow.c.

◆ current_pow

uint64_t GNUNET_GNSRECORD_PowCalculationHandle::current_pow

The current nonce to try.

Definition at line 70 of file gnsrecord_pow.c.

◆ epochs

unsigned int GNUNET_GNSRECORD_PowCalculationHandle::epochs

Epochs how long the PoW should be valid.

This is added on top of the difficulty in the PoW.

Definition at line 76 of file gnsrecord_pow.c.

◆ difficulty

unsigned int GNUNET_GNSRECORD_PowCalculationHandle::difficulty

The difficulty (leading zeros) to achieve.

Definition at line 81 of file gnsrecord_pow.c.


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