Port the BlockFound signal and parts of ScriptForMining from ZEC upstream

This commit is contained in:
Duke Leto
2020-03-07 14:36:22 -05:00
parent a2c8f752df
commit 35c68602e7
3 changed files with 10 additions and 3 deletions

View File

@@ -69,6 +69,10 @@ struct CMainSignals {
boost::signals2::signal<void (int64_t nBestBlockTime)> Broadcast;
/** Notifies listeners of a block validation result */
boost::signals2::signal<void (const CBlock&, const CValidationState&)> BlockChecked;
// boost::signals2::signal<void (boost::shared_ptr<CReserveScript>&)> ScriptForMining;
/** Notifies listeners that a block has been successfully mined */
boost::signals2::signal<void (const uint256 &)> BlockFound;
};
CMainSignals& GetMainSignals();