Show Posts
|
Pages: « 1 2 [3] 4 »
|
49
|
Bitcoin / Mining software (miners) / Re: Stratum Pool Server [Node.js] (supports POS/POW, SHA/Scrypt/Quark/X11, Vardiff)
|
on: May 05, 2014, 12:35:21 PM
|
ERROR................
events.js:72 throw er; // Unhandled 'error' event ^ Error: bind EACCES at errnoException (net.js:904:11) at net.js:1072:30 at Object.12:1 (cluster.js:592:5) at handleResponse (cluster.js:171:41) at respond (cluster.js:192:5) at handleMessage (cluster.js:202:5) at process.EventEmitter.emit (events.js:117:20) at handleMessage (child_process.js:322:10) at Pipe.channel.onread (child_process.js:349:11) 2014-05-05 17:21:19 [Master] [Website] Website process died, spawning replacement...
xxxxx@mpos:~/nomp$
PS: config.json
"website": { "enabled": true, "port": 80, "stratumHost": "localhost", "stats": { "updateInterval": 60, "historicalRetention": 43200, "hashrateWindow": 300 }, "adminCenter": { "enabled": true, "password": "password" } },
|
|
|
51
|
Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][CATc] Cataloniacoin · Conference soon thanks to a Google dev · SCRYPT-N
|
on: April 25, 2014, 02:56:55 AM
|
ERROR!!!!!!!!!!!!!!!!!!!
g++ -c -DTEST_DATA_DIR=/home/map/coins-ns/CataloniacoinS/src/test/data -DBOOST_TEST_DYN_LINK -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/map/coins-ns/CataloniacoinS/src -I/home/map/coins-ns/CataloniacoinS/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/map/coins-ns/CataloniacoinS/src/leveldb/include -I/home/map/coins-ns/CataloniacoinS/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj-test/sigopcount_tests.d -o obj-test/sigopcount_tests.o test/sigopcount_tests.cpp test/scrypt_tests.cpp: In member function ‘void scrypt_tests::scrypt_hashtest::test_method()’: test/scrypt_tests.cpp:24:108: error: ‘pblock’ was not declared in this scope scrypt_N_1_1_256_sp_generic((const char*)&inputbytes[0], BEGIN(scrypthash), scratchpad, GetNfactor(pblock->nTime)); ^ test/scrypt_tests.cpp:24:121: error: ‘GetNfactor’ was not declared in this scope scrypt_N_1_1_256_sp_generic((const char*)&inputbytes[0], BEGIN(scrypthash), scratchpad, GetNfactor(pblock->nTime)); ^ make: *** [obj-test/scrypt_tests.o] error 1
PS: ubuntu 13.10 x64
|
|
|
55
|
Alternate cryptocurrencies / Mining (Altcoins) / Re: Finding p2pool networks.py values for new altcoins
|
on: February 01, 2014, 05:31:02 PM
|
I've recently tried to port p2pool to some newer alt coins and have been hitting a brick wall. I'm pretty sure this going beyond basic network.py values but I wanted to get some opinions. I've tried setting this up for grandcoin, lottocoin, luckycoin and earthcoin. The one I'm most interested in getting to work is earthcoin, so let's take that one for example. This is the error I receive when running it. Testing bitcoind RPC connection to 'http://127.0.0.1:5555/' with username 'user'... 2013-12-30 00:24:16.668394 > Error getting work from bitcoind: 2013-12-30 00:24:16.668474 > Traceback (most recent call last): 2013-12-30 00:24:16.668509 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks 2013-12-30 00:24:16.668538 > current.result = callback(current.result, *args, **kw) 2013-12-30 00:24:16.668566 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult 2013-12-30 00:24:16.668598 > _inlineCallbacks(r, g, deferred) 2013-12-30 00:24:16.668626 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks 2013-12-30 00:24:16.668675 > result = result.throwExceptionIntoGenerator(g) 2013-12-30 00:24:16.668704 > File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator 2013-12-30 00:24:16.668732 > return g.throw(self.type, self.value, self.tb) 2013-12-30 00:24:16.668759 > --- <exception caught here> --- 2013-12-30 00:24:16.668785 > File "/home/x/p2pool-eac/p2pool/util/deferral.py", line 41, in f 2013-12-30 00:24:16.668812 > result = yield func(*args, **kwargs) 2013-12-30 00:24:16.668838 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks 2013-12-30 00:24:16.668866 > result = g.send(result) 2013-12-30 00:24:16.668892 > File "/home/x/p2pool-eac/p2pool/bitcoin/helper.py", line 49, in getwork 2013-12-30 00:24:16.668919 > transactions=map(bitcoin_data.tx_type.unpack, packed_transactions), 2013-12-30 00:24:16.668945 > File "/home/x/p2pool-eac/p2pool/util/pack.py", line 63, in unpack 2013-12-30 00:24:16.668972 > obj = self._unpack(data, ignore_trailing) 2013-12-30 00:24:16.668998 > File "/home/x/p2pool-eac/p2pool/util/pack.py", line 47, in _unpack 2013-12-30 00:24:16.669024 > raise LateEnd() 2013-12-30 00:24:16.669050 > p2pool.util.pack.LateEnd: Now, what I noticed is in the pack.py file, the functions def _unpack(self, data, ignore_trailing=False): obj, (data2, pos) = self.read((data, 0))
assert data2 is data
if pos != len(data) and not ignore_trailing: raise LateEnd()
return obj
def unpack(self, data, ignore_trailing=False): obj = self._unpack(data, ignore_trailing)
if p2pool.DEBUG: packed = self._pack(obj) good = data.startswith(packed) if ignore_trailing else data == packed if not good: raise AssertionError()
return obj is where the error is being thrown. The pos is always 1 character bigger then len(data) when the error is thrown. So setting the ignore_trailing=True eliminates the error, but when testing it against earthcoin, we hashed overnight and found a few blocks. However, none of them were actually committed to the blockchain and nothing was paid out. So I assume that is messing with the blocks submitted and they're not valid. If you don't change that variable, the error that was mentioned is thrown for a while. Eventually it will connect to the wallet daemon, and you can actually hash in the pool, however the connection to the wallet will go unstable and the errors will start again. The connection to the wallet never really stabilizes. Just for reference here are my earthcoin network.py values. earthcoin=math.Object( PARENT=networks.nets['earthcoin'], SHARE_PERIOD=10, # seconds CHAIN_LENGTH=3*60*60//5, # shares REAL_CHAIN_LENGTH=3*60*60//5, # shares TARGET_LOOKBEHIND=120, # shares SPREAD=30, # blocks IDENTIFIER='e137d5b8c6923410'.decode('hex'), PREFIX='7218c1a53ef629b0'.decode('hex'), P2P_PORT=9338, MIN_TARGET=0, MAX_TARGET=2**256//2**20 - 1, PERSIST=False, WORKER_PORT=19330, BOOTSTRAP_ADDRS=''.split(' '), ANNOUNCE_CHANNEL='#spool', VERSION_CHECK=lambda v: True, ), earthcoin=math.Object( P2P_PREFIX='c0dbf1fd'.decode('hex'), P2P_PORT=15677, ADDRESS_VERSION=93, RPC_PORT=15678, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'earthcoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 10000*100000000 >> (height + 1)//525600, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=60, # s SYMBOL='EAC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'earthcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/earthcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.earthcoin'), 'earthcoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://earthchain.info/block/', ADDRESS_EXPLORER_URL_PREFIX='http://earthchain.info/address/', TX_EXPLORER_URL_PREFIX='http://earthchain.info/tx/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=1e8, ), If anyone that has better python skills than me, and a better knowledge of how p2pool works cares to help, I'd greatly appreciate it. Like I said, I don't think this is isolated to earthcoin as I've seen this behavior with several new alt coins. Also, I've posted a bug report on the official p2pool github in case anyone wants to contribute. error error error error................
|
|
|
56
|
Alternate cryptocurrencies / Mining (Altcoins) / Re: Finding p2pool networks.py values for new altcoins
|
on: February 01, 2014, 03:44:22 PM
|
I ask, why do I write infinitecoin unable to work? IDENTIFIER and PREFIX wrong in the end there? This is my random sets of data should be written right way? infinitecoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), #pchmessagestart P2P_PORT=9321, ADDRESS_VERSION=66, #pubkey_address 0xfb, 0xc0, 0xb6, 0xdb RPC_PORT=9322, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'infinitecoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 524288*100000000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=30, # s SYMBOL='IFC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Infinitecoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Infinitecoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.infinitecoin'), 'infinitecoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://p2pool.com:2758/block/', ADDRESS_EXPLORER_URL_PREFIX='http://p2pool.com:2758/address/', TX_EXPLORER_URL_PREFIX='http://p2pool.com:2758/tx/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=0.03e8, ),
infinitecoin=math.Object( PARENT=networks.nets['infinitecoin'], SHARE_PERIOD=10, # seconds target spacing-- CHAIN_LENGTH=24*60*60//10, # shares-- REAL_CHAIN_LENGTH=24*60*60//10, # shares-- TARGET_LOOKBEHIND=20, # shares coinbase maturity SPREAD=60, # blocks--- IDENTIFIER='fc656168639f686e'.decode('hex'), PREFIX='fe636f818e6c666a'.decode('hex'), P2P_PORT=10317, MIN_TARGET=0, MAX_TARGET=2**256//2**20 - 1, PERSIST=True, WORKER_PORT=9068, BOOTSTRAP_ADDRS=' '.split(' '), ANNOUNCE_CHANNEL='#p2pool-alt', VERSION_CHECK=lambda v: True, ),
|
|
|
57
|
Other / Beginners & Help / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff
|
on: January 29, 2014, 07:01:07 PM
|
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
|
|
|
58
|
Bitcoin / Project Development / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff
|
on: January 29, 2014, 06:59:49 PM
|
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
|
|
|
59
|
Other / Beginners & Help / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff
|
on: January 29, 2014, 04:31:08 PM
|
datastore.py---------------------- {"chain":"CinnamonCoin", "code3":"CIN", "address_version":"\x1c", "magic":"\xcd\xf2\xc0\xef"},
cin.conf-------------- default-loader = blkfile dbtype MySQLdb connect-args {"user":"abe","db":"abe_cin","passwd":"<xxx>"} datadir = /home/xxx/.CinnamonCoin upgrade port 2755 host 12.10.2.222
shell------------ python -m Abe.abe --config config/cin.conf --commit-bytes 100000 --no-serve
error: Opened /home/xxx/.CinnamonCoin/blk0001.dat Chain not found for magic number dbc0dbf2 in block file /home/xxx/.CinnamonCoin/blk0001.dat at offset 0.
why????????? Should not find cdf2c0ef thing? Why instead to search dbc0dbf2?
|
|
|
60
|
Bitcoin / Project Development / Re: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff
|
on: January 21, 2014, 06:29:23 AM
|
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.confcatch_up_rpc: abort Opened /home/maple/.digitalcoin/blk0001.dat Should be written so? default-loader = blkfile
|
|
|
|