diff --git a/include/bitcoin/database/impl/query/query.ipp b/include/bitcoin/database/impl/query/query.ipp index 8522717bc..8a57e377a 100644 --- a/include/bitcoin/database/impl/query/query.ipp +++ b/include/bitcoin/database/impl/query/query.ipp @@ -109,6 +109,18 @@ bool CLASS::is_coalesced() const NOEXCEPT return get_fork() == get_top_candidate(); } +TEMPLATE +bool CLASS::is_pooling() const NOEXCEPT +{ + return store_.is_pooling(); +} + +TEMPLATE +void CLASS::set_pooling() NOEXCEPT +{ + store_.set_pooling(); +} + TEMPLATE size_t CLASS::get_space() const NOEXCEPT { diff --git a/include/bitcoin/database/query.hpp b/include/bitcoin/database/query.hpp index 84d83f1e5..304843cff 100644 --- a/include/bitcoin/database/query.hpp +++ b/include/bitcoin/database/query.hpp @@ -88,6 +88,10 @@ class query /// True if candidate top is fork point header. bool is_coalesced() const NOEXCEPT; + /// Transaction pooling is enabled (one way latch). + bool is_pooling() const NOEXCEPT; + void set_pooling() NOEXCEPT; + /// Get the space required to clear the disk full condition. size_t get_space() const NOEXCEPT;