[txdownload] add read-only reference to mempool

This will become necessary in later commits that query mempool. We also
introduce the TxDownloadOptions in this commit to make the later diff
easier to review.
This commit is contained in:
glozow
2024-04-16 17:04:00 +01:00
parent af918349de
commit 84e4ef843d
4 changed files with 15 additions and 4 deletions

View File

@@ -7,13 +7,14 @@
#include <chain.h>
#include <consensus/validation.h>
#include <txmempool.h>
#include <validation.h>
#include <validationinterface.h>
namespace node {
// TxDownloadManager wrappers
TxDownloadManager::TxDownloadManager() :
m_impl{std::make_unique<TxDownloadManagerImpl>()}
TxDownloadManager::TxDownloadManager(const TxDownloadOptions& options) :
m_impl{std::make_unique<TxDownloadManagerImpl>(options)}
{}
TxDownloadManager::~TxDownloadManager() = default;