Skip to content

chore: update protocol - #2421

Open
juan518munoz wants to merge 6 commits into
nextfrom
jmunoz-update-protocol
Open

chore: update protocol#2421
juan518munoz wants to merge 6 commits into
nextfrom
jmunoz-update-protocol

Conversation

@juan518munoz

@juan518munoz juan518munoz commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

Note

This PR does not work for chains which base fee is not zero (e.g network monitor and benchark binaries are only able to operate with fee-less chains). Full fee implementation is left as a follow-up PR.

Changelog

[[entry]]
scope       = "network-monitor"
impact      = "changed"
description = "The network monitor and the benchmark binary only operate on chains whose base fee is zero. Full fee support is left as a follow-up."

@juan518munoz
juan518munoz marked this pull request as ready for review August 3, 2026 17:26
Comment thread CHANGELOG.md

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file shouldn't be changed.

Comment on lines +1193 to +1203
let has_allowed_notes = allowlist_entries(NetworkAccountNoteAllowlist::slot_name())
.is_some_and(|entries| entries.as_map().values().any(|value| *value != Word::empty()));
let allows_expiration_tx_script =
allowlist_entries(NetworkAccountTxScriptAllowlist::slot_name()).is_some_and(|entries| {
entries
.as_map()
.get(&StorageMapKey::new(ExpirationTransactionScript::script_root().as_word()))
.is_some_and(|value| *value != Word::empty())
});
let is_network_account =
account_id.is_public() && has_allowed_notes && allows_expiration_tx_script;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually wonder if we still need to do this song and dance at all - @SantiagoPittella I believe this was likely a remnant of the ntx builders old sync?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this means once fee's are turned on our monitor will be dead unless we somehow get it gas?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this so much more complex?

Comment on lines +1214 to +1222
/// Draw a random [`Word`] from `rng`.
fn random_word(rng: &mut ChaCha20Rng) -> Word {
Word::new([
Felt::new_unchecked(rng.random()),
Felt::new_unchecked(rng.random()),
Felt::new_unchecked(rng.random()),
Felt::new_unchecked(rng.random()),
])
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still not have rand implemented for these 🤔

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.

3 participants