Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 16 additions & 0 deletions lib/src/executor/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2290,6 +2290,22 @@ impl ReadyToRun {
},
}
}
HostFunction::ext_transaction_index_index_version_1 => {
// TODO: this is currently a no-op; because not all the parameters are verified, this might lead to consensus issues
let _tx_ptr = expect_pointer_size_raw!(0);
HostVm::ReadyToRun(ReadyToRun {
inner: self.inner,
resume_value: None,
})
}
HostFunction::ext_transaction_index_renew_version_1 => {
// TODO: this is currently a no-op; because not all the parameters are verified, this might lead to consensus issues
let _tx_ptr = expect_pointer_size_raw!(0);
HostVm::ReadyToRun(ReadyToRun {
inner: self.inner,
resume_value: None,
})
}
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions lib/src/executor/host/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ host_functions! {
ext_logging_log_version_1,
ext_logging_max_level_version_1,
ext_panic_handler_abort_on_panic_version_1,
ext_transaction_index_index_version_1,
ext_transaction_index_renew_version_1,
}

impl HostFunction {
Expand Down Expand Up @@ -456,6 +458,12 @@ impl HostFunction {
HostFunction::ext_panic_handler_abort_on_panic_version_1 => {
crate::signature!((vm::ValueType::I64) => ())
}
HostFunction::ext_transaction_index_index_version_1 => {
crate::signature!((vm::ValueType::I32, vm::ValueType::I32, vm::ValueType::I32) => ())
}
HostFunction::ext_transaction_index_renew_version_1 => {
crate::signature!((vm::ValueType::I32, vm::ValueType::I32) => ())
}
}
}
}
4 changes: 4 additions & 0 deletions wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Added

- Add support for the `ext_transaction_index_index_version_1` and `ext_transaction_index_renew_version_1` host functions as no-op. ([#2189](https://github.com/smol-dot/smoldot/pull/2189))

## 2.0.39 - 2025-09-15

### Fixed
Expand Down
Loading