routing: rename method and add err check when launch shard

A followup commit for PR#5332. In this commit we add more docs, rename
function updatePaymentState to fetchePaymentState, and add back the
check for channeldb.ErrPaymentTerminal after we launch shard.
This commit is contained in:
yyforyongyu committed 2021-06-27 17:48:32 +08:00
1 parent e62f0e1f3a
commit 4a23c08b60
2 files changed
+22 -9

No files matched your search

+1 -1
View File
@@ -1083,7 +1083,7 @@ func TestUpdatePaymentState(t *testing.T) {
}
// Call the method that updates the payment state.
_, state, err := pl.updatePaymentState()
_, state, err := pl.fetchPaymentState()
// Assert that the mock method is called as
// intended.