routing: add AllowMoreAttempts to decide whether more attempts are allowed
This commit is contained in:
4 files changed
+232
No files matched your search
@@ -839,6 +839,11 @@ func (m *mockMPPayment) GetFailureReason() *channeldb.FailureReason {
|
||||
return reason.(*channeldb.FailureReason)
|
||||
}
|
||||
|
||||
func (m *mockMPPayment) AllowMoreAttempts() (bool, error) {
|
||||
args := m.Called()
|
||||
return args.Bool(0), args.Error(1)
|
||||
}
|
||||
|
||||
type mockLink struct {
|
||||
htlcswitch.ChannelLink
|
||||
bandwidth lnwire.MilliSatoshi
|
||||
|
||||
Reference in new issue
Block a user