Post
Topic
Board Project Development
Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff
by
esotericizm
on 15/04/2014, 22:24:08 UTC
Hey I'm trying to set up Abe with an X11 coin.

In Chain.py I've made the following changes

Code:
class X11Chain(Chain):
    def block_header_hash(chain, header):
        import xcoin_hash
        return xcoin_hash.getPoWHash(header)

class Logicoin(X11Chain):
    def __init__(chain, **kwargs):
        chain.name = 'Logicoin'
        chain.code3 = 'LGC'
        chain.address_version = '\x30'
        chain.script_addr_vers = '\x05'
        chain.magic = '\xf6\xc6\xb6\xd6'
        Chain.__init__(chain, **kwargs)

    datadir_conf_file_name = 'logicoin.conf'
    datadir_rpcport = 9652
    datadir_p2pport = 9653

and for abe.conf

Code:
default-loader = blkfile
dbtype MySQLdb
connect-args = {"user":"abe","db":"abe", "passwd":"xxx"}
upgrade
port 2750
host 184.82.172.92
datadir += [{
    "dirname": "/home/crypto/.logicoin",
    "loader": "blkfile",
    "chain": "Hirocoin",
    "policy": "X11"
}]

This will allow my to use the explorer but the currency is labeled "Hirocoin", while all transactions and blocks appear to be from Logicoin. If I change "loader": "Logicoin" then it shows 0 blocks and doesn't work at all. Not sure what I've missed?

Here's the explorer in its current form. http://184.82.172.92:2750/