Skip to content

Commit 00a478e

Browse files
authored
Merge pull request #1804 from evoskuil/master
Rename tx dos guard methods.
2 parents 4b4ae44 + 4498f6c commit 00a478e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

include/bitcoin/system/chain/transaction.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ class BC_API transaction
159159
/// Guards (for tx pool without compact blocks).
160160
/// -----------------------------------------------------------------------
161161

162-
code guard_check() const NOEXCEPT;
163-
code guard_check(const context& ctx) const NOEXCEPT;
164-
code guard_accept(const context& ctx) const NOEXCEPT;
162+
code check_guard() const NOEXCEPT;
163+
code check_guard(const context& ctx) const NOEXCEPT;
164+
code accept_guard(const context& ctx) const NOEXCEPT;
165165

166166
/// Validation (consensus checks).
167167
/// -----------------------------------------------------------------------

src/chain/transaction.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ bool transaction::is_confirmed_double_spend(size_t height) const NOEXCEPT
803803
// Pools do not have coinbases.
804804
// Redundant with block is_internal_double_spend check.
805805
// Redundant with block max_block_size check.
806-
code transaction::guard_check() const NOEXCEPT
806+
code transaction::check_guard() const NOEXCEPT
807807
{
808808
if (is_coinbase())
809809
return error::coinbase_transaction;
@@ -816,7 +816,7 @@ code transaction::guard_check() const NOEXCEPT
816816
}
817817

818818
// Redundant with block max_block_weight accept.
819-
code transaction::guard_check(const context& ctx) const NOEXCEPT
819+
code transaction::check_guard(const context& ctx) const NOEXCEPT
820820
{
821821
const auto bip141 = ctx.is_enabled(flags::bip141_rule);
822822

@@ -829,7 +829,7 @@ code transaction::guard_check(const context& ctx) const NOEXCEPT
829829
}
830830

831831
// Redundant with block max_block_sigops accept.
832-
code transaction::guard_accept(const context& ctx) const NOEXCEPT
832+
code transaction::accept_guard(const context& ctx) const NOEXCEPT
833833
{
834834
const auto bip16 = ctx.is_enabled(flags::bip16_rule);
835835
const auto bip141 = ctx.is_enabled(flags::bip141_rule);

0 commit comments

Comments
 (0)