bitcoinfees / bitcoin-feemodel

Bitcoin transaction fee modeling and estimation
https://bitcoinfees.github.io
MIT License
9 stars 2 forks source link

Add tag for 1hash #6

Closed OverlordQ closed 8 years ago

OverlordQ commented 8 years ago

https://www.blocktrail.com/BTC/tx/20e58f841a7fab6d1e9960b7f86279ffd6a3c0a04f6f2851bbd725db1a4c21ee https://www.blocktrail.com/BTC/tx/0ae60ddb2d14da7c9ae1ea8b971a494182333547d28aa83062290925aea37159

OverlordQ commented 8 years ago

Strange, isn't picking it up for some reason. 402835 and 402843 still came through as 1F1xcRt8H8Wa_

bitcoinfees commented 8 years ago

The function for getting the tag is util.get_coinbase_info, you can use that to inspect the tag manually.

I browsed through a few of the 1F1xc.. blocks, but I don't see the 1hash tag. Where did you first see it?

OverlordQ commented 8 years ago

I guess it's because they do their blocks weird. For 402835, the coinbase is mostly junk, but they put their mining info into OP_RETURN.

{
  "txid": "df7318a5579272d22750759f6ea42fc5c1a927fa78ebcb7f2e5c263bb2899b87",
  "version": 1,
  "locktime": 0,
  "vin": [
    {
      "coinbase": "03932506",
      "sequence": 4294967295
    }
  ],
  "vout": [
    {
      "value": 25.35701715,
      "n": 0,
      "scriptPubKey": {
        "asm": "OP_DUP OP_HASH160 99c02ebccad91945bcb469e5a66240b3c7ee614e OP_EQUALVERIFY OP_CHECKSIG",
        "hex": "76a91499c02ebccad91945bcb469e5a66240b3c7ee614e88ac",
        "reqSigs": 1,
        "type": "pubkeyhash",
        "addresses": [
          "1F1xcRt8H8Wa623KqmkEontwAAVqDSAWCV"
        ]
      }
    },
    {
      "value": 0,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_RETURN [error]",
        "hex": "6a28124d696e65642062792031686173682e636f6d7ba039e5eb590f29eb590f291e6855ad",
        "type": "nonstandard"
      }
    }
  ]
}

OP_RETURN decodes to j(Mined by 1hash.com{ 9åëY)ëY)hU­