Bitcoin Forum
September 12, 2024, 01:02:29 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] [MYR] Myriad - Multi Algo - REQUIRED UPDATE 0.8.99.8 on: April 15, 2014, 10:35:54 AM
Hi,

first of all, I post this here because myriadcoin do what I want to achieve, moreless, works with different algos and I don't know where else ask for help...sorry.

I'm trying to modify dogecoin to work with scrypt and scrypt 2048. But I'm stuck...

What I want to do is, by reading a config var algo=0 or 1, dogecoin works with Nfactor 9 or 10 to have a N=2048 or 1024 in scrypt algo. So, the part of reading the var is done, but not the algo part.

I modified scrypt_1024_1_1_256_sp_generic() function on scrypt.cpp changing 1024 to 2048, and 1023 to 2047 inside the function, not the function name, only code, but I think is not enough because after make and launch ./litecoind is not working. What else should I change to have this done??

I also did the get a new genesis block thing, with 1024 all is ok, but with 2048 change is not working...

Some clues will be loved Smiley

Thanks in advance.
2  Alternate cryptocurrencies / Announcements (Altcoins) / Re: Vertcoin | Scrypt N | Beat ASICs | Must upgrade wallet due to a bug in OpenSSL on: April 10, 2014, 06:16:24 PM
Hi all,

I'm trying to start from Nfactor=9 (to make N=1024), but I always have this error on executing ./vertcoind:
Error: Failed to read block
Error: Failed to connect best block

What I do is to set a variable on vertcoin.conf, an depending on the value (9,10,11...) getNfactor function on main.cpp returns this value (9, 10, 11...).
With Nfactor=10, all goes ok, scrypt_N_1_1_256_sp_generic function on main.cpp uses it as N=2048 and Nfactor=10, and everything goes ok, I start mining on testnet an so on.

So, I think I'm missing something I have to change in addition to make it work from Nfactor=9, any idea??

Thaks a lot.

VTC Nfactor is 11



So if getNfactor function returns 10, N will be 1024 on scrypt_N_1_1_256_sp_generic function and if it returns 11, N will be 2048 scrypt_N_1_1_256_sp_generic function?

I used a fprintf on scrypt_N_1_1_256_sp_generic function main.cpp, and when getNfactor returns Nfactor=9, scrypt_N_1_1_256_sp_generic function prints N=1024 and with 10 is 2048, so... I'm understanding it on the wrong way?

What I'm trying to do is, via vertcoin.conf, pass a Nfactor number to run vertcoind with scrypt starting with N=1024, 2048, 4096 and so on, choosing it from the conf file with Nfactor.

Thanks a lot.


Whats the sense of that? There is no way you can change the nfactor via config.

Its checking the timestamps of the blocks to determine the correct nfactor.

I'm doing some tests and stuff. In config I set a var to a value. getNfactor function reads this value an returns 9, 10, 11 who is readed by scrypt_N_1_1_256_sp_generic function setting N at 1024, 2048, 4096... of course I'm modifying the code to read a var from config and use it, and to return a Nfactor depending on this var.

Thanks.
3  Alternate cryptocurrencies / Announcements (Altcoins) / Re: Vertcoin | Scrypt N | Beat ASICs | Must upgrade wallet due to a bug in OpenSSL on: April 10, 2014, 05:06:19 PM
Hi all,

I'm trying to start from Nfactor=9 (to make N=1024), but I always have this error on executing ./vertcoind:
Error: Failed to read block
Error: Failed to connect best block

What I do is to set a variable on vertcoin.conf, an depending on the value (9,10,11...) getNfactor function on main.cpp returns this value (9, 10, 11...).
With Nfactor=10, all goes ok, scrypt_N_1_1_256_sp_generic function on main.cpp uses it as N=2048 and Nfactor=10, and everything goes ok, I start mining on testnet an so on.

So, I think I'm missing something I have to change in addition to make it work from Nfactor=9, any idea??

Thaks a lot.

VTC Nfactor is 11



So if getNfactor function returns 10, N will be 1024 on scrypt_N_1_1_256_sp_generic function and if it returns 11, N will be 2048 scrypt_N_1_1_256_sp_generic function?

I used a fprintf on scrypt_N_1_1_256_sp_generic function main.cpp, and when getNfactor returns Nfactor=9, scrypt_N_1_1_256_sp_generic function prints N=1024 and with 10 is 2048, so... I'm understanding it on the wrong way?

What I'm trying to do is, via vertcoin.conf, pass a Nfactor number to run vertcoind with scrypt starting with N=1024, 2048, 4096 and so on, choosing it from the conf file with Nfactor.

Thanks a lot.
4  Alternate cryptocurrencies / Announcements (Altcoins) / Re: Vertcoin | Scrypt N | Beat ASICs | Must upgrade wallet due to a bug in OpenSSL on: April 10, 2014, 04:07:07 PM
Hi all,

I'm trying to start from Nfactor=9 (to make N=1024), but I always have this error on executing ./vertcoind:
Error: Failed to read block
Error: Failed to connect best block

What I do is to set a variable on vertcoin.conf, an depending on the value (9,10,11...) getNfactor function on main.cpp returns this value (9, 10, 11...).
With Nfactor=10, all goes ok, scrypt_N_1_1_256_sp_generic function on main.cpp uses it as N=2048 and Nfactor=10, and everything goes ok, I start mining on testnet an so on.

So, I think I'm missing something I have to change in addition to make it work from Nfactor=9, any idea??

Thaks a lot.
5  Bitcoin / Project Development / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff on: January 09, 2014, 10:35:52 AM
Hi again.

The problem appears to be in the big size of pubkey table. Aprox 24.270.000 inputs, so mysqld can't handle it and go away.

I have an small amazon ec2 ubuntu server 13.10 64bits with 300Gb HDD. The only difference I can see is that some days ago I was using a 1Tb HDD instead of 300Gb but there are some space remaining yet in 300Gb HDD.

For example:
SELECT COUNT(*) FROM pubkey = MySQL Server gone away
SELECT * FROM pubkey LIMIT 10000000 (aprox half of data amount) =  Output data without problems.

Some idea?? Thanks again.

6  Bitcoin / Project Development / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff on: January 05, 2014, 11:59:32 AM
Hi, and happy new year.

Everything was working fine with abe, and I had to stop it for some days. We are talking about an Ubuntu 13.10 Server on Amazon EC2 small with mysql server running on it (not RDS) and apache (think is not important) and a 300Gb Volume.

Now when I try to restart (sudo python -m Abe.abe --config abe-my.conf) I'm getting this error:

