Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Functions | Variables
checkpointsync.cpp File Reference
#include <boost/foreach.hpp>
#include "checkpoints.h"
#include "checkpointsync.h"
#include "base58.h"
#include "bitcoinrpc.h"
#include "main.h"
#include "txdb.h"
#include "uint256.h"
Include dependency graph for checkpointsync.cpp:

Go to the source code of this file.

Functions

CBlockIndexGetLastSyncCheckpoint ()
 
bool ValidateSyncCheckpoint (uint256 hashCheckpoint)
 
bool WriteSyncCheckpoint (const uint256 &hashCheckpoint)
 
bool IsSyncCheckpointEnforced ()
 
bool AcceptPendingSyncCheckpoint ()
 
uint256 AutoSelectSyncCheckpoint ()
 
bool CheckSyncCheckpoint (const uint256 &hashBlock, const CBlockIndex *pindexPrev)
 
bool WantedByPendingSyncCheckpoint (uint256 hashBlock)
 
bool ResetSyncCheckpoint ()
 
void AskForPendingSyncCheckpoint (CNode *pfrom)
 
bool CheckCheckpointPubKey ()
 
bool SetCheckpointPrivKey (std::string strPrivKey)
 
bool SendSyncCheckpoint (uint256 hashCheckpoint)
 
bool IsMatureSyncCheckpoint ()
 
bool IsSyncCheckpointTooOld (unsigned int nSeconds)
 
uint256 WantedByOrphan (const CBlock *pblockOrphan)
 
Value getcheckpoint (const Array &params, bool fHelp)
 
Value sendcheckpoint (const Array &params, bool fHelp)
 
Value enforcecheckpoint (const Array &params, bool fHelp)
 

Variables

uint256 hashSyncCheckpoint = 0
 
uint256 hashPendingCheckpoint = 0
 
CSyncCheckpoint checkpointMessage
 
CSyncCheckpoint checkpointMessagePending
 
uint256 hashInvalidCheckpoint = 0
 
CCriticalSection cs_hashSyncCheckpoint
 
std::string strCheckpointWarning
 

Function Documentation

bool AcceptPendingSyncCheckpoint ( )

Definition at line 166 of file checkpointsync.cpp.

void AskForPendingSyncCheckpoint ( CNode pfrom)

Definition at line 285 of file checkpointsync.cpp.

uint256 AutoSelectSyncCheckpoint ( )

Definition at line 207 of file checkpointsync.cpp.

bool CheckCheckpointPubKey ( )

Definition at line 293 of file checkpointsync.cpp.

bool CheckSyncCheckpoint ( const uint256 hashBlock,
const CBlockIndex pindexPrev 
)

Definition at line 217 of file checkpointsync.cpp.

Value enforcecheckpoint ( const Array params,
bool  fHelp 
)

Definition at line 514 of file checkpointsync.cpp.

Value getcheckpoint ( const Array params,
bool  fHelp 
)

Definition at line 457 of file checkpointsync.cpp.

CBlockIndex* GetLastSyncCheckpoint ( )

Definition at line 95 of file checkpointsync.cpp.

bool IsMatureSyncCheckpoint ( )

Definition at line 364 of file checkpointsync.cpp.

bool IsSyncCheckpointEnforced ( )

Definition at line 161 of file checkpointsync.cpp.

bool IsSyncCheckpointTooOld ( unsigned int  nSeconds)

Definition at line 374 of file checkpointsync.cpp.

bool ResetSyncCheckpoint ( )

Definition at line 257 of file checkpointsync.cpp.

Value sendcheckpoint ( const Array params,
bool  fHelp 
)

Definition at line 481 of file checkpointsync.cpp.

bool SendSyncCheckpoint ( uint256  hashCheckpoint)

Definition at line 331 of file checkpointsync.cpp.

bool SetCheckpointPrivKey ( std::string  strPrivKey)

Definition at line 310 of file checkpointsync.cpp.

bool ValidateSyncCheckpoint ( uint256  hashCheckpoint)

Definition at line 106 of file checkpointsync.cpp.

uint256 WantedByOrphan ( const CBlock pblockOrphan)

Definition at line 384 of file checkpointsync.cpp.

bool WantedByPendingSyncCheckpoint ( uint256  hashBlock)

Definition at line 243 of file checkpointsync.cpp.

bool WriteSyncCheckpoint ( const uint256 hashCheckpoint)

Definition at line 148 of file checkpointsync.cpp.

Variable Documentation

CSyncCheckpoint checkpointMessage

Definition at line 88 of file checkpointsync.cpp.

CSyncCheckpoint checkpointMessagePending

Definition at line 89 of file checkpointsync.cpp.

CCriticalSection cs_hashSyncCheckpoint

Definition at line 91 of file checkpointsync.cpp.

uint256 hashInvalidCheckpoint = 0

Definition at line 90 of file checkpointsync.cpp.

uint256 hashPendingCheckpoint = 0

Definition at line 87 of file checkpointsync.cpp.

uint256 hashSyncCheckpoint = 0

Definition at line 86 of file checkpointsync.cpp.

std::string strCheckpointWarning

Definition at line 92 of file checkpointsync.cpp.