Skip to content

chore: bump protocol to 0.15.3 and node to 0.15.0#2229

Merged
igamigo merged 11 commits into
nextfrom
jmunoz-protocol-0.15.2
Jun 10, 2026
Merged

chore: bump protocol to 0.15.3 and node to 0.15.0#2229
igamigo merged 11 commits into
nextfrom
jmunoz-protocol-0.15.2

Conversation

@juan518munoz

@juan518munoz juan518munoz commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Bumps miden dependencies to protocol's 0.15.3.

No significant changes made, only that network transaction tests now need the NTX_EXPIRATION_TX_SCRIPT_ROOT to be explicitly allowed (AuthNetworkAccount::with_allowed_tx_scripts).

@juan518munoz

Copy link
Copy Markdown
Collaborator Author

Marking as no changelog, due to no user facing changes on this PR.

@juan518munoz juan518munoz added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Jun 5, 2026
Base automatically changed from tomasarrachea-private-note-attachments to next June 5, 2026 20:51
TomasArrachea and others added 4 commits June 8, 2026 12:24
The newer node's `miden_validator::db::load` verifies an existing schema
and fails on a missing file; `db::setup` bootstraps the database and
applies migrations. The test node-builder starts from a fresh data
directory, so it must use `setup`.
@juan518munoz juan518munoz force-pushed the jmunoz-protocol-0.15.2 branch from 3bba7c8 to 4e462d8 Compare June 8, 2026 17:12

@TomasArrachea TomasArrachea left a comment

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.

LGTM.

Comment thread Cargo.toml Outdated
Comment on lines +75 to +90
/// Root of the transaction-expiration script the node's network-transaction builder runs against
/// every network account.
pub(crate) static NTX_EXPIRATION_TX_SCRIPT_ROOT: LazyLock<TransactionScriptRoot> = LazyLock::new(
|| {
// Mirrors the node ntx-builder's `DEFAULT_TX_EXPIRATION_DELTA`
const NTX_EXPIRATION_DELTA: u16 = 30;
let source = format!(
"begin\n push.{NTX_EXPIRATION_DELTA} exec.::miden::protocol::tx::update_expiration_block_delta\nend"
);
CodeBuilder::new()
.compile_tx_script(source)
.expect("network-tx expiration script should compile")
.root()
},
);

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 is not going to be used until 0xMiden/protocol#3051 gets merged and probably will change how it is implemented, so maybe we should delete it and add it when needed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Correct me if wrong, but at the node tag this PR pins (v0.15.0-rc.3), the ntx-builder unconditionally compiles this exact expiration script and attaches it to every network transaction and 0.15.2 default empty tx-script allowlist, the network account rejects that node tx, so its notes are never consumed and the integration-test-full ntx tests hang. The allowlist is required now, not after #3051.

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.

It was disabled in 0xMiden/node#2173 which is included in that release candidate and will be re-introduced with 0xMiden/protocol#3050 . Though you can give it a try removing it and checking that the network txs tests will still pass

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I have removed the script in 1cba329, let's see if the CI passes without it.

Comment thread Cargo.toml Outdated

@igamigo igamigo left a comment

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.

LGTM! I agree with @SantiagoPittella that we should remove the NTX script if possible

@juan518munoz juan518munoz changed the title chore: bump miden deps to 0.15.2 chore: bump miden deps to 0.15.3 Jun 10, 2026
@igamigo igamigo changed the title chore: bump miden deps to 0.15.3 chore: bump protocol to 0.15.3 and node to 0.15.0 Jun 10, 2026
Comment thread Cargo.toml Outdated

@igamigo igamigo left a comment

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.

LGTM! Thanks

@igamigo igamigo merged commit 2a6bb45 into next Jun 10, 2026
21 checks passed
@igamigo igamigo deleted the jmunoz-protocol-0.15.2 branch June 10, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants