Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cfg/xahaud-example.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,14 @@
#
# Configures the number of threads for performing nodestore prefetching.
#
# [path_workers]
#
# Configures the maximum number of concurrently running jobs of type
# jtUPDATE_PF in the JobQueue. This impacts path update and full order book
# update throughput. Default: 2.
#
# Maximum value is 3/4 of [workers] (with a minimum of 2).
#
#
#
# [network_id]
Expand Down
6 changes: 6 additions & 0 deletions include/xrpl/protocol/IOUAmount.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ class IOUAmount : private boost::totally_ordered<IOUAmount>,

static IOUAmount
minPositiveAmount();

friend std::ostream&
operator<<(std::ostream& os, IOUAmount const& x)
{
return os << to_string(x);
}
};

inline IOUAmount::IOUAmount(beast::Zero)
Expand Down
3 changes: 3 additions & 0 deletions include/xrpl/protocol/Rules.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

namespace ripple {

bool
isFeatureEnabled(uint256 const& feature);

class DigestAwareReadView;

/** Rules controlling protocol behavior. */
Expand Down
8 changes: 8 additions & 0 deletions src/libxrpl/protocol/Rules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,12 @@ Rules::operator!=(Rules const& other) const
{
return !(*this == other);
}

bool
isFeatureEnabled(uint256 const& feature)
{
auto const& rules = getCurrentTransactionRules();
return rules && rules->enabled(feature);
}

} // namespace ripple
Loading