Pages:
Author

Topic: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff - page 22. (Read 220986 times)

hero member
Activity: 481
Merit: 529
I've failed to receive topic reply email notifications since mid-August.  I think Yahoo! Mail classified them as spam, but not anymore.  If you'd like a reply to a post in the last six months, please repost it or PM me.  Sorry for the trouble.  (It's been years since I evaluated free spam filters... perhaps I should again?)

I am working on an CASHCoin Abe, seems didn't work. Is that something wrong?

http://115.29.51.156:7000/

When Abe loads a chain into the database but shows only the genesis block, the chain probably computes hashPrev using an algorithm other than double-SHA256.  NovaCoin does this, and I recently added support for it (thanks to Drak's sponsorship).  However, there is not yet a generic way to specify this property.  It will take some code changes.
full member
Activity: 468
Merit: 103
I am working on an CASHCoin Abe, seems didn't work. Is that something wrong?

http://115.29.51.156:7000/


My abe-my.conf:

dbtype MySQLdb
connect-args {"user":"root","db":"abe004","passwd":"xxxx"}

port 7000
host 115.29.51.156

datadir = [{
        "dirname": "/root/.Cash/",
        "chain": "CashCoin",
    "code3": "CAS",
    "address_version":"\u0022",
         "magic" : "\u00fc\u00d9\u00b7\u00dd"
   }]
default-loader=blkfile
binary-type=binary
newbie
Activity: 10
Merit: 0

I have set up Abe and it's now indexing all the transactions into a PostgreSQL database. Would it be easy to query the database for e.g. the top 10 largest unspent outputs?

I know SQL but I don't know the details of the Abe schema yet, that's where I'm looking for some guidance.
donator
Activity: 2772
Merit: 1019
Hello everyone,

after a long while I'm back using abe. Want to make a blockexplorer for Auroracoin.

I configured like this initially (copied from litecoin):

Code:
datadir += [{
 "dirname" : "/home/aur/.AuroraCoin",
 "chain" : "AuroraCoin",
 "code3" : "AUR",
 "address_version" : "u0030",
 "magic" : "u00fcu00c1u00b7u00dc"
}]

Problem is addresses have wrong format, like this

Code:
6KZU2wRn17sLrxNryFK6CG8KUvBdpArbD8QxwHDW

instead of like this:

Code:
AL8vRddTujqaFJQ3feZpg1jYHz6Jv2Rkwc

I'm pretty sure the magic is correct. From auroracoin sources, main.cpp:

Code:
        pchMessageStart[0] = 0xfc;
        pchMessageStart[1] = 0xc1;
        pchMessageStart[2] = 0xb7;
        pchMessageStart[3] = 0xdc;

So the "magic" is correct, right?

Don't know what to set address_version to, though. People have been pointing me to base58.h:

Code:
        
PUBKEY_ADDRESS = 23,
SCRIPT_ADDRESS = 5,
PUBKEY_ADDRESS_TEST = 111,
SCRIPT_ADDRESS_TEST = 196,

What value for address_version and magic do I need to use in order for the addresses to start with the correct prefix?

Am I missing something else in the config?


scratch the above, I got it figured out:

Code:
[/datadir += [{
 "dirname" : "/home/aur/.AuroraCoin",
 "chain" : "AuroraCoin",
 "code3" : "AUR",
 "address_version" : "\u0017",
 "magic" : "\u00fb\u00c0\u00b6\u00db"
}

(forgot the slashes before the 'u's in JSON hex encoding (web-pages seem to eat these), needed to subtract one from each magic byte and got the address_versoin wrong (it's 23, not 30 for AUR)
newbie
Activity: 49
Merit: 0
Stupid question, but how do you keep it up to date? Surely there's a better way then having to continuously run it with --no-serve.
newbie
Activity: 16
Merit: 0
git clone .git
cd /src
grep pchMessageStart *


newbie
Activity: 39
Merit: 0
I'm trying to set this up for an alt coin and I'm having trouble with the magic.

Can anyone give me some info on how to find this value?
full member
Activity: 131
Merit: 100
Hello community,

I need your help once.

I try all the time to set up the Abe with the CacheCoin. Only I get it back, unfortunately not.

This is my abe.conf

Code:
dbtype MySQLdb
connect-args {"user":"abe","db":"abe","passwd":"xxxxx"}
port 333
host 84.200.24.190

datadir += [{
  "dirname" : "/root/.cachecoin",
  "chain": "Cachecoin",
  "code3": "CAC",
  "address_version": "u001c",
  "magic": "u00d9u00e6u00e7u00e5"
}]

If I want to make the run now

Code:
python -m Abe.abe --config abe-smc.conf --commit-bytes 100000 --no-serve

If the following error...

Code:
failed to load /root/.cachecoin/bitcoin.conf: [Errno 2] No such file or directory: u'/root/.cachecoin/bitcoin.conf'
catch_up_rpc: abort
Opened /root/.cachecoin/blk0001.dat
Exception at 72056512947683466
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 1, 'chain_id': Decimal('2'), 'loader': None, 'dirname': u'/root/.cachecoin', 'id': 4L}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2623, in catch_up
    store.catch_up_dir(dircfg)
  File "Abe/DataStore.py", line 2881, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "Abe/DataStore.py", line 3008, in import_blkdat
    b = store.parse_block(ds, chain_id, magic, length)
  File "Abe/DataStore.py", line 3039, in parse_block
    d['transactions'].append(deserialize.parse_Transaction(ds))
  File "Abe/deserialize.py", line 88, in parse_Transaction
    d['txIn'].append(parse_TxIn(vds))
  File "Abe/deserialize.py", line 46, in parse_TxIn
    d['sequence'] = vds.read_uint32()
  File "Abe/BCDataStream.py", line 71, in read_uint32
    def read_uint32 (self): return self._read_num('  File "Abe/BCDataStream.py", line 110, in _read_num
    (i,) = struct.unpack_from(format, self.input, self.read_cursor)
error: unpack_from requires a buffer of at least 4 bytes

Can someone help me here?

All Scypt Coins I get to run, but that's here so scrypt_jane?

Thank you in advance for your help!
member
Activity: 79
Merit: 10
ddl_implicit_commit=true
create_table_epilogue=''
Abe/DataStore.py:526: Warning: Converting column 'a' from VARCHAR to TEXT
  store.cursor.execute(stmt)
Abe/DataStore.py:526: Warning: Converting column 'b' from VARCHAR to TEXT
  store.cursor.execute(stmt)
max_varchar=4294967295
clob_type=LONGTEXT
Abe/DataStore.py:526: Warning: Converting column 'test_varbit' from VARCHAR to TEXT
  store.cursor.execute(stmt)
binary_type=hex
int_type=int
Created silly table abe_dual
sequence_type=mysql
limit_style=native
Abe/DataStore.py:526: Warning: Converting column 'txout_scriptPubKey' from VARCHAR to TEXT
  store.cursor.execute(stmt)
Abe/DataStore.py:526: Warning: Converting column 'txin_scriptSig' from VARCHAR to TEXT
  store.cursor.execute(stmt)
Opened /home/mapleshadow/.chncoin/blk0001.dat
block_tx 1 1
block_tx 2 2
block_tx 3 3
sr. member
Activity: 252
Merit: 250
0x0a.nl operator
Please forgive my ignorance and other negative qualities: what is the current status of the ABE license, both officially and pragmatically?
It seems that there has been no discussion about it for at least a year. In addition, my brain sadly goes cross-eyed when trying to interpret legalese, therefore I cannot trust my interpretation of AGPL. I think I understand that all will be fine if I make sure I publish all the used and modified code, but I do not understand how far that goes.

Tobey stated once: "Now, it gets a little hairy if you offer a proprietary service based on Abe's tables, and it needs a running Abe to keep those tables up to date." - but what constitutes 'a proprietary service' in this case?

There are a couple altcoins for which I'm running p2pool nodes that I would also like to set up a block explorer for; the nodes collect 0.9% fee, and would benefit from a working block explorer (as it now links to non-existent pages for user addresses). The block explorer would link to the nodes and to the overarching p2pool hub, logo and all. It feels proprietarish, and I feel that I shouldn't go for it as long as I don't properly understand the license. Any insight would be much appreciated!

Again apologies for the idiocy - had I found a LICENSE.interpretationfordummies.txt, I would not have bothered thee Smiley
newbie
Activity: 57
Merit: 0

Does Abe work with coins that use transaction messaging?

I'm trying to set this up with SolarCoin and hitting the same "overflowerror: Python int too large to convert to C long" that others seemed to be getting with coins using transaction messaging. Anyone get past that problem yet?

You are probably looking for this:

http://nopaste.info/108a9a1e99_nl.html

Wow thank you! That is exactly what I needed! No more Overflow error  Smiley
newbie
Activity: 16
Merit: 0

Does Abe work with coins that use transaction messaging?

I'm trying to set this up with SolarCoin and hitting the same "overflowerror: Python int too large to convert to C long" that others seemed to be getting with coins using transaction messaging. Anyone get past that problem yet?

You are probably looking for this:

http://nopaste.info/108a9a1e99_nl.html
legendary
Activity: 1792
Merit: 1008
/dev/null
The original Abe UI seems too simple, any fork or branch with good looking? (any fork can show latest X blocks?)  Sad

I can only find one fork done for catcoin
then use it, UI is html + template stuff, so you can just port it to your abe.
full member
Activity: 182
Merit: 100
The original Abe UI seems too simple, any fork or branch with good looking? (any fork can show latest X blocks?)  Sad

I can only find one fork done for catcoin
newbie
Activity: 57
Merit: 0
Does Abe work with coins that use transaction messaging?

I'm trying to set this up with SolarCoin and hitting the same "overflowerror: Python int too large to convert to C long" that others seemed to be getting with coins using transaction messaging. Anyone get past that problem yet?
newbie
Activity: 5
Merit: 0
Before I went to upgrade, I found that Abe had stopped working. My block file just exceeded 1GB in size a couple hours ago which is causing this error:

Quote
Failed to catch up {'blkfile_number': 1, 'dirname': 'C:\\Documents and Settings\
\Jon\\Application Data\\Bitcoin', 'chain_id': None, 'id': 1L, 'blkfile_offset':
0}
Traceback (most recent call last):
  File "Abe\DataStore.py", line 2169, in catch_up
    store.catch_up_dir(dircfg)
  File "Abe\DataStore.py", line 2184, in catch_up_dir
    ds = open_blkfile()
  File "Abe\DataStore.py", line 2180, in open_blkfile
    ds.map_file(open(filename, "rb"), 0)
  File "Abe\BCDataStream.py", line 27, in map_file
    self.input = mmap.mmap(file.fileno(), 0, access=mmap.ACCESS_READ)
WindowsError: [Error 8] Not enough storage is available to process this command

It is because I'm running a 32-bit system. Apparently this issue will eventually affect Linux 32-bit systems as well because of the way mmap works; except that it will occur when the block file hits 2 or 3 GB in size. Is Abe particularly tied to mmap? If it is, it seems like it will soon be (or is now) for 64 bit systems only.

For those who try to use Abe and encounter this error, upgrading from 32-bit Python to 64-bit Python (on a 64-bit system) solves this problem.
member
Activity: 79
Merit: 10
Failed to catch up {'blkfile_offset': 1309247667, 'blkfile_number': 1, 'chain_id': 8, 'loader': None, 'dirname': u'/home/mapleshadow/.dogecoin', 'id': 1}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2639, in catch_up
    if not store.catch_up_rpc(dircfg):
  File "Abe/DataStore.py", line 2804, in catch_up_rpc
    format = "binary")
  File "Abe/DataStore.py", line 2340, in export_tx
    'prevout_hash': store.hashout(prevout_hash),
  File "Abe/DataStore.py", line 334, in rev
    return x[::-1]
TypeError: 'NoneType' object has no attribute '__getitem__'
Abe initialized.
Listening on http:

try rpc instead of blkfile
Will, conf file how to write this code?
And this tip:
ddl_implicit_commit=true
create_table_epilogue=''
max_varchar=4294967295
clob_type=CLOB
binary_type=buffer
int_type=str
Created silly table abe_dual
sequence_type=update
limit_style=native
genesis transaction unavailable via RPC; see import-tx in abe.conf
catch_up_rpc: abort
Opened /home/maple/.digitalcoin/blk0001.dat


Should be written so?
default-loader = blkfile
member
Activity: 79
Merit: 10
Failed to catch up {'blkfile_offset': 1309247667, 'blkfile_number': 1, 'chain_id': 8, 'loader': None, 'dirname': u'/home/mapleshadow/.dogecoin', 'id': 1}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2639, in catch_up
    if not store.catch_up_rpc(dircfg):
  File "Abe/DataStore.py", line 2804, in catch_up_rpc
    format = "binary")
  File "Abe/DataStore.py", line 2340, in export_tx
    'prevout_hash': store.hashout(prevout_hash),
  File "Abe/DataStore.py", line 334, in rev
    return x[::-1]
TypeError: 'NoneType' object has no attribute '__getitem__'
Abe initialized.
Listening on http:

try rpc instead of blkfile
Will, conf file how to write this code?
And this tip:
ddl_implicit_commit=true
create_table_epilogue=''
max_varchar=4294967295
clob_type=CLOB
binary_type=buffer
int_type=str
Created silly table abe_dual
sequence_type=update
limit_style=native
genesis transaction unavailable via RPC; see import-tx in abe.conf
catch_up_rpc: abort
Opened /home/maple/.digitalcoin/blk0001.dat
full member
Activity: 182
Merit: 100
Failed to catch up {'blkfile_offset': 1309247667, 'blkfile_number': 1, 'chain_id': 8, 'loader': None, 'dirname': u'/home/mapleshadow/.dogecoin', 'id': 1}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2639, in catch_up
    if not store.catch_up_rpc(dircfg):
  File "Abe/DataStore.py", line 2804, in catch_up_rpc
    format = "binary")
  File "Abe/DataStore.py", line 2340, in export_tx
    'prevout_hash': store.hashout(prevout_hash),
  File "Abe/DataStore.py", line 334, in rev
    return x[::-1]
TypeError: 'NoneType' object has no attribute '__getitem__'
Abe initialized.
Listening on http:

try rpc instead of blkfile
member
Activity: 79
Merit: 10
Failed to catch up {'blkfile_offset': 1309247667, 'blkfile_number': 1, 'chain_id': 8, 'loader': None, 'dirname': u'/home/mapleshadow/.dogecoin', 'id': 1}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2639, in catch_up
    if not store.catch_up_rpc(dircfg):
  File "Abe/DataStore.py", line 2804, in catch_up_rpc
    format = "binary")
  File "Abe/DataStore.py", line 2340, in export_tx
    'prevout_hash': store.hashout(prevout_hash),
  File "Abe/DataStore.py", line 334, in rev
    return x[::-1]
TypeError: 'NoneType' object has no attribute '__getitem__'
Abe initialized.
Listening on http:
Pages:
Jump to: