mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 22:50:58 +02:00
routing: export dbMPPayment interface
This will assist external programs attempting to re-use ChannelRouter code and leverage the ControlTower's FetchPayment method.
This commit is contained in:
@@ -504,7 +504,7 @@ func (m *mockControlTowerOld) FailPayment(phash lntypes.Hash,
|
||||
}
|
||||
|
||||
func (m *mockControlTowerOld) FetchPayment(phash lntypes.Hash) (
|
||||
dbMPPayment, error) {
|
||||
DBMPPayment, error) {
|
||||
|
||||
m.Lock()
|
||||
defer m.Unlock()
|
||||
@@ -776,7 +776,7 @@ func (m *mockControlTower) FailPayment(phash lntypes.Hash,
|
||||
}
|
||||
|
||||
func (m *mockControlTower) FetchPayment(phash lntypes.Hash) (
|
||||
dbMPPayment, error) {
|
||||
DBMPPayment, error) {
|
||||
|
||||
args := m.Called(phash)
|
||||
|
||||
@@ -814,7 +814,7 @@ type mockMPPayment struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
var _ dbMPPayment = (*mockMPPayment)(nil)
|
||||
var _ DBMPPayment = (*mockMPPayment)(nil)
|
||||
|
||||
func (m *mockMPPayment) GetState() *channeldb.MPPaymentState {
|
||||
args := m.Called()
|
||||
|
Reference in New Issue
Block a user