From f7f677012053c4bf5ea5dd920c88b880bfff89f8 Mon Sep 17 00:00:00 2001 From: hackrush Date: Fri, 9 Mar 2018 21:43:07 +0530 Subject: [PATCH 1/3] Removed flags decorator as short flags are no longer used. --- CHANGELOG.md | 3 +++ lbrynet/daemon/auth/server.py | 9 --------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f3528189..3863fbd7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ at anytime. * `blob_list` error when looking up blobs by stream or sd hash * issue#1107 whereing claiming a channel with the exact amount present in wallet would give out proper error * Fix channel creation to use same bid logic as claim ([1148])(https://github.com/lbryio/lbry/pull/1148) + * ### Deprecated * `report_bug` jsonrpc command @@ -26,6 +27,7 @@ at anytime. ### Changed * reflector server to periodically check and set `should_announce` for sd and head blobs instead of during each request * reflector server to use `SQLiteStorage` to find needed blob hashes for a stream + * ### Added * scripts to autogenerate documentation @@ -34,6 +36,7 @@ at anytime. ### Removed * short(single dashed) arguments for `lbrynet-cli` + * `flags` decorator from server.py as short flags are no longer used when using api/cli methods * diff --git a/lbrynet/daemon/auth/server.py b/lbrynet/daemon/auth/server.py index 7a259de02..af08f8c46 100644 --- a/lbrynet/daemon/auth/server.py +++ b/lbrynet/daemon/auth/server.py @@ -149,15 +149,6 @@ class AuthorizedBase(object): return f return _deprecated_wrapper - @staticmethod - def flags(**kwargs): - def _flag_wrapper(f): - f._flags = {} - for k, v in kwargs.iteritems(): - f._flags[v] = k - return f - return _flag_wrapper - class AuthJSONRPCServer(AuthorizedBase): """Authorized JSONRPC server used as the base class for the LBRY API From 3724fa18107f8ce8a8de8c9184db3e4216297ee7 Mon Sep 17 00:00:00 2001 From: hackrush Date: Fri, 9 Mar 2018 22:37:59 +0530 Subject: [PATCH 2/3] Removed last flag decorator --- lbrynet/daemon/Daemon.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index 0494badf9..801c15ef5 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -2730,7 +2730,6 @@ class Daemon(AuthJSONRPCServer): @AuthJSONRPCServer.auth_required @defer.inlineCallbacks - @AuthJSONRPCServer.flags(no_broadcast='--no_broadcast') def jsonrpc_wallet_prefill_addresses(self, num_addresses, amount, no_broadcast=False): """ Create new addresses, each containing `amount` credits From 9a3eec095099a4b6c9faa52739054833347573be Mon Sep 17 00:00:00 2001 From: hackrush Date: Sun, 18 Mar 2018 16:13:45 +0530 Subject: [PATCH 3/3] Sanitize changelog --- CHANGELOG.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3863fbd7d..bc92c2705 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,6 @@ at anytime. * `blob_list` error when looking up blobs by stream or sd hash * issue#1107 whereing claiming a channel with the exact amount present in wallet would give out proper error * Fix channel creation to use same bid logic as claim ([1148])(https://github.com/lbryio/lbry/pull/1148) - * ### Deprecated * `report_bug` jsonrpc command @@ -27,7 +26,6 @@ at anytime. ### Changed * reflector server to periodically check and set `should_announce` for sd and head blobs instead of during each request * reflector server to use `SQLiteStorage` to find needed blob hashes for a stream - * ### Added * scripts to autogenerate documentation @@ -37,7 +35,6 @@ at anytime. ### Removed * short(single dashed) arguments for `lbrynet-cli` * `flags` decorator from server.py as short flags are no longer used when using api/cli methods - * ## [0.19.0] - 2018-03-02