Skip to content

Commit b6002b0

Browse files
committed
MOVEONLY: update_lock_points to txmempool.h
1 parent d20d6ac commit b6002b0

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/txmempool.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,6 @@ struct update_fee_delta
6464
int64_t feeDelta;
6565
};
6666

67-
struct update_lock_points
68-
{
69-
explicit update_lock_points(const LockPoints& _lp) : lp(_lp) { }
70-
71-
void operator() (CTxMemPoolEntry &e) { e.UpdateLockPoints(lp); }
72-
73-
private:
74-
const LockPoints& lp;
75-
};
76-
7767
bool TestLockPointValidity(CChain& active_chain, const LockPoints& lp)
7868
{
7969
AssertLockHeld(cs_main);

src/txmempool.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,16 @@ class CompareTxMemPoolEntryByAncestorFee
312312
}
313313
};
314314

315+
struct update_lock_points
316+
{
317+
explicit update_lock_points(const LockPoints& _lp) : lp(_lp) { }
318+
319+
void operator() (CTxMemPoolEntry &e) { e.UpdateLockPoints(lp); }
320+
321+
private:
322+
const LockPoints& lp;
323+
};
324+
315325
// Multi_index tag names
316326
struct descendant_score {};
317327
struct entry_time {};

0 commit comments

Comments
 (0)