Skip to content

Reject network account mutations in RPC#2252

Open
AlgofootPrint wants to merge 42 commits into
0xMiden:mainfrom
AlgofootPrint:fix/reject-network-account-mutation
Open

Reject network account mutations in RPC#2252
AlgofootPrint wants to merge 42 commits into
0xMiden:mainfrom
AlgofootPrint:fix/reject-network-account-mutation

Conversation

@AlgofootPrint

Copy link
Copy Markdown
Contributor

Summary

  • reject submitted transactions when an existing non-network account delta touches the standardized network-account allowlist slot
  • apply the same RPC-side check to each transaction in submitted batches
  • add focused unit coverage for the rejection path and existing network-account allowance

Part of #2146.

Testing

  • git diff --check passes, with line-ending warnings only
  • cargo test -p miden-node-rpc server::api::tests could not complete because miden-node-proto-build failed first: file 'C:\Users\damio\Desktop\PR\node\proto\proto\remote_prover.proto' is not in any include path

bobbinth and others added 30 commits April 1, 2026 15:48
Co-authored-by: Mirko <48352201+Mirko-von-Leipzig@users.noreply.github.com>
Co-authored-by: Bobbin Threadbare <43513081+bobbinth@users.noreply.github.com>
Co-authored-by: Mirko <48352201+Mirko-von-Leipzig@users.noreply.github.com>
Co-authored-by: Mirko von Leipzig <48352201+Mirko-von-Leipzig@users.noreply.github.com>
sergerad and others added 12 commits April 21, 2026 07:46
…afana (0xMiden#1948)

Co-authored-by: Krisztian Kovacs <krisztian.k@miden.team>
Co-authored-by: SantiagoPittella <pittellasantiago@gmail.com>
Co-authored-by: Mirko von Leipzig <48352201+Mirko-von-Leipzig@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: igamigo <ignacio.amigo@lambdaclass.com>
…en#1986)

Co-authored-by: Santiago Pittella <87827390+SantiagoPittella@users.noreply.github.com>
Co-authored-by: Mirko <48352201+Mirko-von-Leipzig@users.noreply.github.com>
Co-authored-by: Mirko <48352201+Mirko-von-Leipzig@users.noreply.github.com>
…ng is not required (0xMiden#2005)

Co-authored-by: Mirko <48352201+Mirko-von-Leipzig@users.noreply.github.com>
Co-authored-by: Bobbin Threadbare <43513081+bobbinth@users.noreply.github.com>
…ntext

LargeSmt operations that touch RocksDB (open, open_at, open_latest,
compute_mutations, apply_mutations, get_block_num, get_latest_commitment,
contains_account_id_prefix_in_latest) can block the current thread for
disk I/O. Calling them directly in async functions while holding tokio
RwLock guards starves the async runtime. Wrapping with
tokio::task::block_in_place signals to the runtime that the current
thread may block, allowing it to move other tasks off the thread pool
while the guard remains valid on the same thread.

Fixes 0xMiden#1969.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants