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
2021-05-21 19:02:49 +08:00
parent e62f0e1f3a
commit 4a23c08b60
2 changed files with 22 additions and 9 deletions

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.