v31.1-roots.1 · Commit 4: [PATCH 04/17] feat(mining): preserve Roots priority and template policies
src/txmempool.h
Before: src/txmempool.h · After: src/txmempool.h
File metadata
index ead4886c63d2762add916e52a6e79aa8beea32eb..30516b105ff4680c9235ce46cd96b9748323a974 100644
Download original patch · Release notes
Diff rows 1–8 of 8. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/txmempool.h
CHANGED
|
@@ -745,6 +745,8 @@ private:
|
|
|
745
745
|
// callbacks).
|
|
746
746
|
void addNewTransaction(CTxMemPool::txiter it) EXCLUSIVE_LOCKS_REQUIRED(cs);
|
|
747
747
|
public:
|
|
748
|
+
/** The caller must keep cs locked and destroy the builder before mutating the graph. */
|
|
749
|
+
std::unique_ptr<TxGraph::BlockBuilder> MakeBlockBuilder() const EXCLUSIVE_LOCKS_REQUIRED(cs) { return m_txgraph->GetBlockBuilder(); }
|
|
748
750
|
void StartBlockBuilding() const EXCLUSIVE_LOCKS_REQUIRED(cs) { assert(!m_builder); m_builder = m_txgraph->GetBlockBuilder(); }
|
|
749
751
|
FeePerWeight GetBlockBuilderChunk(std::vector<CTxMemPoolEntry::CTxMemPoolEntryRef>& entries) const EXCLUSIVE_LOCKS_REQUIRED(cs)
|
|
750
752
|
{
|