Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to validate input uniquely #21

Open
placer14 opened this issue Sep 27, 2018 · 1 comment
Open

Unable to validate input uniquely #21

placer14 opened this issue Sep 27, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@placer14
Copy link
Member

failed comparison (actual: 47405) -> (expected: 2000000)
[2018-09-27T13:51:08.003287247Z]: job:connection_exercise event:cc_tx_invalid err:incorrect value on input #2 on tx hash 86fdb0b160a9e404620dec3ced5804e93b0a777f15656b35aaa69a0e2ccd3a3b kvs:[host:http://bitcore-btc-1.openbazaar.org:3001/insight-api/ wg_size:1]

This error highlights a transaction which has a input from the insight API which does not uniquely match the other input on the blockchain side.

===
Insight

{
  "txid": "86fdb0b160a9e404620dec3ced5804e93b0a777f15656b35aaa69a0e2ccd3a3b",
  "version": 2,
  "locktime": 0,
  "vin": [{
    "txid": "cf57396291b4bf433dac19db1d34ecdee3607f60c37e78ffa1e61a82ef9cc723",
    "vout": 1,
    "sequence": 4294967295,
    "n": 0,
    "scriptSig": {
      "hex": "00483045022100f6ef8c0be5122078b52e5729feef6395a15a1a2856a491641c5e43d2fd9b29a602203942f30781c28401468dc887719722ba1a76c547b4dbb539b18fef09a80c2f5b01483045022100ed7e204eb90c19d35e132ff39aaf1e8963ffe6d2a4d7e04e660fb0a8c360d9470220455d26a3bc6d9a7072ba400f571cd263374dafddeabb6240bc4148e6708bcc3401483045022100ed053f6e8a4229e0e812378a3d98965ea795d51e6045401738ff62dd77cc390e02203293dd0592729b793bfbc20f386c678295c0338c1f738e069a5bc077e2df7c6a014d0b01534104220936c3245597b1513a9a7fe96d96facf1a840ee21432a1b73c2cf42c1810284dd730f21ded9d818b84402863a2b5cd1afe3a3d13719d524482592fb23c88a341042732348967288902847a4fb285caa3b8f939fd5cc8def3363f5c649e08039221a773f5e86cc1263bb8863df6265c9bd12e94eefbb21e52ad845e7639f94175eb410472225d3abc8665cf01f703a270ee65be5421c6a495ce34830061eb0690ec27dfd1194e27b6b0b659418d9f91baec18923078aac18dc19699aae82583561fefe54104a24db5c0e8ed34da1fd3b6f9f797244981b928a8750c8f11f9252041daad7b2d95309074fed791af77dc85abdd8bb2774ed8d53379d28cd49f251b9c08cab7fc54ae",
      "asm": "0 3045022100f6ef8c0be5122078b52e5729feef6395a15a1a2856a491641c5e43d2fd9b29a602203942f30781c28401468dc887719722ba1a76c547b4dbb539b18fef09a80c2f5b[ALL] 3045022100ed7e204eb90c19d35e132ff39aaf1e8963ffe6d2a4d7e04e660fb0a8c360d9470220455d26a3bc6d9a7072ba400f571cd263374dafddeabb6240bc4148e6708bcc34[ALL] 3045022100ed053f6e8a4229e0e812378a3d98965ea795d51e6045401738ff62dd77cc390e02203293dd0592729b793bfbc20f386c678295c0338c1f738e069a5bc077e2df7c6a[ALL] 534104220936c3245597b1513a9a7fe96d96facf1a840ee21432a1b73c2cf42c1810284dd730f21ded9d818b84402863a2b5cd1afe3a3d13719d524482592fb23c88a341042732348967288902847a4fb285caa3b8f939fd5cc8def3363f5c649e08039221a773f5e86cc1263bb8863df6265c9bd12e94eefbb21e52ad845e7639f94175eb410472225d3abc8665cf01f703a270ee65be5421c6a495ce34830061eb0690ec27dfd1194e27b6b0b659418d9f91baec18923078aac18dc19699aae82583561fefe54104a24db5c0e8ed34da1fd3b6f9f797244981b928a8750c8f11f9252041daad7b2d95309074fed791af77dc85abdd8bb2774ed8d53379d28cd49f251b9c08cab7fc54ae"
    },
    "addr": "3BMEX2WXTjgAgLchB8Ge2eDP3zdyqdQoyK",
    "valueSat": 4581072,
    "value": 0.04581072,
    "doubleSpentTxID": null
  }, {
    "txid": "fcd37bd4a098ca5c802a2719ad4392e3c00baf5c92d59a0f439c8f49b09ff205",
    "vout": 0,
    "sequence": 4294967295,
    "n": 1,
    "scriptSig": {
      "hex": "00483045022100c01a284ddaa61900a6b514e453af577ac82b2295634d43e28ffe555bc9a903be02207ea4182f58b8925b3aafa58a2fc36536ce32d87faa5b48cb2890203f63e1cf950147304402206cec1e7e76fed7c20ee1041c9dcc5e84159703d899b86a7eb08dab9e5be1b585022028cb5a92105fcfc3391a16a502bdf5a4db7cd04b8a1f055b159a8373be49a42e01483045022100c3ef3b1bfbf8c4532d6533005638298b00c91edab92f7b42c9a3ab47ebeae3fa02207680b9929cae432a19316918a14f140ade130a893e35a7a9cfe8aab20924eb49014d0b01534104220936c3245597b1513a9a7fe96d96facf1a840ee21432a1b73c2cf42c1810284dd730f21ded9d818b84402863a2b5cd1afe3a3d13719d524482592fb23c88a341042732348967288902847a4fb285caa3b8f939fd5cc8def3363f5c649e08039221a773f5e86cc1263bb8863df6265c9bd12e94eefbb21e52ad845e7639f94175eb410472225d3abc8665cf01f703a270ee65be5421c6a495ce34830061eb0690ec27dfd1194e27b6b0b659418d9f91baec18923078aac18dc19699aae82583561fefe54104a24db5c0e8ed34da1fd3b6f9f797244981b928a8750c8f11f9252041daad7b2d95309074fed791af77dc85abdd8bb2774ed8d53379d28cd49f251b9c08cab7fc54ae",
      "asm": "0 3045022100c01a284ddaa61900a6b514e453af577ac82b2295634d43e28ffe555bc9a903be02207ea4182f58b8925b3aafa58a2fc36536ce32d87faa5b48cb2890203f63e1cf95[ALL] 304402206cec1e7e76fed7c20ee1041c9dcc5e84159703d899b86a7eb08dab9e5be1b585022028cb5a92105fcfc3391a16a502bdf5a4db7cd04b8a1f055b159a8373be49a42e[ALL] 3045022100c3ef3b1bfbf8c4532d6533005638298b00c91edab92f7b42c9a3ab47ebeae3fa02207680b9929cae432a19316918a14f140ade130a893e35a7a9cfe8aab20924eb49[ALL] 534104220936c3245597b1513a9a7fe96d96facf1a840ee21432a1b73c2cf42c1810284dd730f21ded9d818b84402863a2b5cd1afe3a3d13719d524482592fb23c88a341042732348967288902847a4fb285caa3b8f939fd5cc8def3363f5c649e08039221a773f5e86cc1263bb8863df6265c9bd12e94eefbb21e52ad845e7639f94175eb410472225d3abc8665cf01f703a270ee65be5421c6a495ce34830061eb0690ec27dfd1194e27b6b0b659418d9f91baec18923078aac18dc19699aae82583561fefe54104a24db5c0e8ed34da1fd3b6f9f797244981b928a8750c8f11f9252041daad7b2d95309074fed791af77dc85abdd8bb2774ed8d53379d28cd49f251b9c08cab7fc54ae"
    },
    "addr": "3BMEX2WXTjgAgLchB8Ge2eDP3zdyqdQoyK",
    "valueSat": 2000000,
    "value": 0.02,
    "doubleSpentTxID": null
  }, {
    "txid": "51e0b72665e1b54ff2fcb4863b76acae36bdc5d62498d635c3f34a632e68c630",
    "vout": 0,
    "sequence": 4294967295,
    "n": 2,
    "scriptSig": {
      "hex": "004730440220283423cdeda60f13a77026fc7dc896c0fffc47efb8d241bba706d74d282e39f902206396800e0e19d4c36da86fb737f3ad7f49647df16ea38f7f0c019eb82a9771a701483045022100ec929d963a6176ee660c522a872bf520c4d574066f0f52c30583290711177fb802200ccb05f07ad07702ecba7dad32016abf4842fe5bf4616ac42d97233e033a83aa01483045022100e8ea741d11610250270268f8facd45fb10f5e28a737406717337fe940bb8089a0220643ee860d4045fbb3f509963ac30ae38b736585a44c9c617b3854072f66cd3e6014d0b01534104220936c3245597b1513a9a7fe96d96facf1a840ee21432a1b73c2cf42c1810284dd730f21ded9d818b84402863a2b5cd1afe3a3d13719d524482592fb23c88a341042732348967288902847a4fb285caa3b8f939fd5cc8def3363f5c649e08039221a773f5e86cc1263bb8863df6265c9bd12e94eefbb21e52ad845e7639f94175eb410472225d3abc8665cf01f703a270ee65be5421c6a495ce34830061eb0690ec27dfd1194e27b6b0b659418d9f91baec18923078aac18dc19699aae82583561fefe54104a24db5c0e8ed34da1fd3b6f9f797244981b928a8750c8f11f9252041daad7b2d95309074fed791af77dc85abdd8bb2774ed8d53379d28cd49f251b9c08cab7fc54ae",
      "asm": "0 30440220283423cdeda60f13a77026fc7dc896c0fffc47efb8d241bba706d74d282e39f902206396800e0e19d4c36da86fb737f3ad7f49647df16ea38f7f0c019eb82a9771a7[ALL] 3045022100ec929d963a6176ee660c522a872bf520c4d574066f0f52c30583290711177fb802200ccb05f07ad07702ecba7dad32016abf4842fe5bf4616ac42d97233e033a83aa[ALL] 3045022100e8ea741d11610250270268f8facd45fb10f5e28a737406717337fe940bb8089a0220643ee860d4045fbb3f509963ac30ae38b736585a44c9c617b3854072f66cd3e6[ALL] 534104220936c3245597b1513a9a7fe96d96facf1a840ee21432a1b73c2cf42c1810284dd730f21ded9d818b84402863a2b5cd1afe3a3d13719d524482592fb23c88a341042732348967288902847a4fb285caa3b8f939fd5cc8def3363f5c649e08039221a773f5e86cc1263bb8863df6265c9bd12e94eefbb21e52ad845e7639f94175eb410472225d3abc8665cf01f703a270ee65be5421c6a495ce34830061eb0690ec27dfd1194e27b6b0b659418d9f91baec18923078aac18dc19699aae82583561fefe54104a24db5c0e8ed34da1fd3b6f9f797244981b928a8750c8f11f9252041daad7b2d95309074fed791af77dc85abdd8bb2774ed8d53379d28cd49f251b9c08cab7fc54ae"
    },
    "addr": "3BMEX2WXTjgAgLchB8Ge2eDP3zdyqdQoyK",
    "valueSat": 47405,
    "value": 0.00047405,
    "doubleSpentTxID": null
  }],
  "vout": [{
    "value": "0.03000000",
    "n": 0,
    "scriptPubKey": {
      "hex": "a91411999c1eed6800e2616ea61b791b74ca80934da387",
      "asm": "OP_HASH160 11999c1eed6800e2616ea61b791b74ca80934da3 OP_EQUAL",
      "addresses": ["33J5RobPxMuCRGoJ3BTriHYS9gwVim9bj4"],
      "type": "scripthash"
    },
    "spentTxId": null,
    "spentIndex": null,
    "spentHeight": null
  }, {
    "value": "0.03528477",
    "n": 1,
    "scriptPubKey": {
      "hex": "a91469f373b5b032e97d73c610698542364a67be069287",
      "asm": "OP_HASH160 69f373b5b032e97d73c610698542364a67be0692 OP_EQUAL",
      "addresses": ["3BMEX2WXTjgAgLchB8Ge2eDP3zdyqdQoyK"],
      "type": "scripthash"
    },
    "spentTxId": null,
    "spentIndex": null,
    "spentHeight": null
  }],
  "blockhash": "0000000000000000001129dabc069205fef8fe3e93ad29738a3e1957c6f12fb1",
  "blockheight": 543299,
  "confirmations": 5,
  "time": 1538055199,
  "blocktime": 1538055199,
  "valueOut": 0.06528477,
  "size": 1671,
  "valueIn": 0.06628477,
  "fees": 0.001
}

