dashingriddler
Legendary
Offline
Activity: 1258
Merit: 1001
|
|
October 26, 2013, 12:10:50 PM |
|
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 !
|
|
|
|
Jouke
|
|
October 26, 2013, 06:52:02 PM |
|
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
Activity: 12
Merit: 0
|
|
October 29, 2013, 12:29:12 AM |
|
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
Activity: 41
Merit: 0
|
|
October 29, 2013, 10:43:09 AM |
|
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
Activity: 1400
Merit: 1000
|
|
November 09, 2013, 04:31:04 PM |
|
Anyone knows how to work with ABE? How to add recognition of the transaction "33: pubkey CHECKSIG" Deserialize.py has only: # 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
|
|
November 13, 2013, 02:38:40 AM |
|
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.
|
|
|
|
|
m00x!
Member
Offline
Activity: 91
Merit: 10
|
|
November 19, 2013, 07:12:32 PM |
|
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
Activity: 1792
Merit: 1008
/dev/null
|
|
November 21, 2013, 04:52:09 PM |
|
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: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
eiswuerfel
|
|
November 23, 2013, 06:22:02 AM |
|
How could i get HunterCoin running? Bitcoin works fine 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
Activity: 91
Merit: 10
|
|
November 28, 2013, 06:24:58 AM |
|
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
Activity: 90
Merit: 10
|
|
November 28, 2013, 12:39:33 PM |
|
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
|
|
November 28, 2013, 03:07:57 PM |
|
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
Activity: 98
Merit: 10
nearly dead
|
|
November 28, 2013, 08:49:39 PM |
|
4 days
4 days for starting up this block explorer ? I wasn't aware it was that slow.
|
|
|
|
crabel
Newbie
Offline
Activity: 18
Merit: 0
|
|
December 10, 2013, 03:59:52 AM |
|
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
Activity: 1792
Merit: 1008
/dev/null
|
|
December 10, 2013, 07:19:34 AM |
|
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: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
Amitabh S
Legendary
Offline
Activity: 1001
Merit: 1005
|
|
December 22, 2013, 06:07:32 AM |
|
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.
|
|
|
|
Amitabh S
Legendary
Offline
Activity: 1001
Merit: 1005
|
|
December 22, 2013, 06:09:24 AM |
|
... 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!
|
|
|
|
osoverflow
Full Member
Offline
Activity: 547
Merit: 105
Bitcoin ya no es el futuro, es el presente
|
|
December 26, 2013, 09:14:18 AM |
|
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
|
|
|
|