aboutsummaryrefslogtreecommitdiff
path: root/src/index/base.cpp
diff options
context:
space:
mode:
authorstickies-v <stickies-v@protonmail.com>2022-08-31 16:43:58 +0100
committerstickies-v <stickies-v@protonmail.com>2022-09-13 19:10:41 +0100
commit200d84d5681918523d982b9ddf60d1127edcb448 (patch)
tree2e48f3415525967d344c6ab097a0aa78a4594279 /src/index/base.cpp
parent97f5b20c12ca6ccf89d7720a5d41eaf4cda1b695 (diff)
downloadbitcoin-200d84d5681918523d982b9ddf60d1127edcb448.tar.xz
refactor: use std::string for index names
Diffstat (limited to 'src/index/base.cpp')
-rw-r--r--src/index/base.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/index/base.cpp b/src/index/base.cpp
index 1ebe89ef7c..88c2ce98fa 100644
--- a/src/index/base.cpp
+++ b/src/index/base.cpp
@@ -18,6 +18,9 @@
#include <validation.h> // For g_chainman
#include <warnings.h>
+#include <string>
+#include <utility>
+
using node::ReadBlockFromDisk;
constexpr uint8_t DB_BEST_BLOCK{'B'};
@@ -62,8 +65,8 @@ void BaseIndex::DB::WriteBestBlock(CDBBatch& batch, const CBlockLocator& locator
batch.Write(DB_BEST_BLOCK, locator);
}
-BaseIndex::BaseIndex(std::unique_ptr<interfaces::Chain> chain)
- : m_chain{std::move(chain)} {}
+BaseIndex::BaseIndex(std::unique_ptr<interfaces::Chain> chain, std::string name)
+ : m_chain{std::move(chain)}, m_name{std::move(name)} {}
BaseIndex::~BaseIndex()
{