===
Blockchain

{
   "ver":2,
   "inputs":[
      {
         "sequence":4294967295,
         "witness":"",
         "prev_out":{
            "spent":true,
            "tx_index":375858572,
            "type":0,
            "addr":"3BMEX2WXTjgAgLchB8Ge2eDP3zdyqdQoyK",
            "value":4581072,
            "n":1,
            "script":"a91469f373b5b032e97d73c610698542364a67be069287"
         },
         "script":"00483045022100f6ef8c0be5122078b52e5729feef6395a15a1a2856a491641c5e43d2fd9b29a602203942f30781c28401468dc887719722ba1a76c547b4dbb539b18fef09a80c2f5b01483045022100ed7e204eb90c19d35e132ff39aaf1e8963ffe6d2a4d7e04e660fb0a8c360d9470220455d26a3bc6d9a7072ba400f571cd263374dafddeabb6240bc4148e6708bcc3401483045022100ed053f6e8a4229e0e812378a3d98965ea795d51e6045401738ff62dd77cc390e02203293dd0592729b793bfbc20f386c678295c0338c1f738e069a5bc077e2df7c6a014d0b01534104220936c3245597b1513a9a7fe96d96facf1a840ee21432a1b73c2cf42c1810284dd730f21ded9d818b84402863a2b5cd1afe3a3d13719d524482592fb23c88a341042732348967288902847a4fb285caa3b8f939fd5cc8def3363f5c649e08039221a773f5e86cc1263bb8863df6265c9bd12e94eefbb21e52ad845e7639f94175eb410472225d3abc8665cf01f703a270ee65be5421c6a495ce34830061eb0690ec27dfd1194e27b6b0b659418d9f91baec18923078aac18dc19699aae82583561fefe54104a24db5c0e8ed34da1fd3b6f9f797244981b928a8750c8f11f9252041daad7b2d95309074fed791af77dc85abdd8bb2774ed8d53379d28cd49f251b9c08cab7fc54ae"
      },
      {
         "sequence":4294967295,
         "witness":"",
         "prev_out":{
            "spent":true,
            "tx_index":377012595,
            "type":0,
            "addr":"3BMEX2WXTjgAgLchB8Ge2eDP3zdyqdQoyK",
            "value":2000000,
            "n":0,
            "script":"a91469f373b5b032e97d73c610698542364a67be069287"
         },
         "script":"00483045022100c01a284ddaa61900a6b514e453af577ac82b2295634d43e28ffe555bc9a903be02207ea4182f58b8925b3aafa58a2fc36536ce32d87faa5b48cb2890203f63e1cf950147304402206cec1e7e76fed7c20ee1041c9dcc5e84159703d899b86a7eb08dab9e5be1b585022028cb5a92105fcfc3391a16a502bdf5a4db7cd04b8a1f055b159a8373be49a42e01483045022100c3ef3b1bfbf8c4532d6533005638298b00c91edab92f7b42c9a3ab47ebeae3fa02207680b9929cae432a19316918a14f140ade130a893e35a7a9cfe8aab20924eb49014d0b01534104220936c3245597b1513a9a7fe96d96facf1a840ee21432a1b73c2cf42c1810284dd730f21ded9d818b84402863a2b5cd1afe3a3d13719d524482592fb23c88a341042732348967288902847a4fb285caa3b8f939fd5cc8def3363f5c649e08039221a773f5e86cc1263bb8863df6265c9bd12e94eefbb21e52ad845e7639f94175eb410472225d3abc8665cf01f703a270ee65be5421c6a495ce34830061eb0690ec27dfd1194e27b6b0b659418d9f91baec18923078aac18dc19699aae82583561fefe54104a24db5c0e8ed34da1fd3b6f9f797244981b928a8750c8f11f9252041daad7b2d95309074fed791af77dc85abdd8bb2774ed8d53379d28cd49f251b9c08cab7fc54ae"
      },
      {
         "sequence":4294967295,
         "witness":"",
         "prev_out":{
            "spent":true,
            "tx_index":375947982,
            "type":0,
            "addr":"3BMEX2WXTjgAgLchB8Ge2eDP3zdyqdQoyK",
            "value":47405,
            "n":0,
            "script":"a91469f373b5b032e97d73c610698542364a67be069287"
         },
         "script":"004730440220283423cdeda60f13a77026fc7dc896c0fffc47efb8d241bba706d74d282e39f902206396800e0e19d4c36da86fb737f3ad7f49647df16ea38f7f0c019eb82a9771a701483045022100ec929d963a6176ee660c522a872bf520c4d574066f0f52c30583290711177fb802200ccb05f07ad07702ecba7dad32016abf4842fe5bf4616ac42d97233e033a83aa01483045022100e8ea741d11610250270268f8facd45fb10f5e28a737406717337fe940bb8089a0220643ee860d4045fbb3f509963ac30ae38b736585a44c9c617b3854072f66cd3e6014d0b01534104220936c3245597b1513a9a7fe96d96facf1a840ee21432a1b73c2cf42c1810284dd730f21ded9d818b84402863a2b5cd1afe3a3d13719d524482592fb23c88a341042732348967288902847a4fb285caa3b8f939fd5cc8def3363f5c649e08039221a773f5e86cc1263bb8863df6265c9bd12e94eefbb21e52ad845e7639f94175eb410472225d3abc8665cf01f703a270ee65be5421c6a495ce34830061eb0690ec27dfd1194e27b6b0b659418d9f91baec18923078aac18dc19699aae82583561fefe54104a24db5c0e8ed34da1fd3b6f9f797244981b928a8750c8f11f9252041daad7b2d95309074fed791af77dc85abdd8bb2774ed8d53379d28cd49f251b9c08cab7fc54ae"
      }
   ],
   "weight":6684,
   "block_height":543299,
   "relayed_by":"127.0.0.1",
   "out":[
      {
         "spent":false,
         "tx_index":377045916,
         "type":0,
         "addr":"33J5RobPxMuCRGoJ3BTriHYS9gwVim9bj4",
         "value":3000000,
         "n":0,
         "script":"a91411999c1eed6800e2616ea61b791b74ca80934da387"
      },
      {
         "spent":false,
         "tx_index":377045916,
         "type":0,
         "addr":"3BMEX2WXTjgAgLchB8Ge2eDP3zdyqdQoyK",
         "value":3528477,
         "n":1,
         "script":"a91469f373b5b032e97d73c610698542364a67be069287"
      }
   ],
   "lock_time":0,
   "size":1671,
   "double_spend":false,
   "time":1538053896,
   "tx_index":377045916,
   "vin_sz":3,
   "hash":"86fdb0b160a9e404620dec3ced5804e93b0a777f15656b35aaa69a0e2ccd3a3b",
   "vout_sz":2
}
@placer14 placer14 added the bug Something isn't working label Sep 27, 2018
@ghost
Copy link

ghost commented Jul 7, 2019

Upon further review, it looks like the blockchain matches up. Is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant