Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions crates/rpc/src/server/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,13 @@ fn endpoint_limits(params: &[(&str, usize)]) -> proto::rpc::EndpointLimits {

/// Cached RPC query parameter limits.
static RPC_LIMITS: LazyLock<proto::rpc::RpcLimits> = LazyLock::new(|| {
use QueryParamAccountIdLimit as AccountId;
use QueryParamNoteIdLimit as NoteId;
use QueryParamNoteTagLimit as NoteTag;
use QueryParamNullifierLimit as Nullifier;
use QueryParamStorageMapKeyTotalLimit as StorageMapKeyTotal;
use {
QueryParamAccountIdLimit as AccountId,
QueryParamNoteIdLimit as NoteId,
QueryParamNoteTagLimit as NoteTag,
QueryParamNullifierLimit as Nullifier,
QueryParamStorageMapKeyTotalLimit as StorageMapKeyTotal,
};

proto::rpc::RpcLimits {
endpoints: std::collections::HashMap::from([
Expand Down
5 changes: 5 additions & 0 deletions crates/validator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ tracing = { workspace = true }
build-rs = { workspace = true }

[dev-dependencies]
miden-node-store = { workspace = true }
miden-node-utils = { features = ["testing"], workspace = true }
miden-protocol = { default-features = true, features = ["testing"], workspace = true }
tempfile = { workspace = true }
tokio = { features = ["macros", "rt-multi-thread"], workspace = true }
3 changes: 3 additions & 0 deletions crates/validator/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ use crate::db::{insert_transaction, load, load_chain_tip, upsert_block_header};
use crate::tx_validation::validate_transaction;
use crate::{COMPONENT, ValidatorSigner};

#[cfg(test)]
mod tests;

// VALIDATOR
// ================================================================================

Expand Down
Loading
Loading