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