Skip to content

address_from_string does not recognize blocksci.ScriptHashAddress #217

@sixtusleon

Description

@sixtusleon

address_from_string does not recognize blocksci.ScriptHashAddress, just gives back NoneType

Expected Result

return type "blocksci.ScriptHashAddress"

Actual Result

NoneType

Reproduction Steps

import blocksci
chain = blocksci.Blockchain("/bitcoin-data")

# address_from_string delivers NoneType
test = chain.address_from_string('35FEfa7YkaTnMDxhpKUHWA9QPVuyrhHGfQ')
type(test)
# Output: NoneType

# Using a transaction to indirectly read the address works, therefore address should be stored in database
test = blocksci.Tx('08958a79972c4f535ed93198a247be387bb175fa695b47c58664e6b99b45fc15',chain).outputs.all[1].address
test.address_string
type(test)
# Output: 
# "35FEfa7YkaTnMDxhpKUHWA9QPVuyrhHGfQ"
# blocksci.ScriptHashAddress

System Information

BlockSci version: 0.5
Using AMI: no
Total memory: 64 GiB

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixed-in-v0.6This issue has been resolved in the development version (available on the v0.6 branch)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions