Elliott Jin
215bf637ea
itest: add test for new UpdateChanStatus RPC
2021-02-24 07:13:29 -08:00
Elliott Jin
5a54d787e1
brontide: log at debug, not error, when ignoring enable request
2021-02-24 07:13:28 -08:00
Elliott Jin
19e9ed5cdf
lncli: add updatechanstatus command
...
The updatechanstatus command calls into the UpdateChanStatus RPC
in the router server.
2021-02-24 07:13:28 -08:00
Elliott Jin
6d01f140d9
routerrpc: implement UpdateChanStatus RPC in router server
...
Update UpdateChanStatus stub implementation to call into exposed
ChanStatusManager methods in RouterBackend.
2021-02-24 07:13:28 -08:00
Elliott Jin
ce2796257e
multi: move GetChanPointFundingTxid from lnd to lnrpc
...
This refactor-only change makes the GetChanPointFundingTxid helper
function available from sub-systems outside of the root lnd package.
2021-02-24 07:13:28 -08:00
Elliott Jin
db76b970ac
routerrpc: expose SetChannel* methods from Router backend
...
Allow router RPC requests to call into the ChanStatusManager to
manually update channel state.
2021-02-24 07:13:28 -08:00
Elliott Jin
4e4f4bc194
routerrpc: add UpdateChanStatus RPC to Router service
...
Update router.proto and rest-annotations.yaml, recompile protos,
add a stub implementation to routerrpc.Server.
2021-02-24 07:13:28 -08:00
Elliott Jin
a259317d72
netann: add test for RequestAuto
2021-02-24 07:13:28 -08:00
Elliott Jin
59bd617c97
netann: add RequestAuto for restoring auto chan state management
...
If a channel was manually disabled, subsequent automatic / background
requests to update that channel's state will be ignored. A RequestAuto
call restores automatic / background state management and indicates
that such requests should no longer be ignored.
2021-02-24 07:13:28 -08:00
Elliott Jin
e1709f20eb
netann: add tests for manually enabling/disabling channels
2021-02-24 07:13:28 -08:00
Elliott Jin
dbabc2e696
netann: add bool param to chan_status_manager_test
...
Add boolean parameter for test functions without changing any
existing functionality. All current tests set manual = false, but
Future tests can set manual = true to test manual requests to
update channel state.
2021-02-24 07:13:28 -08:00
Elliott Jin
542c89ad5d
netann: update channel status transitions to handle manual requests
2021-02-24 07:13:28 -08:00
Elliott Jin
c40d291488
netann: add ChanStatusManuallyDisabled state
...
Add new value for ChanStatus without changing any existing
functionality. The new value indicates that a user manually
requested disabling a channel.
2021-02-24 07:13:28 -08:00
Elliott Jin
e9baf0e4a2
multi: add bool param to channel enable/disable methods
...
Add a new boolean parameter without changing any existing
functionality. The parameter will be used to indicate
whether a request to update a channel's status was made
manually by a user (currently always false).
2021-02-24 07:13:28 -08:00