Bitcoin ABC 0.32.8
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/stakecontender.h>
#include <avalanche/validation.h>
#include <common/args.h>
#include <config.h>
#include <core_io.h>
#include <index/txindex.h>
#include <key_io.h>
#include <net_processing.h>
#include <node/context.h>
#include <policy/block/stakingrewards.h>
#include <rpc/blockchain.h>
#include <rpc/rawtransaction_util.h>
#include <rpc/server.h>
#include <rpc/server_util.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 RPCHelpMan getavalanchekey ()
 
static CPubKey ParsePubKey (const UniValue &param)
 
static bool registerProofIfNeeded (const avalanche::Processor &avalanche, avalanche::ProofRef proof, avalanche::ProofRegistrationState &state)
 
static bool registerProofIfNeeded (const avalanche::Processor &avalanche, 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 RPCHelpMan addavalanchenode ()
 
static RPCHelpMan buildavalancheproof ()
 
static RPCHelpMan decodeavalancheproof ()
 
static RPCHelpMan delegateavalancheproof ()
 
static RPCHelpMan decodeavalanchedelegation ()
 
static RPCHelpMan getavalancheinfo ()
 
static RPCHelpMan getavalanchepeerinfo ()
 
static RPCHelpMan getavalancheproofs ()
 
static RPCHelpMan getstakingreward ()
 
static RPCHelpMan hasstakingreward ()
 
static RPCHelpMan setstakingreward ()
 
static RPCHelpMan getremoteproofs ()
 
static RPCHelpMan getrawavalancheproof ()
 
static RPCHelpMan invalidateavalancheproof ()
 
static RPCHelpMan isfinalblock ()
 
static RPCHelpMan isfinaltransaction ()
 
static RPCHelpMan reconsideravalancheproof ()
 
static RPCHelpMan sendavalancheproof ()
 
static RPCHelpMan verifyavalancheproof ()
 
static RPCHelpMan verifyavalanchedelegation ()
 
static RPCHelpMan setflakyproof ()
 
static RPCHelpMan getflakyproofs ()
 
static RPCHelpMan getavailabilityscore ()
 
static RPCHelpMan getstakecontendervote ()
 
static RPCHelpMan finalizetransaction ()
 
static RPCHelpMan removetransaction ()
 
static RPCHelpMan getfinaltransactions ()
 
void RegisterAvalancheRPCCommands (CRPCTable &t)
 

Function Documentation

◆ addavalanchenode()

static RPCHelpMan addavalanchenode ( )
static

Definition at line 122 of file avalanche.cpp.

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

◆ buildavalancheproof()

static RPCHelpMan buildavalancheproof ( )
static

Definition at line 207 of file avalanche.cpp.

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

◆ decodeavalanchedelegation()

static RPCHelpMan decodeavalanchedelegation ( )
static

Definition at line 535 of file avalanche.cpp.

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

◆ decodeavalancheproof()

static RPCHelpMan decodeavalancheproof ( )
static

Definition at line 338 of file avalanche.cpp.

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

◆ delegateavalancheproof()

static RPCHelpMan delegateavalancheproof ( )
static

Definition at line 463 of file avalanche.cpp.

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

◆ finalizetransaction()

static RPCHelpMan finalizetransaction ( )
static

Definition at line 1867 of file avalanche.cpp.

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

◆ getavailabilityscore()

static RPCHelpMan getavailabilityscore ( )
static

Definition at line 1807 of file avalanche.cpp.

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

◆ getavalancheinfo()

static RPCHelpMan getavalancheinfo ( )
static

Definition at line 618 of file avalanche.cpp.

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

◆ getavalanchekey()

static RPCHelpMan getavalanchekey ( )
static

Definition at line 35 of file avalanche.cpp.

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

◆ getavalanchepeerinfo()

static RPCHelpMan getavalanchepeerinfo ( )
static

Definition at line 829 of file avalanche.cpp.

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

◆ getavalancheproofs()

static RPCHelpMan getavalancheproofs ( )
static

Definition at line 925 of file avalanche.cpp.

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

◆ getfinaltransactions()

static RPCHelpMan getfinaltransactions ( )
static

Definition at line 1987 of file avalanche.cpp.

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

◆ getflakyproofs()

static RPCHelpMan getflakyproofs ( )
static

Definition at line 1734 of file avalanche.cpp.

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

◆ getrawavalancheproof()

static RPCHelpMan getrawavalancheproof ( )
static

Definition at line 1279 of file avalanche.cpp.

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

◆ getremoteproofs()

static RPCHelpMan getremoteproofs ( )
static

Definition at line 1225 of file avalanche.cpp.

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

◆ getstakecontendervote()

static RPCHelpMan getstakecontendervote ( )
static

Definition at line 1835 of file avalanche.cpp.

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

◆ getstakingreward()

static RPCHelpMan getstakingreward ( )
static

Definition at line 987 of file avalanche.cpp.

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

◆ hasstakingreward()

static RPCHelpMan hasstakingreward ( )
static

Definition at line 1094 of file avalanche.cpp.

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

◆ invalidateavalancheproof()

static RPCHelpMan invalidateavalancheproof ( )
static

Definition at line 1349 of file avalanche.cpp.

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

◆ isfinalblock()

static RPCHelpMan isfinalblock ( )
static

Definition at line 1400 of file avalanche.cpp.

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

◆ isfinaltransaction()

static RPCHelpMan isfinaltransaction ( )
static

Definition at line 1443 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 51 of file avalanche.cpp.

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

◆ reconsideravalancheproof()

static RPCHelpMan reconsideravalancheproof ( )
static

Definition at line 1541 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)

Definition at line 2048 of file avalanche.cpp.

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

◆ registerProofIfNeeded() [1/2]

static bool registerProofIfNeeded ( const avalanche::Processor avalanche,
avalanche::ProofRef  proof 
)
static

Definition at line 76 of file avalanche.cpp.

Here is the call graph for this function:

◆ registerProofIfNeeded() [2/2]

static bool registerProofIfNeeded ( const avalanche::Processor avalanche,
avalanche::ProofRef  proof,
avalanche::ProofRegistrationState state 
)
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:

◆ removetransaction()

static RPCHelpMan removetransaction ( )
static

Definition at line 1936 of file avalanche.cpp.

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

◆ sendavalancheproof()

static RPCHelpMan sendavalancheproof ( )
static

Definition at line 1595 of file avalanche.cpp.

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

◆ setflakyproof()

static RPCHelpMan setflakyproof ( )
static

Definition at line 1689 of file avalanche.cpp.

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

◆ setstakingreward()

static RPCHelpMan setstakingreward ( )
static

Definition at line 1146 of file avalanche.cpp.

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

◆ verifyavalanchedelegation()

static RPCHelpMan verifyavalanchedelegation ( )
static

Definition at line 1665 of file avalanche.cpp.

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

◆ verifyavalancheproof()

static RPCHelpMan verifyavalancheproof ( )
static

Definition at line 1643 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 82 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 96 of file avalanche.cpp.

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