Code Monkey home page Code Monkey logo

colored-coins-block-explorer's People

Contributors

bejavu avatar mdemri avatar tal-beja avatar thehobbit85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colored-coins-block-explorer's Issues

"No such file or directory" error after npm install

Greetings,

Following the successful
sudo npm i -g cc-block-explorer

installation, when I try to start the block explorer, it reports an error:

$ cc-block-explorer
: No such file or directory

The link is correctly created and the files exist:

/usr/bin/cc-explorer -> /usr/lib/node_modules/cc-block-explorer/bin/cc-block-explorer
/usr/bin/cc-block-explorer -> /usr/lib/node_modules/cc-block-explorer/bin/cc-block-explorer

Kind Regards,

zcsoka

API Quick Guide

Hello,
Is it possible to have a quick introduction on how to use the API.

How do you use the explorer after you started the program?

Thanks,
Federico

transaction has un parsed inputs for over then 1000 tries

When indexing, from blocks approximately 400000 onwards, I start to see lots of messages like the following.

5/6/2017-8:25:26 - info: (19863) - Fixing blocks 409803-409852 (1 txs).
5/6/2017-8:25:26 - warn: (19863) - transaction 27db3c00bdaaa89d5b3fe3aa8b5f4c4bd98c98287c86e75f9412f23a6e4286af has un parsed inputs ( [ 'faf3bde14c1d24aebb8f2072f814a82d5ad8209cfc56c35811b3e6c0c02183b0:2' ] ) for over then 1000 tries.

Is this expected behaviour?

E11000 duplicate key error in various indices

Hello, what is the possible cause of these errors?
Maybe it's some misconfiguration leading to race condition?

