mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
routing: invalid channels updatechanpolicy call
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user