Skip to content

Implement fast merkleroot computations in Python #941

Description

@apoelstra

Currently our functional tests require setting the global util.node_fastmerkle with an Elements node, and to compute merkle roots in blocktools.py we call an RPC on this node. This is ugly and crazy and causes mysterious failures when adding new tests. We should just implement sha2 midstates in Python (there is plenty of MIT-licensed code floating around which does this, for example https://github.com/slush0/stratum-mining-proxy/blob/master/mining_libs/midstate.py ).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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