{"message":"Internal server error","status":500,"original":{"code":11000,"index":0,"errmsg":"E11000 duplicate key error collection: colu_explorer_testnet.assetsutxos index: assetId_1_utxo_1 dup key: { : "La7gvYzMK54sqz8hwpAWavXAobxbc6WvHv75w2", : "a5343180c98e49bab0f295403f19731a5fa220786c1a5e56807121e47eca69c5:0" }","op":{"q":{"assetId":"La7gvYzMK54sqz8hwpAWavXAobxbc6WvHv75w2","utxo":"a5343180c98e49bab0f295403f19731a5fa220786c1a5e56807121e47eca69c5:0"},"u":{"assetId":"La7gvYzMK54sqz8hwpAWavXAobxbc6WvHv75w2","utxo":"a5343180c98e49bab0f295403f19731a5fa220786c1a5e56807121e47eca69c5:0"},"multi":false,"upsert":true}},"stack":"MongoError: E11000 duplicate key error collection: colu_explorer_testnet.assetsutxos index: assetId_1_utxo_1 dup key: { : "La7gvYzMK54sqz8hwpAWavXAobxbc6WvHv75w2", : "a5343180c98e49bab0f295403f19731a5fa220786c1a5e56807121e47eca69c5:0" }
    at Function.MongoError.create (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)
    at toError (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/lib/utils.js:114:22)
    at /Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/lib/bulk/unordered.js:472:64
    at handleCallback (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/lib/utils.js:96:12)
    at resultHandler (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/lib/bulk/unordered.js:420:5)
    at commandCallback (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:1194:9)
    at Callbacks.emit (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:119:3)
    at null.messageHandler (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:358:23)
    at Socket.<anonymous> (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:292:22)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:153:18)
    at Socket.Readable.push (_stream_readable.js:111:10)
    at TCP.onread (net.js:531:20)","requestId":"blockexplorer-7a76321f-a094-4c26-b4d1-8738b8fe78c6","correlationId":"/api/transmit-blockexplorer-7a76321f-a094-4c26-b4d1-8738b8fe78c6"}
{"message":"Internal server error","status":500,"original":{"code":11000,"index":0,"errmsg":"E11000 duplicate key error collection: colu_explorer_testnet.rawtransactions index: txid_1 dup key: { : "8fb905f19b1a232798a86dcaf7241985eb202bb651751ab95bb0a32147549839" }","op":{"q":{"txid":"8fb905f19b1a232798a86dcaf7241985eb202bb651751ab95bb0a32147549839"},"u":{"hex":"0100000001e0319f7685fc4898098fccaeb107d38bbdc3a3b7ee5acf830c4871c395d02501020000006b483045022100b2431b4953fe4cbda0a2b9969696ec12aad5205af8bb7825bf15a202d81b82e0022023838765b8d9916aeac5932ad61d50eafb95571bb837084d93c4a5a6cdeee2e4012103ec05868e3a1c268bf9d09171de009056ebaa098392b432f5aabd3b5221e06e2bffffffff0358020000000000001976a914e068deb37b3cd00736b30e3fb385d0843bcf342d88ac00000000000000000c6a0a4343020527b00027b010a054eb0b000000001976a914c0f5b0cf3ad99ce6ffa447303abce6990a918aa788ac00000000","txid":"8fb905f19b1a232798a86dcaf7241985eb202bb651751ab95bb0a32147549839","hash":"8fb905f19b1a232798a86dcaf7241985eb202bb651751ab95bb0a32147549839","size":247,"vsize":247,"version":1,"locktime":0,"vin":[{"txid":"0125d095c371480c83cf5aeeb7a3c3bd8bd307b1aecc8f099848fc85769f31e0","vout":2,"scriptSig":{"asm":"3045022100b2431b4953fe4cbda0a2b9969696ec12aad5205af8bb7825bf15a202d81b82e0022023838765b8d9916aeac5932ad61d50eafb95571bb837084d93c4a5a6cdeee2e4[ALL] 03ec05868e3a1c268bf9d09171de009056ebaa098392b432f5aabd3b5221e06e2b","hex":"483045022100b2431b4953fe4cbda0a2b9969696ec12aad5205af8bb7825bf15a202d81b82e0022023838765b8d9916aeac5932ad61d50eafb95571bb837084d93c4a5a6cdeee2e4012103ec05868e3a1c268bf9d09171de009056ebaa098392b432f5aabd3b5221e06e2b"},"sequence":4294967295,"previousOutput":{"asm":"OP_DUP OP_HASH160 c0f5b0cf3ad99ce6ffa447303abce6990a918aa7 OP_EQUALVERIFY OP_CHECKSIG","hex":"76a914c0f5b0cf3ad99ce6ffa447303abce6990a918aa788ac","reqSigs":1,"type":"pubkeyhash","addresses":["my7EMmj3XnFPT9ymM7JGpxg25dbjgHpBv3"]},"assets":[],"value":199977600,"fixed":true}],"vout":[{"value":600,"n":0,"scriptPubKey":{"asm":"OP_DUP OP_HASH160 e068deb37b3cd00736b30e3fb385d0843bcf342d OP_EQUALVERIFY OP_CHECKSIG","hex":"76a914e068deb37b3cd00736b30e3fb385d0843bcf342d88ac","reqSigs":1,"type":"pubkeyhash","addresses":["n1yXHWnBDw3hvbABPK2CkdD2rZ3zuDGcVL"]},"assets":[{"assetId":"La79agnHUWa5Cms5bX6eF1gSsTaNSvJTXyeQ4r","amount":123,"issueTxid":"8fb905f19b1a232798a86dcaf7241985eb202bb651751ab95bb0a32147549839","divisibility":0,"lockStatus":true,"aggregationPolicy":"aggregatable"}]},{"value":0,"n":1,"scriptPubKey":{"asm":"OP_RETURN 4343020527b00027b010","hex":"6a0a4343020527b00027b010","type":"nulldata"}},{"value":199972000,"n":2,"scriptPubKey":{"asm":"OP_DUP OP_HASH160 c0f5b0cf3ad99ce6ffa447303abce6990a918aa7 OP_EQUALVERIFY OP_CHECKSIG","hex":"76a914c0f5b0cf3ad99ce6ffa447303abce6990a918aa788ac","reqSigs":1,"type":"pubkeyhash","addresses":["my7EMmj3XnFPT9ymM7JGpxg25dbjgHpBv3"]},"assets":[]}],"blocktime":1491215575164,"blockheight":-1,"colored":true,"ccdata":[{"payments":[{"range":false,"output":0,"input":0,"percent":false,"amount":123}],"protocol":17219,"version":2,"type":"issuance","lockStatus":true,"aggregationPolicy":"aggregatable","divisibility":0,"amount":123,"multiSig":[]}],"iosparsed":false,"ccparsed":false,"totalsent":199972600,"fee":5000,"overflow":false},"multi":false,"upsert":true}},"stack":"MongoError: E11000 duplicate key error collection: colu_explorer_testnet.rawtransactions index: txid_1 dup key: { : "8fb905f19b1a232798a86dcaf7241985eb202bb651751ab95bb0a32147549839" }
    at Function.MongoError.create (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)
    at toError (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/lib/utils.js:114:22)
    at resultHandler (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/lib/bulk/ordered.js:426:39)
    at commandCallback (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:1194:9)
    at Callbacks.emit (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:119:3)
    at null.messageHandler (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:358:23)
    at Socket.<anonymous> (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:292:22)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:153:18)
    at Socket.Readable.push (_stream_readable.js:111:10)
    at TCP.onread (net.js:531:20)","requestId":"blockexplorer-1ba6af0f-b7e9-495e-93fc-5c80b4605643","correlationId":"/api/transmit-blockexplorer-1ba6af0f-b7e9-495e-93fc-5c80b4605643"}
{"message":"Internal server error","status":500,"original":{"code":11000,"index":0,"errmsg":"E11000 duplicate key error collection: colu_explorer_testnet.utxos index: txid_1_index_1 dup key: { : "0a565caf061e2a6353b8cd67b4f24c6fcd5a6d93b88767d1cfdde559d9887e15", : 0 }","op":{"q":{"txid":"0a565caf061e2a6353b8cd67b4f24c6fcd5a6d93b88767d1cfdde559d9887e15","index":0},"u":{"$set":{"blocktime":1491220099832,"blockheight":-1},"$setOnInsert":{"txid":"0a565caf061e2a6353b8cd67b4f24c6fcd5a6d93b88767d1cfdde559d9887e15","index":0,"value":600,"used":false,"scriptPubKey":{"asm":"OP_DUP OP_HASH160 04411f432aaf3b8e7813befafca1fbad187293ed OP_EQUALVERIFY OP_CHECKSIG","hex":"76a91404411f432aaf3b8e7813befafca1fbad187293ed88ac","reqSigs":1,"type":"pubkeyhash","addresses":["mfuT1aumqec6K28ro2YtptK4ifYJYkpzf6"]}}},"multi":false,"upsert":true}},"stack":"MongoError: E11000 duplicate key error collection: colu_explorer_testnet.utxos index: txid_1_index_1 dup key: { : "0a565caf061e2a6353b8cd67b4f24c6fcd5a6d93b88767d1cfdde559d9887e15", : 0 }
    at Function.MongoError.create (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)
    at toError (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/lib/utils.js:114:22)
    at resultHandler (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/lib/bulk/ordered.js:426:39)
    at commandCallback (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:1194:9)
    at Callbacks.emit (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:119:3)
    at null.messageHandler (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:358:23)
    at Socket.<anonymous> (/Colored-Coins-Block-Explorer/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:292:22)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:153:18)
    at Socket.Readable.push (_stream_readable.js:111:10)
    at TCP.onread (net.js:531:20)","requestId":"blockexplorer-05add974-5e75-45d2-92f6-c7eb1d1a8ff8","correlationId":"/api/transmit-blockexplorer-05add974-5e75-45d2-92f6-c7eb1d1a8ff8"}

