htlcswitch+peer: add flush api and lifecycle hooks to ChannelUpdateHandler
We also add dummy implementations to channelLink and various mocks.
This commit is contained in:
1 parent
ec5b824879
commit
9b2d1018f2
7 files changed
+318
-3
No files matched your search
@@ -509,6 +509,27 @@ type mockMessageConn struct {
|
||||
readRaceDetectingCounter int
|
||||
}
|
||||
|
||||
func (m *mockUpdateHandler) EnableAdds(
|
||||
htlcswitch.LinkDirection,
|
||||
) error {
|
||||
// TODO(proofofkeags): Implement
|
||||
return nil
|
||||
}
|
||||
func (m *mockUpdateHandler) DisableAdds(htlcswitch.LinkDirection) error {
|
||||
// TODO(proofofkeags): Implement
|
||||
return nil
|
||||
}
|
||||
func (m *mockUpdateHandler) IsFlushing(htlcswitch.LinkDirection) bool {
|
||||
// TODO(proofofkeags): Implement
|
||||
return false
|
||||
}
|
||||
func (m *mockUpdateHandler) OnFlushedOnce(func()) {
|
||||
// TODO(proofofkeags): Implement
|
||||
}
|
||||
func (m *mockUpdateHandler) OnCommitOnce(htlcswitch.LinkDirection, func()) {
|
||||
// TODO(proofofkeags): Implement
|
||||
}
|
||||
|
||||
func newMockConn(t *testing.T, expectedMessages int) *mockMessageConn {
|
||||
return &mockMessageConn{
|
||||
t: t,
|
||||
|
||||
Reference in new issue
Block a user