Code:
catch_up_rpc: abort
Opened /home/ubuntu/.bitcoin/blocks/blk00105.dat
Exception at 62110992
Failed to catch up {'blkfile_offset': 61209101, 'blkfile_number': 100105, 'chain_id': None, 'loader': None, 'dirname': '/home/ubuntu/.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 1741, in import_block
    tx['tx_id'] = store.import_tx(tx, pos == 0)
  File "Abe/DataStore.py", line 2195, in import_tx
    pubkey_id = store.script_to_pubkey_id(txout['scriptPubKey'])
  File "Abe/DataStore.py", line 2563, in script_to_pubkey_id
    return store.pubkey_hash_to_id(match.group(1))
  File "Abe/DataStore.py", line 2596, in pubkey_hash_to_id
    return store._pubkey_id(pubkey_hash, None)
  File "Abe/DataStore.py", line 2607, in _pubkey_id
    WHERE pubkey_hash = ?""", (dbhash,))
  File "Abe/DataStore.py", line 638, in selectrow
    store.sql(stmt, params)
  File "Abe/DataStore.py", line 510, in sql
    store._execute(cached, params)
  File "Abe/DataStore.py", line 487, in _execute
    store.cursor.execute(stmt, params)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
OperationalError: (2013, 'Lost connection to MySQL server during query')
Reconnecting after rollback error: (2006, 'MySQL server has gone away')
Reconnecting to database.
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/var/www/abe/Abe/abe.py", line 2248, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/var/www/abe/Abe/abe.py", line 2242, in main
    store = make_store(args)
  File "/var/www/abe/Abe/abe.py", line 157, in make_store
    store.catch_up()
  File "Abe/DataStore.py", line 2647, in catch_up
    store.rollback()
  File "Abe/DataStore.py", line 871, in rollback
    store.reconnect()
  File "Abe/DataStore.py", line 271, in reconnect
    store.init_conn()
  File "Abe/DataStore.py", line 213, in init_conn
    store.conn = store.connect()
  File "Abe/DataStore.py", line 224, in connect
    conn = store._connect(cargs)
  File "Abe/DataStore.py", line 256, in _connect
    return store.module.connect(**cargs)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)")

Mysql server is running, I can access trough mysql -u user -p and show my tables and databases, insert, select, etc. I can do it trough a python script, so I think is not a problem with python or mysql server.

I tried this too:
Code:
sudo find / -name '*.sock'
/run/mysqld/mysqld.sock
sudo ln -s /run/mysqld/mysqld.sock /var/run/mysqld/mysqld.sock
ln: failed to create symbolic link ‘/var/run/mysqld/mysqld.sock’: File exists

So, I'm a little bit lost... Of course, I restarted mysql server sometimes, and entire server, and nothing...

Any idea?? Thanks a lot.
7  Other / Beginners & Help / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff on: December 05, 2013, 11:45:03 AM
My last restart of the server, right now, has this log:

Code:
...block_tx 273388 32443649
block_tx 273388 32443650
block_tx 273388 32443651
commit
Abe initialized.
Listening on http://localhost:2750
no chain_id
catch_up_rpc: abort
Opened /home/ubuntu/.bitcoin/blocks/blk00098.dat
127.0.0.1 - - [05/Dec/2013 11:41:43] "GET /chain/Bitcoin/q/addressbalance/1Q3sRVHTKzik5tB2ZxmvYR2pxk2ZE5PjFW HTTP/1.1" 200 1
no chain_id
catch_up_rpc: abort
Opened /home/ubuntu/.bitcoin/blocks/blk00098.dat
127.0.0.1 - - [05/Dec/2013 11:41:43] "GET /chain/Bitcoin/q/addressbalance/1Ns3UYRqRcwmNLrmm5rwfTD4HF5K2p2U1A HTTP/1.1" 200 1

I don't know if is relevant...Thanks again.
8  Other / Beginners & Help / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff on: December 04, 2013, 07:47:31 PM
Hi again,

since my last message Abe was working ok, but some days ago I was expecting a very slow response.

For example, for the command wget
wget http://localhost:2750/chain/Bitcoin/q/addressbalance/1EweSrwuG6av7Lsk9fHzRbo91cavBDbNQM

I get this log
Code:
--2013-12-04 09:30:09--  http://localhost:2750/chain/Bitcoin/q/addressbalance/1EweSrwuG6av7Lsk9fHzRbo91cavBDbNQM
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2750... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2013-12-04 09:30:24--  (try: 2)  http://localhost:2750/chain/Bitcoin/q/addressbalance/1EweSrwuG6av7Lsk9fHzRbo91cavBDbNQM
Connecting to localhost (localhost)|127.0.0.1|:2750... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1 [text/plain]
Saving to: '1EweSrwuG6av7Lsk9fHzRbo91cavBDbNQM'

Finally, I got the balance after the second try, but in some cases I have 16 or more...and I need ABE to retrieve about 350 Bitcoin address balances every day, so I have to find a quickly way or find why is so slowly... same operation in blockchain.info api (with wget or curl via php) is very fast, so I think it has to be with my abe installation, but I don't know what happens. I restarted the server and killed old processes, but nothing happens.

With curl is even worst, I never get the value, always a 0 balance, I think because of the waiting time is too much.

Some ideas on what can be happening?
Any help will be appreciated. Thanks in advance and regards.
9  Other / Beginners & Help / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff on: August 30, 2013, 06:17:01 PM
Code:
  File "Abe/deserialize.py", line 236, in script_GetOp
    opcode |= ord(bytes[i])
IndexError: string index out of range

Please pull and try the latest code.  This was fixed a few days ago.


Hi again, just to say thank you. I did it and it worked.

Cheers.
10  Other / Beginners & Help / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff on: August 28, 2013, 09:43:09 PM
Code:
  File "Abe/deserialize.py", line 236, in script_GetOp
    opcode |= ord(bytes[i])
IndexError: string index out of range

Please pull and try the latest code.  This was fixed a few days ago.


Thanks, I'll do it.
11  Other / Beginners & Help / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff on: August 28, 2013, 04:39:11 PM
I run
Code:
python -m Abe.abe --config abe-my.conf --commit-bytes 100000 --no-serve
but 2 or 3 times I had to restart the server, so now in the block table, I check on block_id and there are some missing blocks.

block_id is not the same as block number (a.k.a. block_height).  The gaps in block_id are not a problem.


Hi, thanks. Finally I can return to the abe staff today. I launched the web server and I can get the data. For example, for this one:
http://localhost:2750/chain/Bitcoin/q/getreceivedbyaddress/19vDdUsaiQrra5CDDKNn8yooai2pF3XU6A
I get 0.43250932

And on http://blockexplorer.com/address/19vDdUsaiQrra5CDDKNn8yooai2pF3XU6A
I get 0.47998327

So I think there is something not updated on my database.

On launching abe web server I get this error:

Code:
python -m Abe.abe --config abe-my.conf
no chain_id
catch_up_rpc: abort
Opened /xx/xx/.bitcoin/blocks/blk00074.dat
Exception at 87267839
Failed to catch up {'blkfile_offset': 87139457, 'blkfile_number': 100074, 'chain_id': None, 'loader': None, 'dirname': '/xx/xx/.bitcoin', 'id': Decimal('1')}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2637, in catch_up
    store.catch_up_dir(dircfg)
  File "Abe/DataStore.py", line 2895, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "Abe/DataStore.py", line 3025, in import_blkdat
    store.import_block(b, chain_ids = chain_ids)
  File "Abe/DataStore.py", line 1737, in import_block
    tx['tx_id'] = store.import_and_commit_tx(tx, pos == 0)
  File "Abe/DataStore.py", line 2259, in import_and_commit_tx
    tx_id = store.import_tx(tx, is_coinbase)
  File "Abe/DataStore.py", line 2193, in import_tx
    pubkey_id = store.script_to_pubkey_id(txout['scriptPubKey'])
  File "Abe/DataStore.py", line 2573, in script_to_pubkey_id
    for opcode, data, i in deserialize.script_GetOp(script):
  File "Abe/deserialize.py", line 236, in script_GetOp
    opcode |= ord(bytes[i])
IndexError: string index out of range
Abe initialized.
Listening on http://localhost:2750

Any idea? Thanks (again) in advance!
12  Other / Beginners & Help / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff on: August 13, 2013, 11:13:58 PM
Hi,

I run
Code:
python -m Abe.abe --config abe-my.conf --commit-bytes 100000 --no-serve
but 2 or 3 times I had to restart the server, so now in the block table, I check on block_id and there are some missing blocks.

Is there a way to recover them without restart all the process of reading all the blocks on the blockchain??
For example, any way to launch the
Code:
python -m Abe.abe --config abe-my.conf --commit-bytes 100000 --no-serve
only for missing ids?

Thanks in advances and for Abe!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!