Skip to content

Commit

Permalink
Merge pull request #1504 from evoskuil/master
Browse files Browse the repository at this point in the history
Make byte_reader::default_arena() protected.
  • Loading branch information
evoskuil authored Jul 22, 2024
2 parents 8682538 + 508658c commit 41f9be3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace system {
// The intended behavior in this case is program abort.
BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)

// private/static
// protected/static
template <typename IStream>
inline typename byte_reader<IStream>::memory_arena
byte_reader<IStream>::default_arena() NOEXCEPT
Expand Down
3 changes: 1 addition & 2 deletions include/bitcoin/system/stream/streamers/byte_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ class byte_reader
bool operator!() const NOEXCEPT override;

protected:
static inline memory_arena default_arena() NOEXCEPT;
static constexpr uint8_t pad() { return 0x00; };

// The maximum addressable stream position.
Expand All @@ -207,8 +208,6 @@ class byte_reader
virtual bool get_exhausted() const NOEXCEPT;

private:
static inline memory_arena default_arena() NOEXCEPT;

bool valid() const NOEXCEPT;
void invalid() NOEXCEPT;
void validate() NOEXCEPT;
Expand Down
1 change: 0 additions & 1 deletion test/chain/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ const block& get_block() NOEXCEPT
constexpr uint32_t locktime{ 7 };
constexpr uint32_t sequence{ 8 };
constexpr uint64_t value{ 9 };
constexpr hash_digest point_hash{ 9 };
constexpr bool minimal{ true };

static const block instance
Expand Down

0 comments on commit 41f9be3

Please sign in to comment.