Skip to content

chain.address_type_txes() fails when address type count = 0 #104

@ghost

Description

When calling chain.address_type_txes() with a block range that has 0 transactions of the specified address type, the script hangs and eventually throws a "std::bad_alloc" error.

Example:
txes_protocol = chain.address_type_txes(511645, 511646, blocksci.address_type.nulldata)`

Error:
MemoryError: std::bad_alloc

I've also reproduced this behavior with address type of multisig, eg. block 170.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions