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

the balance property is no correct for some address #447

Open
JVfisher opened this issue Jan 4, 2021 · 0 comments
Open

the balance property is no correct for some address #447

JVfisher opened this issue Jan 4, 2021 · 0 comments

Comments

@JVfisher
Copy link

JVfisher commented Jan 4, 2021

Please provide a clear and concise description of the problem.

Blocksci is a wondful tool! but I found that there are two results about balance of the address like '1PTYXwamXXgQoAhDbmUf98rY2Pg1pYXhin' .
if I get the balance by the method provided by the address class or I calculate the balance with the code in other issues.
"address_balances = chain.blocks.outputs.where(lambda o: ~o.is_spent).group_by(
lambda output: output.address,
lambda outputs: outputs.value.sum
)"

I double checked the results. the balance property is wrong. the result of the calculation of up code is right.

Reproduction Steps

for more information, when I run "[(atx.hash,atx.index) for atx in chain.address_from_string('1PTYXwamXXgQoAhDbmUf98rY2Pg1pYXhin').output_txes]", I got 24 transaction when the right answer is 25. "6bf2fb101058394e3aa7f79c188cd1967ccf76ac1cebc33c3c7fc510272f98aa" is missing.
when I use "chain.address_from_string('1PTYXwamXXgQoAhDbmUf98rY2Pg1pYXhin').first_tx.hash", I can get "6bf2fb101058394e3aa7f79c188cd1967ccf76ac1cebc33c3c7fc510272f98aa"

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