The tests work
This commit is contained in:
@@ -13,6 +13,7 @@ import { createStorageAdapter, State, StorageType } from "@xo-cash/state";
|
||||
import { convertMnemonicToSeedBytes } from "@xo-cash/crypto";
|
||||
import { binToHex, hash256 } from "@bitauth/libauth";
|
||||
import { createHash } from "crypto";
|
||||
import { InMemoryBlockchainProvider } from "../../utils/blockchain/in-memory-blockchain-provider.js";
|
||||
|
||||
/**
|
||||
* Options for creating an offline engine.
|
||||
@@ -64,7 +65,7 @@ export async function createOfflineEngine(
|
||||
const state = new State(storageAdapter);
|
||||
|
||||
// Create a minimal blockchain monitor (no electrum initialization)
|
||||
const blockchainMonitor = new BlockchainMonitor(state);
|
||||
const blockchainMonitor = new BlockchainMonitor(state, new InMemoryBlockchainProvider());
|
||||
|
||||
// Engine constructor is private; bypass for offline read-only completions.
|
||||
type EngineConstructor = new (
|
||||
|
||||
Reference in New Issue
Block a user