Commit 6e15b94c authored by Tankred Hase's avatar Tankred Hase

Remove unused commitWeight

parent 2968cc89
......@@ -112,7 +112,6 @@ class ChannelAction {
localBalance: channel.localBalance,
remoteBalance: channel.remoteBalance,
commitFee: channel.commitFee,
commitWeight: channel.commitWeight,
channelPoint: channel.channelPoint,
fundingTxId: this._parseChannelPoint(channel.channelPoint)
.fundingTxidStr,
......@@ -139,7 +138,6 @@ class ChannelAction {
localBalance: channel.localBalance,
remoteBalance: channel.remoteBalance,
commitFee: channel.commitFee || 0,
commitWeight: channel.commitWeight || 0,
channelPoint: channel.channelPoint,
fundingTxId: this._parseChannelPoint(channel.channelPoint)
.fundingTxidStr,
......
......@@ -102,7 +102,6 @@ describe('Action Channels Unit Tests', () => {
localBalance: 10,
remoteBalance: 90,
commitFee: 15,
commitWeight: 5,
channelPoint: 'FFFF:1',
},
{
......@@ -112,7 +111,6 @@ describe('Action Channels Unit Tests', () => {
localBalance: 11,
remoteBalance: 91,
commitFee: 16,
commitWeight: 6,
channelPoint: 'FFFF:2',
},
],
......@@ -123,14 +121,12 @@ describe('Action Channels Unit Tests', () => {
fundingTxId: 'FFFF',
status: 'open',
commitFee: 15,
commitWeight: 5,
});
expect(store.channels[1], 'to satisfy', {
id: 43,
fundingTxId: 'FFFF',
status: 'open',
commitFee: 16,
commitWeight: 6,
});
});
......@@ -148,7 +144,6 @@ describe('Action Channels Unit Tests', () => {
localBalance: 10,
remoteBalance: 90,
commitFee: 15,
commitWeight: 5,
channelPoint: 'FFFF:1',
};
......@@ -171,7 +166,6 @@ describe('Action Channels Unit Tests', () => {
remotePubkey: 'some-key',
fundingTxId: 'FFFF',
commitFee: 15,
commitWeight: 5,
});
expect(store.pendingChannels[2], 'to satisfy', {
timeTilAvailable: '3 days and 5 hours',
......
......@@ -15,7 +15,6 @@ describe('Computed Channels Unit Tests', () => {
localBalance: 1990000,
remoteBalance: 10000,
commitFee: 500,
commitWeight: 50,
channelPoint: 'some-channel-point',
active: true,
status: 'open',
......@@ -27,7 +26,6 @@ describe('Computed Channels Unit Tests', () => {
localBalance: 1990000,
remoteBalance: 10000,
commitFee: 400,
commitWeight: 40,
channelPoint: 'some-channel-point',
active: false,
status: 'open',
......@@ -39,7 +37,6 @@ describe('Computed Channels Unit Tests', () => {
localBalance: 600000,
remoteBalance: 400000,
commitFee: 300,
commitWeight: 30,
channelPoint: 'some-channel-point',
status: 'pending-open',
});
......@@ -50,7 +47,6 @@ describe('Computed Channels Unit Tests', () => {
localBalance: 500000,
remoteBalance: 300000,
commitFee: 200,
commitWeight: 20,
channelPoint: 'some-channel-point',
status: 'pending-closing',
});
......@@ -61,7 +57,6 @@ describe('Computed Channels Unit Tests', () => {
localBalance: 400000,
remoteBalance: 300000,
commitFee: 100,
commitWeight: 10,
channelPoint: 'some-channel-point',
status: 'pending-force-closing',
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment