rpc: add channel reserve fields in RPC responses.
In this commit two fields were added to the Channl RPC result in both open and pending states. The fields: local_chan_reserve, remote_chan_reserve represents the reservation the nodes are rquired to keep in both sides of the channel. This is usefull when calculating the "real" inbound and outbound liquidity in an accurate way.
This commit is contained in:
1 parent
7a5247b766
commit
404abcbd04
4 files changed
+585
-502
No files matched your search
@@ -1407,6 +1407,16 @@
|
||||
"remote_balance": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"local_chan_reserve_sat": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"description": "/ The minimum satoshis this node is required to reserve in its balance."
|
||||
},
|
||||
"remote_chan_reserve_sat": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"description": "*\nThe minimum satoshis the other node is required to reserve in its\nbalance."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1626,6 +1636,16 @@
|
||||
"chan_status_flags": {
|
||||
"type": "string",
|
||||
"description": "/ A set of flags showing the current state of the channel."
|
||||
},
|
||||
"local_chan_reserve_sat": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"description": "/ The minimum satoshis this node is required to reserve in its balance."
|
||||
},
|
||||
"remote_chan_reserve_sat": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"description": "*\nThe minimum satoshis the other node is required to reserve in its balance."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user