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
4e067572
Unverified
Commit
4e067572
authored
Apr 29, 2019
by
Tankred Hase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read commitFee correctly for pending-open channel
parent
c82e2571
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
channel.js
src/action/channel.js
+1
-1
channel.spec.js
test/unit/action/channel.spec.js
+3
-2
No files found.
src/action/channel.js
View file @
4e067572
...
...
@@ -137,7 +137,6 @@ class ChannelAction {
capacity
:
channel
.
capacity
,
localBalance
:
channel
.
localBalance
,
remoteBalance
:
channel
.
remoteBalance
,
commitFee
:
channel
.
commitFee
||
0
,
channelPoint
:
channel
.
channelPoint
,
fundingTxId
:
this
.
_parseChannelPoint
(
channel
.
channelPoint
)
.
fundingTxidStr
,
...
...
@@ -146,6 +145,7 @@ class ChannelAction {
...
mapPendingAttributes
(
poc
.
channel
),
confirmationHeight
:
poc
.
confirmationHeight
,
blocksTillOpen
:
poc
.
blocksTillOpen
,
commitFee
:
poc
.
commitFee
,
feePerKw
:
poc
.
feePerKw
,
status
:
'pending-open'
,
}));
...
...
test/unit/action/channel.spec.js
View file @
4e067572
...
...
@@ -143,13 +143,14 @@ describe('Action Channels Unit Tests', () => {
capacity
:
100
,
localBalance
:
10
,
remoteBalance
:
90
,
commitFee
:
15
,
channelPoint
:
'FFFF:1'
,
};
it
(
'should list pending channels'
,
async
()
=>
{
grpc
.
sendCommand
.
withArgs
(
'pendingChannels'
).
resolves
({
pendingOpenChannels
:
[{
channel
:
{
...
pendingChannel
}
}],
pendingOpenChannels
:
[
{
channel
:
{
...
pendingChannel
},
commitFee
:
15
},
],
pendingClosingChannels
:
[{
channel
:
{
...
pendingChannel
}
}],
pendingForceClosingChannels
:
[
{
...
...
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