From dd036d15c8479f310691702bcac942a1bc217ea6 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 6 Sep 2017 10:58:52 -0400 Subject: [PATCH] update decode_address import from lbryschema https://github.com/lbryio/lbryschema/pull/16 --- lbrynet/daemon/Daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index 3cfb1efd4..4c43edf4c 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -19,7 +19,7 @@ from lbryschema.claim import ClaimDict from lbryschema.uri import parse_lbry_uri from lbryschema.error import URIParseError from lbryschema.validator import validate_claim_id -from lbryschema.base import base_decode +from lbryschema.address import decode_address # TODO: importing this when internet is disabled raises a socket.gaierror from lbrynet.core.system_info import get_lbrynet_version @@ -2312,8 +2312,8 @@ class Daemon(AuthJSONRPCServer): raise NullFundsError() if address: - if not base_decode(address, 58): - raise Exception("Given an invalid address to send to") + # raises an error if the address is invalid + decode_address(address) result = yield self.jsonrpc_send_amount_to_address(amount, address) else: validate_claim_id(claim_id)