Post
Topic
Board Project Development
Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff
by
esotericizm
on 16/04/2014, 03:04:41 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/

change the chain to Logicoin in the abe.conf file like this  "chain": "Logicoin", then delete the database and recreate it.

Tried that many times. Leads to the block explorer not displaying any blocks and I read earlier on that thats the behaviour when it doesn't recognize the chain.

I've made the change and recreated the database so that you can see what I'm talking about. http://184.82.172.92:2750/