Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
lightning-bits
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
lightning-bits
Commits
6e15b94c
Commit
6e15b94c
authored
Apr 29, 2019
by
Tankred Hase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused commitWeight
parent
2968cc89
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
13 deletions
+0
-13
channel.js
src/action/channel.js
+0
-2
channel.spec.js
test/unit/action/channel.spec.js
+0
-6
channel.spec.js
test/unit/computed/channel.spec.js
+0
-5
No files found.
src/action/channel.js
View file @
6e15b94c
...
...
@@ -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
,
...
...
test/unit/action/channel.spec.js
View file @
6e15b94c
...
...
@@ -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'
,
...
...
test/unit/computed/channel.spec.js
View file @
6e15b94c
...
...
@@ -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'
,
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment