Post
Topic
Board Project Development
Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff
by
zeldalink
on 04/08/2014, 21:38:24 UTC
can someone help me i am trying to set up an block explorer for VirtaCoin.
It is just to get started into this and i saw they didn't have one so i thought give it a go.
But the problem is i keep only seeing the genesis block and nothing more.
Can someone here maybe tell me if my configuration is wrong.
or other things i have to pay attention to
i pulled the head revision from github. also i tried doing it with 0.7.2. but that had no success at all.

abe.conf


Code:
dbtype MySQLdb
    connect-args {"user":"user","db":"dbname","passwd":"pass"}
    upgrade
    port 2900
        host 127.0.0.1
binary-type binary
datadir += [{
        "dirname": "/root/.virtacoin",
        "chain": "VirtaCoin",
        "address_version":"\u0000",
         "policy":"LtcScryptChain",
        "conf": "virtacoin.conf"
      }]

Abe/DataStore.py

 
Code:
  {"chain":"VirtaCoin","policy":"LtcScryptChain",
     "code3":"VTA", "address_version":"\x00", "magic":"\xbe\xd0\xc8\xd1"},


if someone can tell me if something is wrong please.

I had to do a lot to get it working properly, the cheap and easy fix to get it working once you get at as far as you have is this in Datastore.py

Code:
-                    if chain.block_header_hash(chain.serialize_block_header(
 -                            block)) != hash:
 -                        raise InvalidBlock('block hash mismatch')
 +                   # if chain.block_header_hash(chain.serialize_block_header(
 +                   #         block)) != hash:
 +                   #     raise InvalidBlock('block hash mismatch')

Thanks i will try it.
it didn't work without rebuilding the database so i am trying that now

okay strangely now it is at block_tx 45030 13903 and the coin only has 44974 blocks. How is this possible?
(and yes i triple checked) and it is still importing more
orphans are imported too but "removed" (not really removed, they still exist AFAIK) so the number of blocks is higher. block_tx .
same of course applies to transactions which didnt get accepted due to orphan.

okay thank you now wait and hope it works Cheesy