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

Reloading the blockchain object. #98

Closed
ClementPavue opened this issue Apr 25, 2018 · 2 comments · Fixed by #103
Closed

Reloading the blockchain object. #98

ClementPavue opened this issue Apr 25, 2018 · 2 comments · Fixed by #103

Comments

@ClementPavue
Copy link

Hello is there a way to reload the blockchain object during the code execution ? I tried to use the chain_access's method named reload but it has no effect. Here is my code:

chain.getAccess().chain->reload();

@hkalodner
Copy link
Collaborator

There's currently no way to do the unfortunately. This is resolved in the soon to be released next version Blockchain.reload() is introduced. Note that this invalidates all existing objects.

I'll leave this open until the next release is out.

hkalodner added a commit that referenced this issue May 3, 2018
Update BlockSci to v0.5.0

Version 0.5.0 focuses mainly on improvements and cleanups in the python interface. The largest new feature is the introduction of vectorized operations which return NumPy arrays, enabling much more rapid usage of BlockSci's python interface. You can read more details about the release in the [release notes](https://citp.github.io/BlockSci/changelog.html#version-0-5-0).

Fixes #72, fixes #76, fixes #84, and fixes #98
@ClementPavue
Copy link
Author

ClementPavue commented May 15, 2018

Hi I finally manage to find the time to try the new BlockSci version. However I didn't manage to reload my blockchain object using the chain.reload() function. Can you please give me a short example of code ?

I called the chain.reload() function then try to create an Address object with address_from_string(). The address is not recognized by BlockSci. However I counted the number of tx before and after the reloading and it is increasing, so technically the Blockchain is reloaded. Any clue on what I did wrong ?

Greetings,
Clément.

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

Successfully merging a pull request may close this issue.

2 participants