Colored-Coins-Block-Explorer: master-3e26525
Bitcoin Core Daemon: 0.14.0.0-g43a987c1c
MongoDB: 3.4.3-f07437fb5a
OS: Ubuntu 16.04

Page not found !

Hello,
I installed cc-explorer and it seems that it works, but when entering the localhost: 8080 a page appears indicating that the page has not been found.

Everything seems fine on the console.

Thanks you.

21/2/2018-16:51:11 - info: (5621) - ---------------------------------------------------------------------------------- 21/2/2018-16:51:11 - info: (5621) - ------------------------------- Created Routes ------------------------------- 21/2/2018-16:51:11 - info: (5621) - ---------------------------------------------------------------------------------- 21/2/2018-16:51:11 - info: (5621) - Your cookies are now encrypted - :) 21/2/2018-16:51:11 - info: (5621) - Can't find SSL properties so no SSL for you 21/2/2018-16:51:11 - info: (5621) - Can't find faye properties so no pub/sub for you 21/2/2018-16:51:11 - info: (5621) - cluster_size 2 21/2/2018-16:51:11 - info: (5621) - Forking worker number 1 on process number 5627 21/2/2018-16:51:11 - info: (5621) - Forking worker number 2 on process number 5632 21/2/2018-16:51:11 - info: (5621) - Forking worker number 3 on process number 5634 21/2/2018-16:51:11 - info: (5621) - Forking worker number 4 on process number 5639 21/2/2018-16:51:12 - info: (5621) - Yay, the worker responded after it was forked 21/2/2018-16:51:12 - info: (5621) - Yay, the worker responded after it was forked 21/2/2018-16:51:12 - info: (5621) - Yay, the worker responded after it was forked 21/2/2018-16:51:12 - info: (5621) - Yay, the worker responded after it was forked 21/2/2018-16:51:16 - info: (5627) - ---------------------------------------------------------------------------------- 21/2/2018-16:51:16 - info: (5627) - ------------------------------- Created Routes ------------------------------- 21/2/2018-16:51:16 - info: (5627) - ---------------------------------------------------------------------------------- 21/2/2018-16:51:16 - info: (5627) - Your cookies are now encrypted - :) 21/2/2018-16:51:16 - info: (5627) - Can't find SSL properties so no SSL for you 21/2/2018-16:51:16 - info: (5627) - Can't find faye properties so no pub/sub for you 21/2/2018-16:51:16 - info: (5632) - ---------------------------------------------------------------------------------- 21/2/2018-16:51:16 - info: (5632) - ------------------------------- Created Routes ------------------------------- 21/2/2018-16:51:16 - info: (5632) - ---------------------------------------------------------------------------------- 21/2/2018-16:51:16 - info: (5634) - ---------------------------------------------------------------------------------- 21/2/2018-16:51:16 - info: (5632) - Your cookies are now encrypted - :) 21/2/2018-16:51:16 - info: (5634) - ------------------------------- Created Routes ------------------------------- 21/2/2018-16:51:16 - info: (5634) - ---------------------------------------------------------------------------------- 21/2/2018-16:51:16 - info: (5634) - Your cookies are now encrypted - :) 21/2/2018-16:51:16 - info: (5632) - Can't find SSL properties so no SSL for you 21/2/2018-16:51:16 - info: (5632) - Can't find faye properties so no pub/sub for you 21/2/2018-16:51:16 - info: (5634) - Can't find SSL properties so no SSL for you 21/2/2018-16:51:16 - info: (5634) - Can't find faye properties so no pub/sub for you 21/2/2018-16:51:16 - info: (5639) - ---------------------------------------------------------------------------------- 21/2/2018-16:51:16 - info: (5639) - ------------------------------- Created Routes ------------------------------- 21/2/2018-16:51:16 - info: (5639) - ---------------------------------------------------------------------------------- 21/2/2018-16:51:16 - info: (5639) - Your cookies are now encrypted - :) 21/2/2018-16:51:16 - info: (5639) - Can't find SSL properties so no SSL for you 21/2/2018-16:51:16 - info: (5639) - Can't find faye properties so no pub/sub for you 21/2/2018-16:51:18 - info: (5627) - Done loading db schemas: 21/2/2018-16:51:18 - info: (5632) - Done loading db schemas: 21/2/2018-16:51:18 - info: (5634) - Done loading db schemas: 21/2/2018-16:51:18 - info: (5627) - scanner.Blocks true 21/2/2018-16:51:18 - info: (5627) - Finished Loading the Server, Last function passed - SCANNER 21/2/2018-16:51:18 - info: (5632) - Finished Loading the Server, Last function passed - FIXER 21/2/2018-16:51:18 - info: (5639) - Done loading db schemas: 21/2/2018-16:51:18 - info: (5634) - Finished Loading the Server, Last function passed - CC_PARSER 21/2/2018-16:51:18 - info: (5639) - server started on port 8080 21/2/2018-16:51:18 - info: (5621) - Worker 4 is listening on null:8080 21/2/2018-16:51:18 - info: (5639) - Finished Loading the Server, Last function passed - API
Thanks you.

Lykke transactions do not appear in the explorer

Lykke claim to use the colored coins protocol for settlement, yet their transactions do not get parsed by the colored coins block explorer. For example transaction 5c38cf9aea9ddfcb1c99fc9eab121ae5f97fbdb051de4ea0e272d8150da89001 appears as a colored transfer for lke USD in the Lykke explorer:

https://blockchainexplorer.lykke.com/transaction/5c38cf9aea9ddfcb1c99fc9eab121ae5f97fbdb051de4ea0e272d8150da89001

but when we examine the same transaction in the live colored coins explorer it appears as an uncolored transaction:

http://coloredcoins.org/explorer/tx/5c38cf9aea9ddfcb1c99fc9eab121ae5f97fbdb051de4ea0e272d8150da89001

Is Lykke using a different version of the protocol, or is this a bug in the colored coins explorer?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.