Bitcoin ABC  0.24.7
P2P Digital Currency
Classes | Functions
delegation_tests.cpp File Reference
#include <avalanche/delegation.h>
#include <avalanche/delegationbuilder.h>
#include <avalanche/test/util.h>
#include <avalanche/validation.h>
#include <streams.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
#include <util/strencodings.h>
Include dependency graph for delegation_tests.cpp:

Go to the source code of this file.

Classes

struct  TestVector
 

Functions

static void CheckDelegation (const Delegation &dg, const ProofRef &p, const CPubKey &expected_pubkey)
 
 BOOST_AUTO_TEST_CASE (verify_random)
 
static Proof getProof ()
 
 BOOST_AUTO_TEST_CASE (deserialization)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( deserialization  )

Definition at line 106 of file delegation_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( verify_random  )

Definition at line 33 of file delegation_tests.cpp.

Here is the call graph for this function:

◆ CheckDelegation()

static void CheckDelegation ( const Delegation dg,
const ProofRef p,
const CPubKey expected_pubkey 
)
static

Definition at line 22 of file delegation_tests.cpp.

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

◆ getProof()

static Proof getProof ( )
static

Definition at line 76 of file delegation_tests.cpp.

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