-
Notifications
You must be signed in to change notification settings - Fork 46
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
Exception when getting history from cli #148
Comments
I don't know if this helps in any way, but after copying an old testnet.wallet into a new clone I got the following when running the same command: scan 16badb41d9fd34d3401547cfbb4d324cd870c9cdf5632467b02350ef22837091: 0
in_colorvalues: [None]
0: epobc:16badb41d9fd34d3401547cfbb4d324cd870c9cdf5632467b02350ef22837091:0:205407: 200, False
1: None, True
Traceback (most recent call last):
File "./ngccc-cli.py", line 426, in <module>
Application().start()
File "./ngccc-cli.py", line 219, in start
getattr(self, "command_{command}".format(**args))(**args)
File "./ngccc-cli.py", line 367, in command_history
history = self.controller.get_history(asset)
File "/root/chroma/ngcccbase/ngcccbase/wallet_controller.py", line 231, in get_history
return self.model.get_history_for_asset(asset)
File "/root/chroma/ngcccbase/ngcccbase/wallet_model.py", line 185, in get_history_for_asset
height = self.ccc.blockchain_state.get_block_height(
AttributeError: 'ChromaBlockchainState' object has no attribute 'get_block_height' So it's still complaining over get_block_height, but it also provides the expected output. But this only works once. Afterwards I only get the error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I set height to -1 in wallet_model.py +130 everything works fine, but I doubt it's a healthy workaround.
The text was updated successfully, but these errors were encountered: