Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/0xMiden/node
/ functions
Functions
2,587 in github.com/0xMiden/node
⨍
Functions
2,587
◇
Types & classes
507
↓ 236 callers
Method
map_err
( source: E, )
crates/db/src/conv.rs:57
↓ 224 callers
Method
context
(mut self, field: &'static str)
crates/proto/src/errors/mod.rs:45
↓ 203 callers
Method
collect
Gather every proof in submission order, returning them plus the summed per-job wall time. If any job fails (or a spawned task panics) we print the err
bin/benchmark/src/create_proofs.rs:140
↓ 160 callers
Method
id
(&self)
crates/block-producer/src/domain/batch.rs:34
↓ 147 callers
Method
push
Pushes a new value into the cache and evicts the oldest value if the cache is full. # Error Returns the value if the provided block number is not th
crates/utils/src/block_cache.rs:36
↓ 121 callers
Method
len
Returns the number of tasks currently in the set.
crates/utils/src/tasks.rs:74
↓ 99 callers
Method
insert
Registers a newly appended node's edges in the graph. Since it is newly appended, the node itself will only have parents and no children. The inverse
crates/block-producer/src/mempool/graph/edges.rs:44
↓ 96 callers
Method
eq
(&self, (nullifier, block_num): &(Nullifier, BlockNumber))
crates/store/src/db/mod.rs:137
↓ 92 callers
Method
map_err
( source: E, )
crates/store/src/db/models/conv.rs:61
↓ 91 callers
Method
is_empty
Returns `true` if no tasks are currently in the set.
crates/utils/src/tasks.rs:69
↓ 82 callers
Function
num_to_word
UTILITIES -------------------------------------------------------------------------------------------
crates/store/src/db/tests.rs:1538
↓ 80 callers
Method
get
Retrieves a value from the cache.
crates/utils/src/lru_cache.rs:23
↓ 79 callers
Method
add_transaction
( &mut self, tx: Arc<AuthenticatedTransaction>, )
crates/block-producer/src/mempool/mod.rs:246
↓ 76 callers
Function
upsert_accounts
( conn: &mut SqliteConnection, accounts: &[BlockAccountUpdate], block_num: BlockNumber, )
crates/store/src/db/models/queries/accounts.rs:1208
↓ 69 callers
Method
as_ref
(&self)
crates/store/src/genesis/config/mod.rs:615
↓ 68 callers
Method
try_into
(self)
crates/store/src/db/models/queries/notes.rs:488
↓ 58 callers
Method
path
(&self)
crates/db/src/migration/migrator.rs:365
↓ 58 callers
Method
update_account
Updates the forest with account vault and storage changes from a delta. Unified interface for updating all account state in the forest, handling both
crates/store/src/account_state_forest/mod.rs:513
↓ 53 callers
Function
ne
()
bin/network-monitor/assets/htmx.min.js:1
↓ 52 callers
Method
commitment
(&self)
crates/block-producer/src/mempool/graph/state.rs:248
↓ 52 callers
Function
create_block
(conn: &mut SqliteConnection, block_num: BlockNumber)
crates/store/src/db/tests.rs:89
↓ 49 callers
Method
build
Finalizes the batch selection.
crates/block-producer/src/domain/batch.rs:120
↓ 49 callers
Function
he
(e,t,n)
bin/network-monitor/assets/htmx.min.js:1
↓ 46 callers
Method
into_inner
(self)
crates/store/src/genesis/mod.rs:66
↓ 45 callers
Method
lock
(&self)
crates/block-producer/src/mempool/mod.rs:161
↓ 41 callers
Method
block_num
Returns the block number in which the transaction was executed.
bin/validator/src/tx_validation/validated_tx.rs:32
↓ 41 callers
Method
public_key
(&self)
bin/validator/src/signers/kms.rs:113
↓ 41 callers
Function
se
(t,n)
bin/network-monitor/assets/htmx.min.js:1
↓ 39 callers
Function
ue
(e)
bin/network-monitor/assets/htmx.min.js:1
↓ 38 callers
Method
transactions
(&self)
crates/block-producer/src/domain/batch.rs:42
↓ 37 callers
Function
create_db
()
crates/store/src/db/tests.rs:85
↓ 36 callers
Method
header
(&self)
crates/store/src/genesis/mod.rs:47
↓ 36 callers
Method
to_raw_sql
(self)
crates/store/src/db/models/conv.rs:81
↓ 36 callers
Method
transact
Create and commit a transaction with the queries added in the provided closure
crates/db/src/lib.rs:68
↓ 35 callers
Function
mock_block_account_update
(account_id: AccountId, num: u64)
crates/store/src/db/tests.rs:1550
↓ 34 callers
Function
dummy_partial_delta
Creates a partial `AccountDelta` (without code) for testing incremental updates.
crates/store/src/account_state_forest/tests.rs:34
↓ 34 callers
Method
execute
(self, shutdown: CancellationToken)
bin/node/src/commands/mod.rs:84
↓ 31 callers
Method
block_num
(&self)
crates/store/src/state/replica.rs:18
↓ 29 callers
Method
build
Returns a migrator containing all migrations and their expected schema hashes.
crates/db/src/migration/builder.rs:101
↓ 29 callers
Function
insert_block_header
(conn: &mut SqliteConnection, block_num: BlockNumber)
crates/store/src/db/models/queries/accounts/tests.rs:159
↓ 28 callers
Method
open
(config: RocksDbConfig)
crates/large-smt-backend-rocksdb/src/rocksdb.rs:115
↓ 27 callers
Function
ie
(e)
bin/network-monitor/assets/htmx.min.js:1
↓ 26 callers
Method
account_id
(&self)
crates/block-producer/src/domain/transaction.rs:76
↓ 25 callers
Method
as_str
(self)
crates/utils/src/genesis.rs:16
↓ 25 callers
Method
code
(name: &'static str, apply: CodeMigrationFn)
crates/db/src/migration/entry.rs:86
↓ 25 callers
Function
ee
(e,t)
bin/network-monitor/assets/htmx.min.js:1
↓ 25 callers
Method
get_storage_map_root
( &self, account_id: AccountId, slot_name: &StorageSlotName, block_num: BlockN
crates/store/src/account_state_forest/mod.rs:288
↓ 25 callers
Function
insert_account_storage_map_value
Insert an account storage map value into the DB using the given [`SqliteConnection`]. Sets `is_latest=true` for the new row and updates any existing
crates/store/src/db/models/queries/accounts.rs:968
↓ 25 callers
Function
mock_account_id
(num: u8)
crates/block-producer/src/test_utils/account.rs:79
↓ 25 callers
Method
remove
Removes the node from the edge set, updating all inverse relationships. # Panics Panics if the node is not tracked.
crates/block-producer/src/mempool/graph/edges.rs:78
↓ 24 callers
Method
len
(&self)
crates/block-producer/src/proof_scheduler.rs:61
↓ 24 callers
Function
mock_network_account_id
Creates a network account ID from a test constant.
bin/ntx-builder/src/test_utils.rs:17
↓ 24 callers
Method
name
(&self)
crates/tracing-macro/src/lib.rs:300
↓ 23 callers
Method
as_report_context
Creates a new root in the error chain and returns a string representation of the error and its source chain.
crates/utils/src/lib.rs:36
↓ 23 callers
Method
chain_tip
Returns the current chain tip height as seen by the mempool. This includes the block currently being built, if any.
crates/block-producer/src/mempool/mod.rs:222
↓ 23 callers
Function
dummy_fungible_asset
(faucet_id: AccountId, amount: u64)
crates/store/src/account_state_forest/tests.rs:29
↓ 22 callers
Method
cf_handle
(&self, name: &str)
crates/large-smt-backend-rocksdb/src/rocksdb.rs:363
↓ 22 callers
Method
count
Total number of transactions in the graph.
crates/block-producer/src/mempool/graph/transaction.rs:403
↓ 22 callers
Method
query
Run the query _without_ a transaction
crates/db/src/lib.rs:83
↓ 22 callers
Method
select_any_batch
(&mut self)
crates/block-producer/src/mempool/mod.rs:333
↓ 21 callers
Method
contains
(&self, node: &N::Id)
crates/block-producer/src/mempool/graph/dag.rs:274
↓ 21 callers
Method
decoder
Create a decoder that uses `Self` as the parent message type for error reporting.
crates/proto/src/decode/mod.rs:64
↓ 21 callers
Function
dummy_account
()
crates/store/src/account_state_forest/tests.rs:21
↓ 21 callers
Function
mock_single_target_note
Creates a `AccountTargetNetworkNote` targeting the given network account.
bin/ntx-builder/src/test_utils.rs:34
↓ 21 callers
Method
open_at
( &self, account_id: AccountId, block_number: BlockNumber, )
crates/store/src/accounts/mod.rs:212
↓ 20 callers
Function
fe
(e,t,n)
bin/network-monitor/assets/htmx.min.js:1
↓ 20 callers
Method
get_vault_root
( &self, account_id: AccountId, block_num: BlockNumber, )
crates/store/src/account_state_forest/mod.rs:277
↓ 20 callers
Method
id
(&self)
crates/block-producer/src/mempool/graph/node.rs:128
↓ 20 callers
Function
load
(database_filepath: PathBuf)
bin/validator/src/db/mod.rs:27
↓ 20 callers
Method
without_metadata_version
Do not include version in request metadata.
crates/proto/src/clients/mod.rs:424
↓ 19 callers
Method
add
Bans `ip` for [`BAN_DURATION`] starting now. If the list is at capacity, the oldest entry is evicted first.
crates/rpc/src/server/api/subscription/ban.rs:44
↓ 19 callers
Method
append
Appends a node to the graph. Parent-child edges are inferred from state dependencies: - A note parent edge exists when this node consumes an unauthen
crates/block-producer/src/mempool/graph/dag.rs:66
↓ 19 callers
Method
as_slice
(&self)
crates/large-smt-backend-rocksdb/src/rocksdb.rs:1534
↓ 19 callers
Method
prune
Prunes old entries from the in-memory forest data structures. The `LargeSmtForest` itself is truncated to drop historical versions beyond the cutoff.
crates/store/src/account_state_forest/mod.rs:822
↓ 18 callers
Function
bootstrap
Bootstraps the ntx-builder database at `database_filepath` with the genesis block. After this completes the singleton chain-state row exists at the g
bin/ntx-builder/src/lib.rs:50
↓ 18 callers
Function
insert_account_vault_asset
Insert an account vault asset row into the DB using the given [`SqliteConnection`]. Sets `is_latest=true` for the new row and updates any existing ro
crates/store/src/db/models/queries/accounts.rs:926
↓ 18 callers
Function
oe
(e)
bin/network-monitor/assets/htmx.min.js:1
↓ 18 callers
Method
start
()
crates/rpc/src/tests.rs:93
↓ 17 callers
Method
account_update
(&self)
crates/block-producer/src/domain/transaction.rs:80
↓ 17 callers
Method
chain_tip
Returns the effective chain tip for the given finality level. - [`Finality::Committed`]: returns the latest committed block number (from in-memory MM
crates/store/src/state/mod.rs:728
↓ 17 callers
Function
setup_test_db
()
crates/store/src/db/models/queries/accounts/tests.rs:44
↓ 17 callers
Function
test_conn
Creates a file-backed SQLite connection with migrations applied.
bin/ntx-builder/src/db/models/queries/tests.rs:21
↓ 17 callers
Method
without_metadata_genesis
Do not include genesis commitment in request metadata.
crates/proto/src/clients/mod.rs:438
↓ 17 callers
Function
y
(e,t)
bin/network-monitor/assets/htmx.min.js:1
↓ 16 callers
Method
build
Builds and initializes the network transaction builder. Loads the in-memory chain state from the persisted header + chain MMR and opens a committed-b
bin/ntx-builder/src/lib.rs:368
↓ 16 callers
Method
hash
(&self, state: &mut H)
crates/store/src/genesis/config/mod.rs:665
↓ 16 callers
Method
into_parts
Consumes the chain state and returns the chain tip header and the partial blockchain as a tuple.
bin/ntx-builder/src/chain_state.rs:48
↓ 16 callers
Method
next
(&mut self)
crates/large-smt-backend-rocksdb/src/rocksdb.rs:1091
↓ 16 callers
Method
output_notes
(mut self, notes: Vec<OutputNote>)
crates/block-producer/src/test_utils/proven_tx.rs:103
↓ 16 callers
Method
set
Set a key and value in the `MetadataMap`. Does nothing if the key or value are not valid inputs
crates/utils/src/tracing/grpc.rs:152
↓ 16 callers
Function
test_fee_params
Derive the default fee parameters, compatible with [`fn test_fee`].
crates/utils/src/fee.rs:13
↓ 15 callers
Function
C
(e,t)
bin/network-monitor/assets/htmx.min.js:1
↓ 15 callers
Method
call_sign_block
Calls `sign_block` on the validator server.
bin/validator/src/server/validator_service/tests.rs:50
↓ 15 callers
Method
compute_and_apply_mutations
Computes and applies mutations in one operation. This is a convenience method primarily for testing.
crates/store/src/accounts/mod.rs:365
↓ 15 callers
Method
input_notes
Returns the notes consumed in this transaction.
bin/validator/src/tx_validation/validated_tx.rs:47
↓ 15 callers
Function
mock_block_header
Creates a mock `BlockHeader` for the given block number.
bin/ntx-builder/src/test_utils.rs:95
↓ 14 callers
Method
as_report
Returns a string representation of the error and its source chain.
crates/utils/src/lib.rs:23
↓ 14 callers
Method
id
(&self)
crates/block-producer/src/mempool/graph/transaction.rs:64
↓ 14 callers
Function
m
(e,t)
bin/network-monitor/assets/htmx.min.js:1
↓ 14 callers
Method
next
Waits for the next actor to complete and handles the outcome. Returns `Some(account_id)` if an actor should be respawned (because a notification arri
bin/ntx-builder/src/coordinator.rs:248
next →
1–100 of 2,587, ranked by callers