Skip to content

Use date+number to derive double spend hash #2

Description

@theBergmann

I thought about using the json-api of doublespend.cash to collect information about double spends and create statistics.

To do so I need to know the url before querying the api. With urls like
/txdata/cc4d87dc905b913ef4af8020e54f6dfda4a3017e.json
it seems impossible to write the program (at least for me :)
If you however derive the hash from something like date+number - for example: 2018062501, 2018062502 etc. - you can easily query the json-api to collect data about doublespends.

@GitCash send 0.005 bch to @dagurval

Update: I think it is this line:
"h.update(txid_first.encode() + txid_second.encode())"
in this file
https://github.com/dagurval/doublespend.cash/blob/master/respend/txdata.py

I guess replacing it with (date+k) requires some kind of loop to count k ...

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions