Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Classes | Macros | Functions | Variables
checkpointsync.h File Reference
#include "net.h"
#include "util.h"
Include dependency graph for checkpointsync.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CUnsignedSyncCheckpoint
 
class  CSyncCheckpoint
 

Macros

#define CHECKPOINT_MAX_SPAN   (60 * 60 * 4)
 

Functions

CBlockIndexGetLastSyncCheckpoint ()
 
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)
 

Variables

uint256 hashSyncCheckpoint
 
CSyncCheckpoint checkpointMessage
 
uint256 hashInvalidCheckpoint
 
CCriticalSection cs_hashSyncCheckpoint
 
std::string strCheckpointWarning
 

Macro Definition Documentation

#define CHECKPOINT_MAX_SPAN   (60 * 60 * 4)

Definition at line 11 of file checkpointsync.h.

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.

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.

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.

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.

CCriticalSection cs_hashSyncCheckpoint

Definition at line 91 of file checkpointsync.cpp.

uint256 hashInvalidCheckpoint

Definition at line 90 of file checkpointsync.cpp.

uint256 hashSyncCheckpoint

Definition at line 86 of file checkpointsync.cpp.

std::string strCheckpointWarning

Definition at line 92 of file checkpointsync.cpp.