From f463cd107361a172a17e4c5510b06eb8a67aade0 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Thu, 28 Mar 2019 13:15:47 -0400 Subject: [wallet] Keep track of the best block time in the wallet Move nTimeBestReceived (which is only used for wallet rebroadcasts) into the wallet. --- src/interfaces/chain.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/interfaces/chain.cpp') diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp index e409ced60..6c918b73f 100644 --- a/src/interfaces/chain.cpp +++ b/src/interfaces/chain.cpp @@ -202,8 +202,12 @@ public: { m_notifications->BlockDisconnected(*block); } + void UpdatedBlockTip(const CBlockIndex* index, const CBlockIndex* fork_index, bool is_ibd) override + { + m_notifications->UpdatedBlockTip(); + } void ChainStateFlushed(const CBlockLocator& locator) override { m_notifications->ChainStateFlushed(locator); } - void ResendWalletTransactions(int64_t best_block_time, CConnman*) override + void ResendWalletTransactions(CConnman*) override { // `cs_main` is always held when this method is called, so it is safe to // call `assumeLocked`. This is awkward, and the `assumeLocked` method @@ -211,7 +215,7 @@ public: // is replaced by a wallet timer as suggested in // https://github.com/bitcoin/bitcoin/issues/15619 auto locked_chain = m_chain.assumeLocked(); - m_notifications->ResendWalletTransactions(*locked_chain, best_block_time); + m_notifications->ResendWalletTransactions(*locked_chain); } Chain& m_chain; Chain::Notifications* m_notifications; -- cgit v1.2.3