Changeset View
Changeset View
Standalone View
Standalone View
src/chain.h
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | void SetNull() { | ||||
nTime = 0; | nTime = 0; | ||||
nTimeReceived = 0; | nTimeReceived = 0; | ||||
nBits = 0; | nBits = 0; | ||||
nNonce = 0; | nNonce = 0; | ||||
} | } | ||||
CBlockIndex() { SetNull(); } | CBlockIndex() { SetNull(); } | ||||
CBlockIndex(const CBlockHeader &block) { | explicit CBlockIndex(const CBlockHeader &block) { | ||||
SetNull(); | SetNull(); | ||||
nVersion = block.nVersion; | nVersion = block.nVersion; | ||||
hashMerkleRoot = block.hashMerkleRoot; | hashMerkleRoot = block.hashMerkleRoot; | ||||
nTime = block.nTime; | nTime = block.nTime; | ||||
nTimeReceived = 0; | nTimeReceived = 0; | ||||
nBits = block.nBits; | nBits = block.nBits; | ||||
nNonce = block.nNonce; | nNonce = block.nNonce; | ||||
▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | |||||
extern BlockMap mapBlockIndex; | extern BlockMap mapBlockIndex; | ||||
arith_uint256 GetBlockProof(const CBlockIndex &block); | arith_uint256 GetBlockProof(const CBlockIndex &block); | ||||
/** | /** | ||||
* Return the time it would take to redo the work difference between from and | * Return the time it would take to redo the work difference between from and | ||||
* to, assuming the current hashrate corresponds to the difficulty at tip, in | * to, assuming the current hashrate corresponds to the difficulty at tip, in | ||||
* seconds. | * seconds. | ||||
jasonbcox: Remove this. Looks accidentally added. | |||||
*/ | */ | ||||
int64_t GetBlockProofEquivalentTime(const CBlockIndex &to, | int64_t GetBlockProofEquivalentTime(const CBlockIndex &to, | ||||
const CBlockIndex &from, | const CBlockIndex &from, | ||||
const CBlockIndex &tip, | const CBlockIndex &tip, | ||||
const Consensus::Params &); | const Consensus::Params &); | ||||
/** | /** | ||||
* Find the forking point between two chain tips. | * Find the forking point between two chain tips. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |
Remove this. Looks accidentally added.