htlcswitch+router+server: handle payment error topology updates
In previous commits we have intoduced the onion errors. Some of this errors include lnwire.ChannelUpdate message. In order to change topology accordingly to the received error, from nodes where failure have occured, we have to propogate the update to the router subsystem.
This commit is contained in:
1 parent
6bbb7cbfc3
commit
79b8d26b1a
4 files changed
+64
-11
No files matched your search
+11
-7
@@ -51,13 +51,17 @@ func newMockServer(t *testing.T, name string) *mockServer {
|
||||
copy(id[:], h[:])
|
||||
|
||||
return &mockServer{
|
||||
t: t,
|
||||
id: id,
|
||||
name: name,
|
||||
messages: make(chan lnwire.Message, 3000),
|
||||
quit: make(chan bool),
|
||||
registry: newMockRegistry(),
|
||||
htlcSwitch: New(Config{}),
|
||||
t: t,
|
||||
id: id,
|
||||
name: name,
|
||||
messages: make(chan lnwire.Message, 3000),
|
||||
quit: make(chan bool),
|
||||
registry: newMockRegistry(),
|
||||
htlcSwitch: New(Config{
|
||||
UpdateTopology: func(msg *lnwire.ChannelUpdate) error {
|
||||
return nil
|
||||
},
|
||||
}),
|
||||
recordFuncs: make([]func(lnwire.Message), 0),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user