citp / BlockSci

A high-performance tool for blockchain science and exploration

Home Page:https://citp.github.io/BlockSci/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

balance() miss to include the coinbase reward

yya518 opened this issue · comments

Please provide a clear and concise description of the problem.

Reproduction Steps

import blocksci

# the balance is supposed to be 50.04532991 BTC, but got 0.04532991BTC
chain.address_from_string('13A1W4jLPP75pzvn2qJ5KyyqG3qPSpb9jM').balance(600000)

System Information

Using AMI: no
BlockSci version: 0.6
Blockchain: Bitcoin
Parser: Disk
Total memory: 256 GB

Ok, this address has two types: PubkeyAddress, and PubkeyHashAddress.

chain.address_from_string('13A1W4jLPP75pzvn2qJ5KyyqG3qPSpb9jM').equiv().balance()

returns desirable balance.