Bitcoin Forum
April 27, 2024, 11:14:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 »
  Print  
Author Topic: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff  (Read 220734 times)
dashingriddler
Legendary
*
Offline Offline

Activity: 1258
Merit: 1001



View Profile
October 26, 2013, 12:10:50 PM
 #561

I am facing the same error as well !

no chain_id
catch_up_rpc: abort
Opened /home/bitcoin/.bitcoin/blocks/blk00088.dat
Exception at 60375615
Failed to catch up {'blkfile_offset': 60143075, 'blkfile_number': 100088, 'chain_id': None, 'loader': None, 'dirname': '/home/bitcoin/.bitcoin', 'id': Decimal('1')}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2639, in catch_up
    store.catch_up_dir(dircfg)
  File "Abe/DataStore.py", line 2897, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "Abe/DataStore.py", line 3027, in import_blkdat
    store.import_block(b, chain_ids = chain_ids)
  File "Abe/DataStore.py", line 1739, in import_block
    tx['tx_id'] = store.import_and_commit_tx(tx, pos == 0)
  File "Abe/DataStore.py", line 2261, in import_and_commit_tx
    tx_id = store.import_tx(tx, is_coinbase)
  File "Abe/DataStore.py", line 2195, in import_tx
    pubkey_id = store.script_to_pubkey_id(txout['scriptPubKey'])
  File "Abe/DataStore.py", line 2575, in script_to_pubkey_id
    for opcode, data, i in deserialize.script_GetOp(script):
  File "Abe/deserialize.py", line 247, in script_GetOp
    nSize = ord(bytes)
IndexError: string index out of range

I hope there will be a fix soon !

CENTRA

            ▄▄▄██████████▄▄▄
        ▄▄████████████████████▄▄
      ▄███████▀▀         ▀▀███████▄
    ▄█████▀                  ▀██████
   █████▀      ▄▄▄█████▄▄      ▀█████▄
  █████     ▄██████████████▄     ▀████▄
 █████     ██████▀▀  ▀▀██████▄    ▀████
▐████     █████          █████     █████
█████    ▐████                     ▐████
█████    █████                     ▐████
█████     █████          ▄████▌    █████
 ████▌    ▀█████▄▄    ▄▄█████▀    ▄████▌
 ▀████▄     ▀██████████████▀     ▄████▀
  ▀█████▄     `▀████████▀▀     ▄█████▀
   `██████▄                  ▄██████
     ▀███████▄▄          ▄▄███████▀
       ▀██████████████████████▀
           ▀▀▀█████████████▀▀

.
.
.
.
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Jouke
Sr. Member
****
Offline Offline

Activity: 426
Merit: 250



View Profile WWW
October 26, 2013, 06:52:02 PM
 #562

I have never ever programmed in python, but I think I know what is going wrong. I have changed the code in deserialize.py . The import does continue, and the data seems right. But be sure to make a backup of the database!!

You can't lookup the transaction itself in Abe, but at least the rest of the transactions seem to work just fine.


def script_GetOp(bytes):
  i = 0
  while i < len(bytes):
    vch = None
    opcode = ord(bytes)
    i += 1

    if opcode <= opcodes.OP_PUSHDATA4:
      nSize = opcode
      if len(bytes) > 1:
        if opcode == opcodes.OP_PUSHDATA1:
          nSize = ord(bytes)
          i += 1
        elif opcode == opcodes.OP_PUSHDATA2:
          (nSize,) = struct.unpack_from('<H', bytes, i)
          i += 2
        elif opcode == opcodes.OP_PUSHDATA4:
          (nSize,) = struct.unpack_from('<I', bytes, i)
          i += 4
        if i+nSize > len(bytes):
          vch = "_INVALID_"+bytes[i:]
          i = len(bytes)
        else:
          vch = bytes[i:i+nSize]
          i += nSize
      else:
        vch = "_INVALID_NULL"
        i = len(bytes)

    yield (opcode, vch, i)

Koop en verkoop snel en veilig bitcoins via iDeal op Bitonic.nl
bradford
Newbie
*
Offline Offline

Activity: 12
Merit: 0



View Profile
October 29, 2013, 12:29:12 AM
 #563

I have never ever programmed in python, but I think I know what is going wrong. I have changed the code in deserialize.py . The import does continue, and the data seems right. But be sure to make a backup of the database!!

Your snippet worked for me. Back up and running. Thanks Jouke!
Mannfred
Newbie
*
Offline Offline

Activity: 41
Merit: 0



View Profile
October 29, 2013, 10:43:09 AM
 #564

I´m getting this Error-Masssage:

