Still pass the disconect block index
This commit is contained in:
parent
6dce8d2736
commit
a80f42eabd
@ -2350,7 +2350,7 @@ bool static DisconnectTip(CValidationState& state, const CChainParams& chainpara
|
|||||||
UpdateTip(pindexDelete->pprev, chainparams);
|
UpdateTip(pindexDelete->pprev, chainparams);
|
||||||
// Let wallets know transactions went from 1-confirmed to
|
// Let wallets know transactions went from 1-confirmed to
|
||||||
// 0-confirmed or conflicted:
|
// 0-confirmed or conflicted:
|
||||||
GetMainSignals().BlockDisconnected(pblock);
|
GetMainSignals().BlockDisconnected(pblock, pindexDelete);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ struct MainSignalsInstance {
|
|||||||
boost::signals2::signal<void (const CBlockIndex *, const CBlockIndex *, bool fInitialDownload)> UpdatedBlockTip;
|
boost::signals2::signal<void (const CBlockIndex *, const CBlockIndex *, bool fInitialDownload)> UpdatedBlockTip;
|
||||||
boost::signals2::signal<void (const CTransactionRef &)> TransactionAddedToMempool;
|
boost::signals2::signal<void (const CTransactionRef &)> TransactionAddedToMempool;
|
||||||
boost::signals2::signal<void (const std::shared_ptr<const CBlock> &, const CBlockIndex *pindex, const std::vector<CTransactionRef>&)> BlockConnected;
|
boost::signals2::signal<void (const std::shared_ptr<const CBlock> &, const CBlockIndex *pindex, const std::vector<CTransactionRef>&)> BlockConnected;
|
||||||
boost::signals2::signal<void (const std::shared_ptr<const CBlock> &)> BlockDisconnected;
|
boost::signals2::signal<void (const std::shared_ptr<const CBlock> &, const CBlockIndex* pindexDisconnected)> BlockDisconnected;
|
||||||
boost::signals2::signal<void (const CBlockLocator &)> SetBestChain;
|
boost::signals2::signal<void (const CBlockLocator &)> SetBestChain;
|
||||||
boost::signals2::signal<void (const uint256 &)> Inventory;
|
boost::signals2::signal<void (const uint256 &)> Inventory;
|
||||||
boost::signals2::signal<void (int64_t nBestBlockTime, CConnman* connman)> Broadcast;
|
boost::signals2::signal<void (int64_t nBestBlockTime, CConnman* connman)> Broadcast;
|
||||||
@ -132,8 +132,8 @@ void CMainSignals::BlockConnected(const std::shared_ptr<const CBlock> &pblock, c
|
|||||||
m_internals->BlockConnected(pblock, pindex, vtxConflicted);
|
m_internals->BlockConnected(pblock, pindex, vtxConflicted);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMainSignals::BlockDisconnected(const std::shared_ptr<const CBlock> &pblock) {
|
void CMainSignals::BlockDisconnected(const std::shared_ptr<const CBlock> &pblock, const CBlockIndex* pindexDisconnected) {
|
||||||
m_internals->BlockDisconnected(pblock);
|
m_internals->BlockDisconnected(pblock, pindexDisconnected);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMainSignals::SetBestChain(const CBlockLocator &locator) {
|
void CMainSignals::SetBestChain(const CBlockLocator &locator) {
|
||||||
|
@ -103,7 +103,7 @@ public:
|
|||||||
void UpdatedBlockTip(const CBlockIndex *, const CBlockIndex *, bool fInitialDownload);
|
void UpdatedBlockTip(const CBlockIndex *, const CBlockIndex *, bool fInitialDownload);
|
||||||
void TransactionAddedToMempool(const CTransactionRef &);
|
void TransactionAddedToMempool(const CTransactionRef &);
|
||||||
void BlockConnected(const std::shared_ptr<const CBlock> &, const CBlockIndex *pindex, const std::vector<CTransactionRef> &);
|
void BlockConnected(const std::shared_ptr<const CBlock> &, const CBlockIndex *pindex, const std::vector<CTransactionRef> &);
|
||||||
void BlockDisconnected(const std::shared_ptr<const CBlock> &);
|
void BlockDisconnected(const std::shared_ptr<const CBlock> &, const CBlockIndex* pindexDisconnected);
|
||||||
void NotifyTransactionLock(const CTransaction &tx, const llmq::CInstantSendLock& islock);
|
void NotifyTransactionLock(const CTransaction &tx, const llmq::CInstantSendLock& islock);
|
||||||
void NotifyChainLock(const CBlockIndex* pindex, const llmq::CChainLockSig& clsig);
|
void NotifyChainLock(const CBlockIndex* pindex, const llmq::CChainLockSig& clsig);
|
||||||
void NotifyGovernanceVote(const CGovernanceVote &vote);
|
void NotifyGovernanceVote(const CGovernanceVote &vote);
|
||||||
|
Loading…
Reference in New Issue
Block a user