mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-23 15:10:34 +00:00
chore: address review nits (safeCast, whitespace, comments)
This commit is contained in:
@@ -310,8 +310,8 @@ constexpr std::size_t kPermissionMaxSize = 10;
|
||||
|
||||
/** The maximum number of transactions that can be in a batch. */
|
||||
constexpr std::size_t kMaxBatchTxCount = 8;
|
||||
|
||||
/** The maximum number of batch signers. */
|
||||
|
||||
/** The maximum number of batch signers. */
|
||||
constexpr std::size_t kMaxBatchSigners = kMaxBatchTxCount * 3;
|
||||
|
||||
/** Length of a secp256k1 scalar in bytes. */
|
||||
|
||||
@@ -24,6 +24,10 @@ public:
|
||||
ApplyFlags flags,
|
||||
beast::Journal journal = beast::Journal{beast::Journal::getNullSink()});
|
||||
|
||||
// Convenience constructor used only by tests that build an ApplyContext
|
||||
// directly (e.g. invariant checks). Production always uses the parentBatchId
|
||||
// constructor above; this one fixes parentBatchId to std::nullopt and so is
|
||||
// never valid for a batch inner (hence the TapBatch assert).
|
||||
explicit ApplyContext(
|
||||
ServiceRegistry& registry,
|
||||
OpenView& base,
|
||||
|
||||
Reference in New Issue
Block a user