no chain_id
catch_up_rpc: abort
Opened e:\datenbank\bitcoin\daten\blocks\blk00080.dat
Exception at 13228858152345733452
Failed to catch up {'blkfile_offset': 123332745, 'blkfile_number': 100080, 'chai
n_id': None, 'loader': None, 'dirname': 'e:\\datenbank\\bitcoin\\daten', 'id': D
ecimal('2')}
Traceback (most recent call last):
  File "Abe\DataStore.py", line 2639, in catch_up
    store.catch_up_dir(dircfg)
  File "Abe\DataStore.py", line 2897, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "Abe\DataStore.py", line 3024, in import_blkdat
    b = store.parse_block(ds, chain_id, magic, length)
  File "Abe\DataStore.py", line 3055, in parse_block
    d['transactions'].append(deserialize.parse_Transaction(ds))
  File "Abe\deserialize.py", line 92, in parse_Transaction
    d['txOut'].append(parse_TxOut(vds))
  File "Abe\deserialize.py", line 67, in parse_TxOut
    d['value'] = vds.read_int64()
  File "Abe\BCDataStream.py", line 72, in read_int64
    def read_int64  (self): return self._read_num('<q')
  File "Abe\BCDataStream.py", line 110, in _read_num
    (i,) = struct.unpack_from(format, self.input, self.read_cursor)
OverflowError: Python int too large to convert to C long
fsb4000
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000



View Profile
November 06, 2013, 01:14:09 PM
 #565

Hello!
I started ABE for CopperLark.
And ABE doesn't recognize the address generated coins.
For example: http://copperlarkabe.no-ip.biz/tx/0853f50766f64e15e1e0ad779e598534099e79094fe314108d844f9ab76931d6

though raw_transaction has
Code:
"out": [
    {
      "raw_scriptPubKey": "21026bbf078c7e4a0d5dfcdd415de2de4510e0d5ca85e906116bc5cea0698a8e88f0ac",
      "value": "50.00050000"
    }
  ],

What shoud I fix in ABE for recognize the address generated coins?
fsb4000
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000



View Profile
November 09, 2013, 04:31:04 PM
 #566

Anyone knows how to work with ABE?

How to add recognition of the transaction "33: pubkey CHECKSIG"
Deserialize.py has only:
Code:
 # non-generated TxIn transactions push a signature
  # (seventy-something bytes) and then their public key
  # (65 bytes) onto the stack:
  match = [ opcodes.OP_PUSHDATA4, opcodes.OP_PUSHDATA4 ]
  if match_decoded(decoded, match):
    return public_key_to_bc_address(decoded[1][1])

  # The Genesis Block, self-payments, and pay-by-IP-address payments look like:
  # 65 BYTES:... CHECKSIG
  match = [opcodes.OP_PUSHDATA4, opcodes.OP_CHECKSIG ]
  if match_decoded(decoded, match):
    return public_key_to_bc_address(decoded[0][1])


  # Pay-by-Bitcoin-address TxOuts look like:
  # DUP HASH160 20 BYTES:... EQUALVERIFY CHECKSIG
  match = [ opcodes.OP_DUP, opcodes.OP_HASH160, opcodes.OP_PUSHDATA4, opcodes.OP_EQUALVERIFY, opcodes.OP_CHECKSIG ]
  if match_decoded(decoded, match):
    return hash_160_to_bc_address(decoded[2][1])

  return "(None)"

what should I add  to recognize the type of transaction( http://copperlarkabe.no-ip.biz/tx/f2c627ec63da1d68142e4c439ac5b6cd2e58390e99a3e18f14bd317f36cc685f)
("33: pubkey CHECKSIG") ?
hayek
Sr. Member
****
Offline Offline

Activity: 370
Merit: 250


View Profile
November 13, 2013, 02:38:40 AM
 #567

Question:

It's my understanding you cannot derive a public key from an address. Yet when I give Abe my address it finds my transactions. When I check the database I can't find the address stored anywhere, just the public keys.

Am I missing something in the database? The pubkey_hash column does not appear to be valid for addresses. Is Abe doing anything when it starts to compute the addresses? This is something I expected to find in the db that would be computationally intense to do on the fly otherwise.
emsit
Member
**
Offline Offline

Activity: 63
Merit: 11


View Profile WWW
November 17, 2013, 06:04:29 PM
 #568

I can see with ABE only one block without using database?
Something like https://blockchain.info/rawblock/1
m00x!
Member
**
Offline Offline

Activity: 91
Merit: 10


View Profile
November 19, 2013, 07:12:32 PM
 #569

What would it take to develop a web based block explorer for I0coin?  Also I need the total coins mined to be displayed.
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
November 21, 2013, 04:52:09 PM
 #570

What would it take to develop a web based block explorer for I0coin?  Also I need the total coins mined to be displayed.
default Abe can handle i0coin

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
eiswuerfel
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


View Profile
November 23, 2013, 06:22:02 AM
 #571

How could i get HunterCoin running? Bitcoin works fine

Code:
python -m Abe.abe --config /home/user/Downloads/bitcoin-abe-master/abe.conf
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
Assigned chain_id 9 to HunterCoin
failed to load /home/user/Downloads/bitcoin-abe-master/testnet/bitcoin.conf: [Errno 2] No such file or directory: u'/home/user/Downloads/bitcoin-abe-master/testnet/bitcoin.conf'
catch_up_rpc: abort
Opened /home/user/Downloads/bitcoin-abe-master/testnet/blk0001.dat
Exception at 89
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 1, 'chain_id': 9, 'loader': None, 'dirname': u'/home/user/Downloads/bitcoin-abe-master/testnet', 'id': 1}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2639, in catch_up
    store.catch_up_dir(dircfg)
  File "Abe/DataStore.py", line 2897, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "Abe/DataStore.py", line 3027, in import_blkdat
    store.import_block(b, chain_ids = chain_ids)
  File "Abe/DataStore.py", line 1758, in import_block
    raise MerkleRootMismatch(b['hash'], tx_hash_array)
MerkleRootMismatch: Block header Merkle root does not match its transactions. block hash=0000000045b53004055a6839c46cce359a2fd6ca2b07ddfea02693a8b30b2836
Abe initialized.
Listening on http://localhost:2750
m00x!
Member
**
Offline Offline

Activity: 91
Merit: 10


View Profile
November 28, 2013, 06:24:58 AM
 #572

What would it take to develop a web based block explorer for I0coin?  Also I need the total coins mined to be displayed.
default Abe can handle i0coin

Really?  How so?  I don't see an I0coin option on Abe Search ( http://block.al.tcoin.info/ ).  Please enlighten me.
AWSOM
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
November 28, 2013, 12:39:33 PM
 #573

I'm looking to set up a local blockchain/blockexplorer site with API functionality. Abe seems to do a lot, but as far as I could find it does not support the blockchain API option "addressbalance". Could anyone confirm this before I set up Abe in my Ubuntu server? Does someone maybe know a blockchain/blockexplorer knockoff that does support a likewise option?

Donations to help me save penguins stuck in the desert are welcome to: 
Bitcoin: 14h1puQLxPxZmGio3LC6Ke4259EDekfuqS Megacoin: MDgc7txspkyc9bdveUyKrjWKY2xhiexjCB
Lottocoin: Lz4rWa4zyo498faSMAV47u81wdcCCNB5TpQuarkcoin: QQWDUgTGCNKA5UEBDqXVongu9RU6QpBXfd
Lexiko
Sr. Member
****
Offline Offline

Activity: 503
Merit: 283


View Profile
November 28, 2013, 03:07:57 PM
 #574

4 days
SSD/i7 2600 16Gb ram
mysql InnoDb
bitcoin base
current on: block_tx 206973 8681883
is this ok?
Can anybody upload the dump of bitcoin mysql database. Would be very grateful.
Or share your my.ini settings  , maybe I'am something doing wrong.
Btw, i'am using this command line options :
 --commit-bytes=1000000
moderate
Member
**
Offline Offline

Activity: 98
Merit: 10

nearly dead


View Profile
November 28, 2013, 08:49:39 PM
 #575

4 days

4 days for starting up this block explorer ? I wasn't aware it was that slow.
crabel
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
December 10, 2013, 03:59:52 AM
 #576

FWIW, I got abe up and running natively on Mac OS 10.9. It was painful, OSX doesn't like python... I lost a weekend, if anyone wants a discussion of how and what I used to get the binaries compiled give me a shout.

Abe through MySQL allows me to directly access the database using Mathematica for data analytics.  Very nice tool.  Thanks John!

BTW, where is the data for the number of bitcoins in circulation? I can't seem to find the correct db location.
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
December 10, 2013, 07:19:34 AM
 #577

4 days
SSD/i7 2600 16Gb ram
mysql InnoDb
bitcoin base
current on: block_tx 206973 8681883
is this ok?
Can anybody upload the dump of bitcoin mysql database. Would be very grateful.
Or share your my.ini settings  , maybe I'am something doing wrong.
Btw, i'am using this command line options :
 --commit-bytes=1000000
so sad... use tmpfs!

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
Amitabh S
Legendary
*
Offline Offline

Activity: 1001
Merit: 1003


View Profile
December 22, 2013, 06:07:32 AM
 #578

How realtime are Abe's updates?

Anyone willing to run "Abe as a service" for various alt coins? Its too much resources for me to host Abe but I need a private instance running all the time.

Coinsecure referral ID: https://coinsecure.in/signup/refamit (use this link to signup)
Amitabh S
Legendary
*
Offline Offline

Activity: 1001
Merit: 1003


View Profile
December 22, 2013, 06:09:24 AM
 #579

... OSX doesn't like python...

Neither does windows. I lost a weekend too but could not get pycrypto to install. So in the end .. no abe.
A java version would be awesome!

Coinsecure referral ID: https://coinsecure.in/signup/refamit (use this link to signup)
osoverflow
Full Member
***
Offline Offline

Activity: 547
Merit: 105


Bitcoin ya no es el futuro, es el presente


View Profile WWW
December 26, 2013, 09:14:18 AM
 #580

Hi! I have a problem with ppcoin. Quantities seems to require a 100 multiplication to be right. For example, a transaction that ABE stores as 0.100 should be 0.100*100= 10 PPC

With bitcoin, litecoin and testnet ABE works very well

PS: I'm using the ppcoin branch merged to the master from git

Bienvenidos a la nueva tecnología
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!