Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.cpp
Show First 20 Lines • Show All 283 Lines • ▼ Show 20 Lines | public: | ||||
const CBlockIndex *block2 = LookupBlockIndex(block_hash2); | const CBlockIndex *block2 = LookupBlockIndex(block_hash2); | ||||
const CBlockIndex *ancestor = | const CBlockIndex *ancestor = | ||||
block1 && block2 ? LastCommonAncestor(block1, block2) : nullptr; | block1 && block2 ? LastCommonAncestor(block1, block2) : nullptr; | ||||
return FillBlock(ancestor, ancestor_out, lock) & | return FillBlock(ancestor, ancestor_out, lock) & | ||||
FillBlock(block1, block1_out, lock) & | FillBlock(block1, block1_out, lock) & | ||||
FillBlock(block2, block2_out, lock); | FillBlock(block2, block2_out, lock); | ||||
} | } | ||||
void findCoins(std::map<COutPoint, Coin> &coins) override { | void findCoins(std::map<COutPoint, Coin> &coins) override { | ||||
return FindCoins(coins); | return FindCoins(m_node, coins); | ||||
} | } | ||||
double guessVerificationProgress(const BlockHash &block_hash) override { | double guessVerificationProgress(const BlockHash &block_hash) override { | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
return GuessVerificationProgress(Params().TxData(), | return GuessVerificationProgress(Params().TxData(), | ||||
LookupBlockIndex(block_hash)); | LookupBlockIndex(block_hash)); | ||||
} | } | ||||
bool hasBlocks(const BlockHash &block_hash, int min_height, | bool hasBlocks(const BlockHash &block_hash, int min_height, | ||||
Optional<int> max_height) override { | Optional<int> max_height) override { | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |