From 8f5c100064bea720351d450f8116ff3abe0515cc Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Mon, 8 Feb 2021 14:12:12 -0500 Subject: [PATCH] style-only: Make CheckSequenceLock signature readable --- src/validation.cpp | 7 ++++++- src/validation.h | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index 751a95611a..08079a6d08 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -256,7 +256,12 @@ bool TestLockPointValidity(CChain& active_chain, const LockPoints* lp) return true; } -bool CheckSequenceLocks(CChainState& active_chainstate, const CTxMemPool& pool, const CTransaction& tx, int flags, LockPoints* lp, bool useExistingLockPoints) +bool CheckSequenceLocks(CChainState& active_chainstate, + const CTxMemPool& pool, + const CTransaction& tx, + int flags, + LockPoints* lp, + bool useExistingLockPoints) { AssertLockHeld(cs_main); AssertLockHeld(pool.cs); diff --git a/src/validation.h b/src/validation.h index 7fc0d31c70..4e4bdbea54 100644 --- a/src/validation.h +++ b/src/validation.h @@ -266,7 +266,12 @@ bool TestLockPointValidity(CChain& active_chain, const LockPoints* lp) EXCLUSIVE * * See consensus/consensus.h for flag definitions. */ -bool CheckSequenceLocks(CChainState& active_chainstate, const CTxMemPool& pool, const CTransaction& tx, int flags, LockPoints* lp = nullptr, bool useExistingLockPoints = false) EXCLUSIVE_LOCKS_REQUIRED(::cs_main, pool.cs); +bool CheckSequenceLocks(CChainState& active_chainstate, + const CTxMemPool& pool, + const CTransaction& tx, + int flags, + LockPoints* lp = nullptr, + bool useExistingLockPoints = false) EXCLUSIVE_LOCKS_REQUIRED(::cs_main, pool.cs); /** * Closure representing one script verification