mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-15 23:31:19 +01:00
rpcserver: refactor logic for ListPayments/DeleteAllPayments
This commit slightly refactors the logic for the new outgoing payment related RPC’s to more closely match the style of the rest of the codebase. Additionally the tests have been updated to reflect the changes to the protos of the new RPC’s.
This commit is contained in:
@@ -535,7 +535,7 @@ func (r *ChannelRouter) processNetworkAnnouncement(msg lnwire.Message) bool {
|
||||
}
|
||||
|
||||
// As edges are directional edge node has a unique policy for
|
||||
// the direction of th edge they control. Therefore we first
|
||||
// the direction of the edge they control. Therefore we first
|
||||
// check if we already have the most up to date information for
|
||||
// that edge. If so, then we can exit early.
|
||||
updateTimestamp := time.Unix(int64(msg.Timestamp), 0)
|
||||
|
||||
Reference in New Issue
Block a user