Skip to content
Snippets Groups Projects

added states table for large client storage

Merged Jake Taylor requested to merge XX-4683/ClientStateDb into project/HavenBeta
1 unresolved thread
2 files
+ 22
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 21
0
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2022 xx foundation //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
importScripts('wasm_exec.js');
const isReady = new Promise((resolve) => {
self.onWasmInitialized = resolve;
});
const go = new Go();
const binPath = 'xxdk-stateIndexedDkWorker.wasm'
WebAssembly.instantiateStreaming(fetch(binPath), go.importObject).then(async (result) => {
go.run(result.instance);
await isReady;
}).catch((err) => {
console.error(err);
});
\ No newline at end of file
Loading