Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBitcoinAddressError #18

Open
zmd971202 opened this issue May 20, 2018 · 0 comments
Open

CBitcoinAddressError #18

zmd971202 opened this issue May 20, 2018 · 0 comments

Comments

@zmd971202
Copy link

I got the problem when I ran the command "getbalance" on testnet. Why is the address wrong?

Traceback (most recent call last):
File "colorcore.py", line 35, in
colorcore.routing.Program.execute()
File "D:\GitHub\colorcore\colorcore\routing.py", line 64, in execute
router.parse(sys.argv[1:])
File "D:\GitHub\colorcore\colorcore\routing.py", line 338, in parse
func(**args)
File "D:\GitHub\colorcore\colorcore\routing.py", line 255, in decorator
self.event_loop.run_until_complete(coroutine_wrapper())
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py", line 468, in run_until_complete
return future.result()
File "D:\GitHub\colorcore\colorcore\routing.py", line 240, in coroutine_wrapper
result = yield from function(controller, *args, **kwargs)
File "D:\GitHub\colorcore\colorcore\operations.py", line 61, in getbalance
from_address, min_confirmations=self._as_int(minconf), max_confirmations=self._as_int(maxconf))
File "D:\GitHub\colorcore\colorcore\operations.py", line 339, in _get_unspent_outputs
unspent = yield from self.provider.list_unspent(None if address is None else [str(address)], **kwargs)
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\asyncio\coroutines.py", line 212, in coro
res = func(*args, **kw)
File "D:\GitHub\colorcore\colorcore\providers.py", line 87, in list_unspent
return self._proxy.listunspent(addrs=addresses, minconf=min_confirmations, maxconf=max_confirmations)
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\bitcoin\rpc.py", line 378, in listunspent
unspent['address'] = CBitcoinAddress(unspent['address'])
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\bitcoin\base58.py", line 110, in new
return cls.from_bytes(data, bord(verbyte[0]))
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\bitcoin\wallet.py", line 50, in from_bytes
raise CBitcoinAddressError('Version %d not a recognized Bitcoin Address' % nVersion)
bitcoin.wallet.CBitcoinAddressError: Version 196 not a recognized Bitcoin Address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant