Skip to content

Commit

Permalink
udpate smoldot (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Jan 28, 2024
1 parent 509c624 commit 3a8bcc7
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 50 deletions.
1 change: 0 additions & 1 deletion configs/moonbase-alpha.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
endpoint: wss://wss.api.moonbase.moonbeam.network
mock-signature-host: true
allow-unresolved-imports: true
block: ${env.MOONBASE_BLOCK_NUMBER}
db: ./db.sqlite

Expand Down
1 change: 0 additions & 1 deletion configs/moonbeam.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
endpoint: wss://wss.api.moonbeam.network
mock-signature-host: true
allow-unresolved-imports: true
block: ${env.MOONBEAM_BLOCK_NUMBER}
db: ./db.sqlite

Expand Down
1 change: 0 additions & 1 deletion configs/moonriver.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
endpoint: wss://wss.moonriver.moonbeam.network
mock-signature-host: true
allow-unresolved-imports: true
block: ${env.MOONRIVER_BLOCK_NUMBER}
db: ./db.sqlite

Expand Down
100 changes: 58 additions & 42 deletions executor/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ serde_json = { version = "1.0", default-features = false }
hex = { version = "0.4.3", default-features = false }
hex-literal = "0.4.1"
wasm-bindgen = "0.2.87"
serde-wasm-bindgen = "0.5"
serde-wasm-bindgen = "0.6.3"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
log = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions executor/src/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub async fn run_task(task: TaskCall, js: crate::JsCallback) -> Result<TaskRespo
let vm_proto = HostVmPrototype::new(Config {
module: &task.wasm,
heap_pages: HeapPages::from(2048),
exec_hint: smoldot::executor::vm::ExecHint::Oneshot,
exec_hint: smoldot::executor::vm::ExecHint::ValidateAndExecuteOnce,
allow_unresolved_imports: task.allow_unresolved_imports,
})
.unwrap();
Expand Down Expand Up @@ -400,7 +400,7 @@ pub async fn runtime_version(wasm: HexString) -> RuntimeVersion {
let vm_proto = HostVmPrototype::new(Config {
module: &wasm,
heap_pages: HeapPages::from(2048),
exec_hint: smoldot::executor::vm::ExecHint::Oneshot,
exec_hint: smoldot::executor::vm::ExecHint::ValidateAndExecuteOnce,
allow_unresolved_imports: true,
})
.unwrap();
Expand Down
9 changes: 9 additions & 0 deletions packages/e2e/src/author-inherent-mock.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@ describe.runIf(process.env.CI || process.env.RUN_ALL)('Nimbus author inherent mo
await dev.newBlock({ count: 2 })
await teardown()
})

it('Moonbeam build blocks', async () => {
const { dev, teardown } = await setupContext({
endpoint: 'wss://wss.api.moonbeam.network',
db: !process.env.RUN_TESTS_WITHOUT_DB ? 'e2e-tests-db.sqlite' : undefined,
})
await dev.newBlock({ count: 2 })
await teardown()
})
})
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.72"
channel = "1.74"
targets = [ "wasm32-unknown-unknown" ]
profile = "minimal"
2 changes: 1 addition & 1 deletion vendor/smoldot
Submodule smoldot updated 57 files
+251 −225 Cargo.lock
+3 −3 full-node/Cargo.toml
+35 −20 full-node/src/consensus_service.rs
+1 −1 full-node/src/json_rpc_service/runtime_caches_service.rs
+10 −2 full-node/src/lib.rs
+86 −70 fuzz/Cargo.lock
+3 −1 fuzz/fuzz_targets/wasm-module-wasmi.rs
+8 −8 lib/Cargo.toml
+2 −10 lib/src/author/runtime.rs
+27 −75 lib/src/chain/async_tree.rs
+1 −1 lib/src/chain_spec.rs
+117 −515 lib/src/database/full_sqlite.rs
+5 −65 lib/src/database/full_sqlite/open.rs
+41 −56 lib/src/database/full_sqlite/tests.rs
+29 −2 lib/src/executor/host.rs
+4 −0 lib/src/executor/host/functions.rs
+7 −11 lib/src/executor/runtime_call.rs
+1 −1 lib/src/executor/runtime_call/tests.rs
+58 −8 lib/src/executor/vm.rs
+5 −1 lib/src/executor/vm/interpreter.rs
+38 −77 lib/src/json_rpc/methods.rs
+12 −16 lib/src/json_rpc/service/client_main_task.rs
+5 −0 lib/src/libp2p/multihash.rs
+864 −1,271 lib/src/sync/all.rs
+14 −37 lib/src/sync/warp_sync.rs
+1 −1 lib/src/transactions/validate/tests.rs
+30 −34 lib/src/trie.rs
+7 −7 light-base/Cargo.toml
+1 −1 light-base/examples/basic.rs
+27 −16 light-base/src/json_rpc_service.rs
+173 −300 light-base/src/json_rpc_service/background.rs
+252 −348 light-base/src/json_rpc_service/background/chain_head.rs
+115 −50 light-base/src/json_rpc_service/background/legacy_state_sub.rs
+131 −89 light-base/src/json_rpc_service/background/state_chain.rs
+12 −12 light-base/src/json_rpc_service/background/transactions.rs
+138 −81 light-base/src/lib.rs
+485 −291 light-base/src/network_service.rs
+100 −23 light-base/src/network_service/tasks.rs
+113 −4 light-base/src/platform.rs
+3 −3 light-base/src/platform/address_parse.rs
+53 −3 light-base/src/platform/default.rs
+140 −0 light-base/src/platform/with_prefix.rs
+1,136 −868 light-base/src/runtime_service.rs
+339 −312 light-base/src/sync_service.rs
+166 −217 light-base/src/sync_service/parachain.rs
+211 −185 light-base/src/sync_service/standalone.rs
+244 −267 light-base/src/transactions_service.rs
+30 −0 wasm-node/CHANGELOG.md
+14 −14 wasm-node/javascript/package-lock.json
+1 −1 wasm-node/javascript/package.json
+27 −9 wasm-node/javascript/src/internals/client.ts
+30 −12 wasm-node/javascript/src/internals/local-instance.ts
+5 −6 wasm-node/rust/Cargo.toml
+17 −40 wasm-node/rust/src/bindings.rs
+63 −91 wasm-node/rust/src/init.rs
+112 −122 wasm-node/rust/src/lib.rs
+94 −10 wasm-node/rust/src/platform.rs

0 comments on commit 3a8bcc7

Please sign in to comment.