Browse Source

feat(lnd): add LND v0.9.0-beta to constants file

master
jamaljsr 5 years ago
parent
commit
69dcaa82b4
  1. 7
      src/components/network/NetworkView.spec.tsx
  2. 5
      src/utils/constants.ts

7
src/components/network/NetworkView.spec.tsx

@ -4,6 +4,7 @@ import { fireEvent, wait, waitForElement } from '@testing-library/dom';
import { createMemoryHistory } from 'history';
import { Status } from 'shared/types';
import { initChartFromNetwork } from 'utils/chart';
import { defaultRepoState } from 'utils/constants';
import {
getNetwork,
injections,
@ -137,7 +138,11 @@ describe('NetworkView Component', () => {
});
it('should not display a message if the docker images are found', async () => {
const images = ['bitcoind:0.19.0.1', 'lnd:0.8.2-beta', 'clightning:0.8.0'];
const images = [
`lnd:${defaultRepoState.images.LND.latest}`,
`clightning:${defaultRepoState.images['c-lightning'].latest}`,
`bitcoind:${defaultRepoState.images.bitcoind.latest}`,
];
const { queryByText } = renderComponent('1', Status.Stopped, images);
expect(
queryByText(

5
src/utils/constants.ts

@ -113,11 +113,12 @@ export const defaultRepoState: DockerRepoState = {
version: 2,
images: {
LND: {
latest: '0.8.2-beta',
versions: ['0.8.2-beta', '0.8.0-beta', '0.7.1-beta'],
latest: '0.9.0-beta',
versions: ['0.9.0-beta', '0.8.2-beta', '0.8.0-beta', '0.7.1-beta'],
// not all LND versions are compatible with all bitcoind versions.
// this mapping specifies the highest compatible bitcoind for each LND version
compatibility: {
'0.9.0-beta': '0.19.0.1',
'0.8.2-beta': '0.19.0.1',
'0.8.0-beta': '0.18.1',
'0.7.1-beta': '0.18.1',

Loading…
Cancel
Save