Giter Site home page Giter Site logo

multichain-explorer-2's Introduction

MultiChain

MultiChain is an open source platform for private blockchains, which offers a rich set of features including extensive configurability, rapid deployment, permissions management, native assets and data streams. Although it is designed to enable private blockchains, MultiChain provides maximal compatibility with the bitcoin ecosystem, including the peer-to-peer protocol, transaction/block formats and Bitcoin Core APIs/runtime parameters.

Copyright (c) 2014-2019 Coin Sciences Ltd
License: GNU General Public License version 3, see COPYING

Portions copyright (c) 2009-2016 The Bitcoin Core developers
Portions copyright many others - see individual files

System requirements

These compilation instructions have been tested on Ubuntu 16.04 x64 (xenial) and Ubuntu 18.04 x64 (bionic) only.

C++ compilers are memory-hungry, so it is recommended to have at least 1 GB of memory available when compiling MultiChain. With less memory, compilation may take much longer due to swapfile thrashing.

Linux Build Notes (on Ubuntu 16.04 x64 or later)

Install dependencies

sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-get install -y build-essential libtool autotools-dev automake pkg-config git
sudo apt-get install libboost-all-dev
sudo apt-get install libevent-dev

Clone MultiChain

git clone https://github.com/MultiChain/multichain.git

Prepare to download or build V8

cd multichain
MULTICHAIN_HOME=$(pwd)
mkdir v8build
cd v8build

You can use pre-built headers and binaries of Google's V8 JavaScript engine by downloading and expanding linux-v8.tar.gz in the current directory. If, on the other hand, you prefer to build the V8 component yourself, please follow the instructions in V8.md.

Compile MultiChain for Ubuntu (64-bit)

cd $MULTICHAIN_HOME
./autogen.sh
./configure
make

Notes

  • This will build multichaind, multichain-cli and multichain-util in the src directory.

  • The release is built with GCC after which strip multichaind strings the debug symbols, which reduces the executable size by about 90%.

Windows Build Notes

Please see the instructions in win.md to build MultiChain for use with Windows.

Mac Build Notes (on MacOS Sierra)

Please see the instructions in mac.md to build MultiChain for use with MacOS.

multichain-explorer-2's People

Contributors

gidgreen avatar mike31 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

multichain-explorer-2's Issues

Multichain-Explorer-2 Status No Connection

I have configured a blockchain by the name amazonchain on two AWS EC2 instances.
I can use Multichain-Webdemo as shown in the attached pdf file. Meaning my chain is up and running.
When I use Multichain-Explorer, I get Status No Connection and Multichain is not running messages on the page. See the attached pdf.
I have all the rpcuser, password, port, public ip address all set right. That's partly why Webdemo is working.
Can someone please throw some light why Explorer is giving me status no connection message?
Thank you
Explorer Not Connected.pdf

UnboundLocalError for txid

Hi,

We are seeing multiple instances of the following message in our logs:

File "/root/multichain-explorer-2/data.py", line 1778, in handle_keyitems

return self.do_streamitems(chain,params,nparams,params[0],None,None,parse.unquote_plus(str(params[1])))

File "/root/multichain-explorer-2/data.py", line 1935, in do_streamitems

tx_html='<a href="' + chain.config['path-name'] + '/transaction/' + txid + '">' + txid[0:10]+ '...</a>'

UnboundLocalError: local variable 'txid' referenced before assignment

which appears to be from here but the transaction id is not null, can you please advise?

no connection

Dears,

I have downloaded and started the explorer 2, I had python 3.9.5 , it gave me hard time with errors, so I downgraded to python 3.7.9 and the explorer is working but with this error when I try to connect to chain1 and chain2


Exception happened during processing of request from ('192.168.8.102', 10142)
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\socketserver.py", line 316, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Program Files\Python37\lib\socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
File "C:\Program Files\Python37\lib\socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Program Files\Python37\lib\socketserver.py", line 720, in init
self.handle()
File "C:\Program Files\Python37\lib\http\server.py", line 426, in handle
self.handle_one_request()
File "C:\Program Files\Python37\lib\http\server.py", line 414, in handle_one_request
method()
File "C:\Users\Amer\Downloads\multichain-explorer-2-master\multichain-explorer-2-master\multichain-explorer-2\server.py", line 89, in do_GET
content=self.handler(self.chain,self.params,self.nparams)
File "C:\Users\Amer\Downloads\multichain-explorer-2-master\multichain-explorer-2-master\multichain-explorer-2\data.py", line 584, in handle_chains
native_flag=self.chain_native_flag(chain,response)
File "C:\Users\Amer\Downloads\multichain-explorer-2-master\multichain-explorer-2-master\multichain-explorer-2\data.py", line 539, in chain_native_flag
return chain.config['native-flag']
KeyError: 'native-flag'

the browser hangs for a while and gives no connection in the state of connection, and I tried to revise everything from the config.ini to the node it self, I have chain1 and chain2 on the same server, I run only one instance at a time, this is for testing purposes as I'm new to multichain

Fails with Python 3.8.x

When running under Python 3.8.x the following error occurs:
ImportError: cannot import name 'escape' from 'cgi'

Solution: Replace
from cgi import escape
with
from html import escape
in data.py and server.py

KeyError: 'count'

First, let me say that multichain is awesome. I just started using explorer-2 today and noticed an issue.

When I click on the Asset number in the summary (http://147.182.214.238:4444/base_chain/assets), I get this error on the console:

base_chain: ----------------------------------------
Exception occurred during processing of request from ('68.206.160.142', 1600)
Traceback (most recent call last):
File "/usr/lib/python3.10/socketserver.py", line 316, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.10/socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.10/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.10/socketserver.py", line 747, in init
self.handle()
File "/usr/lib/python3.10/http/server.py", line 432, in handle
self.handle_one_request()
File "/usr/lib/python3.10/http/server.py", line 420, in handle_one_request
method()
File "/root/.multichain/base_chain/multichain-explorer-2/server.py", line 94, in do_GET
content=self.handler(self.chain,self.params,self.nparams)
File "/root/.multichain/base_chain/multichain-explorer-2/data.py", line 1168, in handle_assets
response=chain.request("listassets",['*', False, nparams['count'], nparams['start']])
KeyError: 'count'

The webpage stays stuck on loading.

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.