Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 679 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
class submitblock_StateCatcher : public CValidationInterface { | class submitblock_StateCatcher : public CValidationInterface { | ||||
public: | public: | ||||
uint256 hash; | uint256 hash; | ||||
bool found; | bool found; | ||||
CValidationState state; | CValidationState state; | ||||
submitblock_StateCatcher(const uint256 &hashIn) | explicit submitblock_StateCatcher(const uint256 &hashIn) | ||||
: hash(hashIn), found(false), state() {} | : hash(hashIn), found(false), state() {} | ||||
protected: | protected: | ||||
void BlockChecked(const CBlock &block, | void BlockChecked(const CBlock &block, | ||||
const CValidationState &stateIn) override { | const CValidationState &stateIn) override { | ||||
if (block.GetHash() != hash) { | if (block.GetHash() != hash) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |