diff --git a/example/helpers.ts b/example/helpers.ts index 0e0be48..e5c0b09 100644 --- a/example/helpers.ts +++ b/example/helpers.ts @@ -61,7 +61,7 @@ export const servers = { host: '35.187.18.233', ssl: 8900, tcp: 8911, - protocol: EProtocol.ssl + protocol: EProtocol.tcp } ], [EAvailableNetworks.testnet]: [ diff --git a/example/index.ts b/example/index.ts index c1ab08a..e35c3cc 100644 --- a/example/index.ts +++ b/example/index.ts @@ -1,6 +1,8 @@ import { EAvailableNetworks, generateMnemonic, Wallet } from '../src'; import { getData, onMessage, servers, setData } from './helpers'; import * as repl from 'repl'; +import net from 'net'; +import tls from 'tls'; const network: EAvailableNetworks = EAvailableNetworks.mainnet; @@ -15,11 +17,15 @@ const runExample = async (mnemonic = generateMnemonic()): Promise => { setData }, electrumOptions: { + net, + tls, servers: servers[network] }, gapLimitOptions: { lookAhead: 5, - lookBehind: 5 + lookBehind: 5, + lookAheadChange: 5, + lookBehindChange: 5 } }); if (createWalletResponse.isErr()) return;