lnd/peer
Elle Mouton 972f57e9a7
peer+htlcswitch: update Enable/DisableAdds API
In this commit, the `ChannelUpdateHandler`'s `EnableAdds` and
`DisableAdds` methods are adjusted to return booleans instead of errors.
This is done becuase currently, any error returned by these methods is
treated by just logging the error since today all it means is that the
proposed update has already been done. And so all we do today is log the
error. But in future, if these methods are updated to return actual
errors that need to be handled, then we might forget to handle them
correctly at the various call sights. So we instead change the signature
of the function to just return a boolean. In future, if we do need to
return any error, we will have to go inspect every call sight in any
case to fix compliation & then we can be sure we are handling the errors
correctly.
2024-02-21 11:35:11 +02:00
..
brontide_test.go peer: fix issue where we echo remote Shutdown 2024-01-30 12:15:59 -05:00
brontide.go peer+htlcswitch: update Enable/DisableAdds API 2024-02-21 11:35:11 +02:00
interfaces.go htlcswitch+peer: CreateAndAddLink in switch, add messageSwitch to peer 2021-08-10 17:15:52 -04:00
log.go multi: remove peer.go, change all references to point to peer pkg 2020-07-06 19:16:07 -04:00
musig_chan_closer.go lnwallet: fix taproot co-op close nonce bug 2023-08-22 16:33:50 -07:00
ping_manager_test.go peer: Add machinery to track the state and validity of remote pongs 2023-10-19 09:26:45 -07:00
ping_manager.go peer: refactor main event loop for ping handler 2024-01-22 18:20:30 -08:00
test_utils.go peer+htlcswitch: update Enable/DisableAdds API 2024-02-21 11:35:11 +02:00