routing: invalid channels updatechanpolicy call

This commit is contained in:
ErikEk
2021-06-19 03:47:06 +02:00
parent 03bce2129b
commit 46e9481e6c
9 changed files with 1787 additions and 1342 deletions

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