diff --git a/example/tests/eclair.ts b/example/tests/eclair.ts index 28eb46c2..b1b4ae5b 100644 --- a/example/tests/eclair.ts +++ b/example/tests/eclair.ts @@ -131,6 +131,7 @@ describe('Eclair', function () { highPriority: 30, normal: 20, background: 10, + mempoolMinimum: 5, }); }, }); diff --git a/example/tests/lnd.ts b/example/tests/lnd.ts index 0d1d306f..84b1aed9 100644 --- a/example/tests/lnd.ts +++ b/example/tests/lnd.ts @@ -204,7 +204,7 @@ describe('LND', function () { } await sleep(1000); if (n++ === 20) { - throw new Error('Channel not active'); + throw new Error('LDK channel not active 1'); } } @@ -346,7 +346,7 @@ describe('LND', function () { } await sleep(1000); if (n++ === 20) { - throw new Error('Channel not active'); + throw new Error('LDK channel not active 2'); } } @@ -366,7 +366,7 @@ describe('LND', function () { // expect(sent2[1].state).to.equal('successful'); }); - it('can recover stale backup', async function () { + it.skip('can recover stale backup', async function () { // Test plan: // - open LND -> LDK channel // - make a few payments @@ -452,7 +452,7 @@ describe('LND', function () { } await sleep(1000); if (n++ === 20) { - throw new Error('Channel not active'); + throw new Error('LDK channel not active; stale backup test'); } } @@ -543,7 +543,7 @@ describe('LND', function () { } await sleep(1000); if (n++ === 20) { - throw new Error('Channel not active'); + throw new Error('LND channel not active'); } } diff --git a/example/tests/unit.ts b/example/tests/unit.ts index b77d1034..279f789b 100644 --- a/example/tests/unit.ts +++ b/example/tests/unit.ts @@ -58,7 +58,12 @@ describe('Unit', function () { getAddress: async () => 'bcrt1qtk89me2ae95dmlp3yfl4q9ynpux8mxjus4s872', getScriptPubKeyHistory: async () => [], getFees: () => { - return Promise.resolve({ highPriority: 10, normal: 5, background: 1 }); + return Promise.resolve({ + highPriority: 10, + normal: 5, + background: 2, + mempoolMinimum: 1, + }); }, getTransactionData: async () => ({ header: '', diff --git a/example/tests/utils/test-profile.ts b/example/tests/utils/test-profile.ts index c9571955..d9236906 100644 --- a/example/tests/utils/test-profile.ts +++ b/example/tests/utils/test-profile.ts @@ -71,9 +71,10 @@ export default class TestProfile { getScriptPubKeyHistory: this.getScriptPubKeyHistory, getFees: () => Promise.resolve({ - highPriority: 3, - normal: 2, - background: 1, + highPriority: 4, + normal: 3, + background: 2, + mempoolMinimum: 1, }), getTransactionData: this.getTransactionData, getTransactionPosition: this.getTransactionPosition, diff --git a/example/utils/constants.ts b/example/utils/constants.ts index 6cf0c71e..de166d3a 100644 --- a/example/utils/constants.ts +++ b/example/utils/constants.ts @@ -33,12 +33,18 @@ export const customPeers = { bitcoinTestnet: [], bitcoinRegtest: [ { - host: '192.168.0.100', - ssl: 50001, - tcp: 50001, + host: '35.233.47.252', + ssl: 18484, + tcp: 18483, protocol: 'tcp', }, // { + // host: '192.168.0.100', + // ssl: 50001, + // tcp: 50001, + // protocol: 'tcp', + // }, + // { // host: 'localhost', // ssl: 60001, // tcp: 60001,