routing: invalid channels updatechanpolicy call

This commit is contained in:
ErikEk committed 2021-09-15 10:20:49 +02:00
1 parent 03bce2129b
commit 46e9481e6c
9 files changed
+1787 -1342

No files matched your search

+5 -2
View File
@@ -6312,12 +6312,15 @@ func (r *rpcServer) UpdateChannelPolicy(ctx context.Context,
// With the scope resolved, we'll now send this to the local channel
// manager so it can propagate the new policy for our target channel(s).
err := r.server.localChanMgr.UpdatePolicy(chanPolicy, targetChans...)
failedUpdates, err := r.server.localChanMgr.UpdatePolicy(chanPolicy,
targetChans...)
if err != nil {
return nil, err
}
return &lnrpc.PolicyUpdateResponse{}, nil
return &lnrpc.PolicyUpdateResponse{
FailedUpdates: failedUpdates,
}, nil
}
// ForwardingHistory allows the caller to query the htlcswitch for a record of