Bitcoin ABC  0.24.7
P2P Digital Currency
Functions
avalanche.cpp File Reference
#include <avalanche/avalanche.h>
#include <avalanche/delegation.h>
#include <avalanche/delegationbuilder.h>
#include <avalanche/peermanager.h>
#include <avalanche/processor.h>
#include <avalanche/proof.h>
#include <avalanche/proofbuilder.h>
#include <avalanche/validation.h>
#include <config.h>
#include <core_io.h>
#include <key_io.h>
#include <net_processing.h>
#include <node/context.h>
#include <rpc/blockchain.h>
#include <rpc/server.h>
#include <rpc/util.h>
#include <util/strencodings.h>
#include <util/translation.h>
#include <univalue.h>
Include dependency graph for avalanche.cpp:

Go to the source code of this file.

Functions

static UniValue getavalanchekey (const Config &config, const JSONRPCRequest &request)
 
static CPubKey ParsePubKey (const UniValue &param)
 
static bool registerProofIfNeeded (avalanche::ProofRef proof)
 
static void verifyDelegationOrThrow (avalanche::Delegation &dg, const std::string &dgHex, CPubKey &auth)
 
static void verifyProofOrThrow (const NodeContext &node, avalanche::Proof &proof, const std::string &proofHex)
 
static UniValue addavalanchenode (const Config &config, const JSONRPCRequest &request)
 
static UniValue buildavalancheproof (const Config &config, const JSONRPCRequest &request)
 
static UniValue decodeavalancheproof (const Config &config, const JSONRPCRequest &request)
 
static UniValue delegateavalancheproof (const Config &config, const JSONRPCRequest &request)
 
static UniValue getavalanchepeerinfo (const Config &config, const JSONRPCRequest &request)
 
static UniValue getrawavalancheproof (const Config &config, const JSONRPCRequest &request)
 
static UniValue sendavalancheproof (const Config &config, const JSONRPCRequest &request)
 
static UniValue verifyavalancheproof (const Config &config, const JSONRPCRequest &request)
 
void RegisterAvalancheRPCCommands (CRPCTable &t)
 Register Avalanche RPC commands. More...
 

Function Documentation

◆ addavalanchenode()

static UniValue addavalanchenode ( const Config config,
const JSONRPCRequest request 
)
static

Definition at line 95 of file avalanche.cpp.

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

◆ buildavalancheproof()

static UniValue buildavalancheproof ( const Config config,
const JSONRPCRequest request 
)
static

Definition at line 184 of file avalanche.cpp.

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

◆ decodeavalancheproof()

static UniValue decodeavalancheproof ( const Config config,
const JSONRPCRequest request 
)
static

Definition at line 322 of file avalanche.cpp.

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

◆ delegateavalancheproof()

static UniValue delegateavalancheproof ( const Config config,
const JSONRPCRequest request 
)
static

Definition at line 442 of file avalanche.cpp.

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

◆ getavalanchekey()

static UniValue getavalanchekey ( const Config config,
const JSONRPCRequest request 
)
static

Definition at line 26 of file avalanche.cpp.

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

◆ getavalanchepeerinfo()

static UniValue getavalanchepeerinfo ( const Config config,
const JSONRPCRequest request 
)
static

Definition at line 518 of file avalanche.cpp.

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

◆ getrawavalancheproof()

static UniValue getrawavalancheproof ( const Config config,
const JSONRPCRequest request 
)
static

Definition at line 585 of file avalanche.cpp.

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

◆ ParsePubKey()

static CPubKey ParsePubKey ( const UniValue param)
static

Definition at line 44 of file avalanche.cpp.

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

◆ RegisterAvalancheRPCCommands()

void RegisterAvalancheRPCCommands ( CRPCTable t)

Register Avalanche RPC commands.

Definition at line 705 of file avalanche.cpp.

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

◆ registerProofIfNeeded()

static bool registerProofIfNeeded ( avalanche::ProofRef  proof)
static

Definition at line 56 of file avalanche.cpp.

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

◆ sendavalancheproof()

static UniValue sendavalancheproof ( const Config config,
const JSONRPCRequest request 
)
static

Definition at line 636 of file avalanche.cpp.

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

◆ verifyavalancheproof()

static UniValue verifyavalancheproof ( const Config config,
const JSONRPCRequest request 
)
static

Definition at line 681 of file avalanche.cpp.

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

◆ verifyDelegationOrThrow()

static void verifyDelegationOrThrow ( avalanche::Delegation dg,
const std::string &  dgHex,
CPubKey auth 
)
static

Definition at line 63 of file avalanche.cpp.

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

◆ verifyProofOrThrow()

static void verifyProofOrThrow ( const NodeContext node,
avalanche::Proof proof,
const std::string &  proofHex 
)
static

Definition at line 77 of file avalanche.cpp.

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