diff options
| author | Jonas Schnelli <[email protected]> | 2015-11-26 15:48:26 +0100 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2015-11-30 08:50:59 +0100 |
| commit | 012fc91511b153ce3fd3e9fb7bbed8f85fb1690e (patch) | |
| tree | 1360a783f7f2cf341b035822558aa86d705b8335 /src/ui_interface.h | |
| parent | Merge pull request #7129 (diff) | |
| download | discoin-012fc91511b153ce3fd3e9fb7bbed8f85fb1690e.tar.xz discoin-012fc91511b153ce3fd3e9fb7bbed8f85fb1690e.zip | |
NotifyBlockTip signal: switch from hash (uint256) to CBlockIndex*
- also adds a boolean for indication if the tip update was happening during initial sync
- emit notification also during initial sync
Diffstat (limited to 'src/ui_interface.h')
| -rw-r--r-- | src/ui_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui_interface.h b/src/ui_interface.h index e40247993..00d930312 100644 --- a/src/ui_interface.h +++ b/src/ui_interface.h @@ -15,6 +15,7 @@ class CBasicKeyStore; class CWallet; class uint256; +class CBlockIndex; /** General change type (added, updated, removed). */ enum ChangeType @@ -94,7 +95,7 @@ public: boost::signals2::signal<void (const std::string &title, int nProgress)> ShowProgress; /** New block has been accepted */ - boost::signals2::signal<void (const uint256& hash)> NotifyBlockTip; + boost::signals2::signal<void (bool, const CBlockIndex *)> NotifyBlockTip; /** Banlist did change. */ boost::signals2::signal<void (void)> BannedListChanged; |