Browse Source

Merge pull request #5164 from cryptosharks131/fix-python-grpc-updatechannelpolicy

Update PolicyUpdateRequest to avoid python clash
master
Olaoluwa Osuntokun 3 years ago committed by GitHub
parent
commit
785d3c9b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      docs/grpc/python.md

10
docs/grpc/python.md

@ -210,3 +210,13 @@ details around how to drive `gRPC` from Python.
There is an [online API documentation](https://api.lightning.community?python)
available that shows all currently existing RPC methods, including code snippets
on how to use them.
## Special Scenarios
Due to a conflict between lnd's `UpdateChannelPolicy` gRPC endpoint and the python reserved word list, the follow syntax is required in order to use `PolicyUpdateRequest` with the `global` variable.
Here is an example of a working format that allows for use of a reserved word `global` in this scenario.
```
args = {'global': True, 'base_fee_msat': 1000, 'fee_rate': 0.000001, 'time_lock_delta': 40}
stub.UpdateChannelPolicy(ln.PolicyUpdateRequest(**args))
```
Loading…
Cancel
Save