Skip to content

Commit 9ee2c63

Browse files
committed
Add mutable estimator::history() method.
1 parent 02dd96c commit 9ee2c63

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

include/bitcoin/server/estimator.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ class BCS_API estimator
129129
return std::pow(decay_rate(), push ? +1.0 : -1.0);
130130
}
131131

132+
accumulator& history() NOEXCEPT;
132133
const accumulator& history() const NOEXCEPT;
133134
bool initialize(const rate_sets& blocks) NOEXCEPT;
134135
bool push(const rates& block) NOEXCEPT;

src/estimator.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ size_t estimator::top_height() const NOEXCEPT
128128
// protected
129129
// ----------------------------------------------------------------------------
130130

131+
estimator::accumulator& estimator::history() NOEXCEPT
132+
{
133+
return fees_;
134+
}
135+
131136
const estimator::accumulator& estimator::history() const NOEXCEPT
132137
{
133138
return fees_;

0 commit comments

Comments
 (0)