Add UpdatedBlockTip signal to CMainSignals and CValidationInterface

This commit is contained in:
João Barbosa
2015-05-07 15:49:00 +01:00
parent 9733bc99a0
commit 5624e055b3
3 changed files with 8 additions and 0 deletions

View File

@@ -2303,6 +2303,7 @@ bool ActivateBestChain(CValidationState &state, const CBlock *pblock) {
pnode->PushInventory(CInv(MSG_BLOCK, hashNewTip));
}
// Notify external listeners about the new tip.
GetMainSignals().UpdatedBlockTip(hashNewTip);
uiInterface.NotifyBlockTip(hashNewTip);
}
} while(pindexMostWork != chainActive.Tip());