Bitcoin Forum
May 13, 2024, 11:10:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Pools / Re: [ANN] Stratum mining protocol - ASIC ready on: February 24, 2014, 10:06:29 AM
Thanks Wink
2  Bitcoin / Pools / Re: [ANN] Stratum mining protocol - ASIC ready on: February 24, 2014, 10:00:27 AM
Hi,

can somebody explain me what is the session in stratum?

Quote
{"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "00000001", 4]}

Can I ignore this parameter? What is it? Can I set this parameter?

Thanks for reply

Analyzing stratum myself and it looks like this one isn't being used anywhere. Maybe reserved for later usage?

I analyzed cgminer code and I think that 'sessionid' is used only to reconnect. Am I right?
3  Bitcoin / Pools / Re: [ANN] Stratum mining protocol - ASIC ready on: February 22, 2014, 10:42:44 AM
Hi,

can somebody explain me what is the session in stratum?

Quote
{"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "00000001", 4]}

Can I ignore this parameter? What is it? Can I set this parameter?

Thanks for reply
4  Bitcoin / Development & Technical Discussion / Re: [Stratum] Overlay network protocol over Bitcoin on: February 21, 2014, 08:19:43 AM
Hi,

can somebody explain me what is the session in stratum?

Quote
{"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "00000001", 4]}

Can I ignore this parameter? What is it? Can I set this parameter?

Thanks for reply
5  Bitcoin / Pools / Re: [ANN] Stratum mining protocol - ASIC ready on: January 29, 2014, 01:44:15 PM
I try reconnect worker to pool, but I have problem with this:

Quote
SEND: {"id": 1, "method": "mining.subscribe", "params": ["cpuminer/2.3.1"]}
RECVD: {"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "f80015e9", 4]}

SEND: {"id": 1, "method": "mining.subscribe", "params": ["cpuminer/2.3.1", "ae6812eb4cd7735a302a8a9dd95cf71f"]}
RECVD: {"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "f80000cf", 4]}
SEND: {"id": 2, "method": "mining.authorize", "params": ["user.1", "x"]}
RECVD: {"params": [64], "id": null, "method": "mining.set_difficulty"}
RECVD: {"params": ["1033", "e66ab39733c0713f6119df118f695f5d59b6a13fe056a88bf01f89f03e2a5e05", "01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff26029f77062f503253482f0472fae85208", "0d2f7374726174756d506f6f6c2f0000000001808d643d000000001976a91480d0bb1754063fe37 14747d9ff44322500ae67a588ac00000000", ["2fd8a870b199fff48f9486942d8eb05b601ad903d5c5e80db9362d0d3d4879f5", "1119df1e3825d80027d33c6150a4db12953dc0fa1a72b2e5624ae1a2d79a5397"], "00000001", "1c128600", "52e8fa74", true], "id": null, "method": "mining.notify"}

RECVD: {"params": [4], "id": null, "method": "mining.set_difficulty"}
RECVD: {"error": null, "id": 2, "result": true}

RECVD: {"params": ["2bba", "e66ab39733c0713f6119df118f695f5d59b6a13fe056a88bf01f89f03e2a5e05", "01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff26029f77062f503253482f04aefae85208", "0d2f7374726174756d506f6f6c2f0000000001808d643d000000001976a91480d0bb1754063fe37 14747d9ff44322500ae67a588ac00000000", ["2fd8a870b199fff48f9486942d8eb05b601ad903d5c5e80db9362d0d3d4879f5", "1119df1e3825d80027d33c6150a4db12953dc0fa1a72b2e5624ae1a2d79a5397"], "00000001", "1c128600", "52e8fab0", false], "id": null, "method": "mining.notify"}
SEND: {"method": "mining.submit", "params": ["user.1", "1033", "00000000", "52e8fa74", "34431200"], "id":4}}
RECVD: {"error": [-2, "Share is above target", null], "id": 4, "result": null}
6  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [BTB] The BitBar Information Thread on: January 13, 2014, 10:14:19 AM
Code:
Value movecmd(const Array& params, bool fHelp)
{
    if (fHelp || params.size() < 3 || params.size() > 5)
        throw runtime_error(
            "move <fromaccount> <toaccount> <amount> [minconf=1] [comment]\n"
            "Move from one account in your wallet to another.");

    string strFrom = AccountFromValue(params[0]);
    string strTo = AccountFromValue(params[1]);
    int64 nAmount = AmountFromValue(params[2]);

    if (nAmount < MIN_TXOUT_AMOUNT)
        throw JSONRPCError(-101, "Send amount too small");

Code:
if (nAmount < MIN_TXOUT_AMOUNT)
        throw JSONRPCError(-101, "Send amount too small");

Can I change this value MIN_TXOUT_AMOUNT? I can't move 0.000001 form my "1" to "2" account in one wallet.

I generally don't use wallets on my local computer but instead move it directly from my mining pool to an exchange which has worked out well for me so far.  You just need to make sure you don't spam the exchange with lots of micro-transactions.

Ok, but I would like to move amount only in my wallet (local)
I don't believe you can but I'm not sure.  I've heard you'll have problems moving very small amounts of BitBar and also problems moving brand new coins. 
7  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [BTB] The BitBar Information Thread on: January 12, 2014, 09:21:34 PM
Code:
Value movecmd(const Array& params, bool fHelp)
{
    if (fHelp || params.size() < 3 || params.size() > 5)
        throw runtime_error(
            "move <fromaccount> <toaccount> <amount> [minconf=1] [comment]\n"
            "Move from one account in your wallet to another.");

    string strFrom = AccountFromValue(params[0]);
    string strTo = AccountFromValue(params[1]);
    int64 nAmount = AmountFromValue(params[2]);

    if (nAmount < MIN_TXOUT_AMOUNT)
        throw JSONRPCError(-101, "Send amount too small");

Code:
if (nAmount < MIN_TXOUT_AMOUNT)
        throw JSONRPCError(-101, "Send amount too small");

Can I change this value MIN_TXOUT_AMOUNT? I can't move 0.000001 form my "1" to "2" account in one wallet.
8  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][FLO] Florin|The original transaction message coin|Required updated 0.6.5.8 on: December 20, 2013, 11:59:26 AM
I was in the middle of creating a script to record account addresses periodically when I remembered this -
Quote
getaccountaddress will return the same address until coins are received on that address; once coins have been received, it will generate and return a new address.
Source: Bitcoin.it wiki

Essentially when you call getaccountaddress the client goes through all of your transactions, and if you've received coins at that address it creates a new one and associates it automatically. This is an example of Satoshi implementing automatic anonymizing tools into the client. Some would argue the "change address" always being generated as a new address is an example of this also.

This is solution. I check other currency (digitalcoin) and is the same. Sorry and thanks Smiley
9  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][FLO] Florin|The original transaction message coin|Required updated 0.6.5.8 on: December 19, 2013, 08:51:21 PM
Quote
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.51-1
This is mining server, use only rpc.

Quote
florincoind getinfo
{
    "version" : 60508,
    "protocolversion" : 60001,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 337498,
    "connections" : 6,
    "proxy" : "",
    "difficulty" : 2.15984347,
    "testnet" : false,
    "keypoololdest" : 1385822070,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "mininput" : 0.00010000,
    "errors" : ""
}

Quote
FC3w9yWEovdJxyRVSX86SHkhivi3VV6MVZ - last
getaccountaddress "" FFtE876CBW75mJJ4VXhbwfdmsd154thwFi - today

Quote
florincoind listaccounts
{
    "" : 0.00000000
}

Quote
florincoind validateaddress FFtE876CBW75mJJ4VXhbwfdmsd154thwFi
{
    "isvalid" : true,
    "address" : "FFtE876CBW75mJJ4VXhbwfdmsd154thwFi",
    "ismine" : true,
    "isscript" : false,
    "pubkey" : "028c35cfcd23de1ab2e6aa8112350b46d0d4b9944fa728e64483b6e2280841af0f",
    "iscompressed" : true,
    "account" : ""
}

10  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][FLO] Florin|The original transaction message coin|Required updated 0.6.5.8 on: December 19, 2013, 06:32:49 PM
Hi, I have problem with wallet. Wallet sometimes (once a day) change account "" address. What is the cause of this?
11  Alternate cryptocurrencies / Altcoin Discussion / Re: [ANN] Infinitecoin - IFC high coins per block! V1.2 Released! Please Upgrade on: July 09, 2013, 03:01:21 AM
Someone can give peers ip? Thanks!
12  Other / Beginners & Help / stratum-mining ERROR template_registry on: July 03, 2013, 10:10:13 PM
Hi, I have problem with startum-mining, errors:

Quote
2013-07-02 13:08:37+0200 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: http://localhost:8385>
2013-07-02 13:08:38,174 INFO template_registry # target_info: 17668201048317171789435028337278314961968102597311964175491250976823
2013-07-02 13:08:38,174 INFO template_registry # hash_int: 7828964347598659544576338303256361750942983294788636737368951610161891
2013-07-02 13:08:38,174 INFO template_registry # job.target: 46824477683132239135561803058851965969788731792469148591448018386944
2013-07-02 13:08:39+0200 [-] Starting factory <HTTPClientFactory: http://localhost:8385>
2013-07-02 13:08:39,097 INFO block_updater # New block! Prevhash: 000000013c8ec61561e6d307395909d475306657f17fba750cf845e2fa06a568
2013-07-02 13:08:39+0200 [HTTPPageGetter,client] Starting factory <HTTPClientFactory: http://localhost:8385>
2013-07-02 13:08:39+0200 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: http://localhost:8385>
2013-07-02 13:08:39,099 ERROR template_registry # [Failure instance: Traceback: <class 'struct.error'>: unpack requires a string argument of length 4
/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:1126:gotResult
/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:1113:_inlineCallbacks
/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:380:callback
/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:488:_startRunCallbacks
--- <exception caught here> ---
/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:575:_runCallbacks
/home/sannin/stratum/lib/template_registry.py:130:_update_block
/home/sannin/stratum/lib/block_template.py:64:fill_from_rpc
/home/sannin/stratum/lib/halfnode.py:141:deserialize
/home/sannin/stratum/lib/util.py:71:deser_vector
/home/sannin/stratum/lib/halfnode.py:107:deserialize
]

Quote
2013-07-02 13:19:00+0200 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: http://localhost:8385>
2013-07-02 13:19:01,640 INFO template_registry # target_info: 17668201048317171789435028337278314961968102597311964175491250976823
2013-07-02 13:19:01,640 INFO template_registry # hash_int: 26931581362785944347414155924451665936093937277250586439267436797026
2013-07-02 13:19:01,640 INFO template_registry # job.target: 48025696009976719546334930562118831838426128974381661891692502974464
2013-07-02 13:19:01,640 INFO template_registry # We found a block candidate! 00000000ffbb0c3a4e54a9e19125996c7b1471b91c1f41af3f09267a05b11c62
2013-07-02 13:19:01+0200 [Protocol,1,159.205.49.59] Starting factory <HTTPClientFactory: http://localhost:8385>
2013-07-02 13:19:01,641 INFO interfaces # 00000000ffbb0c3a4e54a9e19125996c7b1471b91c1f41af3f09267a05b11c62 valid rocker
2013-07-02 13:19:01+0200 [HTTPPageGetter,client] Unhandled error in Deferred:
2013-07-02 13:19:01+0200 [HTTPPageGetter,client] Unhandled Error
        Traceback (most recent call last):
        Failure: twisted.web.error.Error: 500 Internal Server Error

2013-07-02 13:19:01+0200 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: http://localhost:8385>

I try mine bitbar, thanks for help!
13  Alternate cryptocurrencies / Altcoin Discussion / Re: CoinChoose - alternative site to show respective profitability of the alt coins on: June 27, 2013, 06:48:56 PM
ah Crypts DDOS
14  Alternate cryptocurrencies / Altcoin Discussion / Re: CoinChoose - alternative site to show respective profitability of the alt coins on: June 27, 2013, 06:29:40 PM
Where are other currency?
15  Other / Beginners & Help / stratum-mining rpc connection problem? on: May 17, 2013, 08:53:46 PM
I use https://github.com/viperaus/stratum-mining and I can't connect to server.

Server output:
Quote
oot@pool:/opt/stratum-mining# twistd -ny launcher.tac -l -
----------------
Custom settings:
LITECOIN_TRUSTED_PASSWORD : ********
LISTEN_WSS_TRANSPORT : None
DATABASE_USER : pool
MEMCACHE_HOST : localhost:11211
THREAD_POOL_SIZE : 300
INSTANCE_ID : 31
LISTEN_WS_TRANSPORT : None
CENTRAL_WALLET : LLxLbccF2BTpQHB5A6cM1dcNDLGXwTceSn
LOGFILE : stratum.log
DATABASE_HOST : localhost
LISTEN_HTTP_TRANSPORT : None
MEMC_AUTH_TIMEOUT : 900
LITECOIN_TRUSTED_USER : pool
PREVHASH_REFRESH_INTERVAL : 5
LISTEN_HTTPS_TRANSPORT : None
LITECOIN_TRUSTED_HOST : localhost
ADMIN_PASSWORD_SHA256 : ********
LITECOIN_TRUSTED_PORT : 9332
HOSTNAME : localhost
DATABASE_DBNAME : pool
COINBASE_EXTRAS : /stratum/
DATABASE_PASSWORD : ********
MERKLE_REFRESH_INTERVAL : 60
----------------
2013-05-17 22:43:39,677 DEBUG example logger.get_logger # Logging initialized
2013-05-17 22:43:39,785 DEBUG interfaces logger.get_logger # Logging initialized
2013-05-17 22:43:39,787 DEBUG subscription logger.get_logger # Logging initialized
2013-05-17 22:43:39,792 DEBUG mining logger.get_logger # Logging initialized
2013-05-17 22:43:39,803 DEBUG block_updater logger.get_logger # Logging initialized
2013-05-17 22:43:39,812 DEBUG template_registry logger.get_logger # Logging initialized
2013-05-17 22:43:40,005 DEBUG bitcoin_rpc logger.get_logger # Logging initialized
2013-05-17 22:43:40,024 DEBUG halfnode logger.get_logger # Logging initialized
2013-05-17 22:43:40,030 DEBUG coinbaser logger.get_logger # Logging initialized
2013-05-17 22:43:40,043 DEBUG mining logger.get_logger # Logging initialized
2013-05-17 22:43:40,051 INFO mining __init__.setup # Waiting for litecoind RPC...
2013-05-17 22:43:40+0200 [-] Log opened.
2013-05-17 22:43:40+0200 [-] twistd 12.0.0 (/usr/bin/python 2.7.3) starting up.
2013-05-17 22:43:40+0200 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2013-05-17 22:43:41+0200 [HTTPPageGetter,client] Starting factory <HTTPClientFactory: http://localhost:9332>
2013-05-17 22:43:41+0200 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: http://localhost:9332>
2013-05-17 22:43:42+0200 [HTTPPageGetter,client] Starting factory <HTTPClientFactory: http://localhost:9332>
2013-05-17 22:43:42+0200 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: http://localhost:9332>
2013-05-17 22:43:43+0200 [HTTPPageGetter,client] Starting factory <HTTPClientFactory: http://localhost:9332>
^C2013-05-17 22:43:53+0200 [HTTPPageGetter,client] Received SIGINT, shutting down.
2013-05-17 22:43:53+0200 [HTTPPageGetter,client] Starting factory <HTTPClientFactory: http://localhost:9332>
2013-05-17 22:43:53+0200 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: http://localhost:9332>
2013-05-17 22:43:53+0200 [-] Main loop terminated.
2013-05-17 22:43:53+0200 [-] Server Shut Down.

config.py:
Code:
'''
This is example configuration for Stratum server.
Please rename it to settings.py and fill correct values.
'''

# ******************** GENERAL SETTINGS ***************

# Enable some verbose debug (logging requests and responses).
# Turn this off once ready to go live  -  True|False
DEBUG = True

# Destination for application logs, files rotated once per day.
# log in current directory - ensure log directory exists
LOGDIR = 'log/'

# Main application log file.
LOGFILE = 'stratum.log'

# Possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL
# Turn this to INFO once ready to go live
LOGLEVEL = 'DEBUG'

# How many threads use for synchronous methods (services).
# 30 is enough for small installation, for real usage
# it should be slightly more, say 100-300.
THREAD_POOL_SIZE = 300


#Not sure what this is.. lol
ENABLE_EXAMPLE_SERVICE = True

# ******************** TRANSPORTS *********************
# Hostname or external IP to expose
HOSTNAME = 'localhost'

# Port used for Socket transport. Use 'None' for disabling the transport.
LISTEN_SOCKET_TRANSPORT = 3333

# Port used for HTTP Poll transport. Use 'None' for disabling the transport
LISTEN_HTTP_TRANSPORT = None

# Port used for HTTPS Poll transport
LISTEN_HTTPS_TRANSPORT = None

# Port used for WebSocket transport, 'None' for disabling WS
LISTEN_WS_TRANSPORT = None

# Port used for secure WebSocket, 'None' for disabling WSS
LISTEN_WSS_TRANSPORT = None

# Hostname and credentials for one trusted Bitcoin node ("Satoshi's client").
# Stratum uses both P2P port (which is 8333 already) and RPC port
#update this information - user/password from ~/.litecoin/litecoin.conf
LITECOIN_TRUSTED_HOST = 'localhost'
LITECOIN_TRUSTED_PORT = 9332
LITECOIN_TRUSTED_USER = 'sannin'
LITECOIN_TRUSTED_PASSWORD = 'sannin'

# Use "echo -n '<yourpassword>' | sha256sum | cut -f1 -d' ' "
# for calculating SHA256 of your preferred password
ADMIN_PASSWORD_SHA256 = NONE
#ADMIN_PASSWORD_SHA256 = '9e6c0c1db1e0dfb3fa5159deb4ecd9715b3c8cd6b06bd4a3ad77e9a8c5694219' # SHA256 of the password

IRC_NICK = None

# MYSQL connection details

DATABASE_HOST = 'localhost'
DATABASE_DBNAME = 'sannin'
DATABASE_USER = 'sannin'
DATABASE_PASSWORD = 'sannin'

# Memcache server host and port
MEMCACHE_HOST = 'localhost:11211'

# Memcache authorization timeout - in seconds
MEMC_AUTH_TIMEOUT = 900


# Pool related settings
# to get central_wallet address: bitcoind/litecoind getaccountaddress ""

INSTANCE_ID = 31
CENTRAL_WALLET = 'LLxLbccF2BTpQHB5A6cM1dcNDLGXwTceSn'
PREVHASH_REFRESH_INTERVAL = 5 # in sec
MERKLE_REFRESH_INTERVAL = 60 # How often check memorypool
COINBASE_EXTRAS = '/stratum/'

litecoin.conf:
Code:
rpcuser=sannin
rpcpassword=sannin
rpcport=9332
rpcallowip=*.*.*.*
rpctimeout=30

port=9333
server=1
daemon=1
gen=0

Anyone help me?
16  Other / Beginners & Help / Re: Eloipool AssertionError on: May 16, 2013, 08:57:23 PM
I found other version and problem disappear. But I have another problem:
Code:
013-05-16 22:48:18,858	merkleMaker	CRITICAL	Traceback (most recent call last):
  File "/usr/lib/python3.2/json/decoder.py", line 369, in raw_decode
    obj, end = self.scan_once(s, idx)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/eloipool-litecoin-scrypt-new/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/tmp/eloipool-litecoin-scrypt-new/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/tmp/eloipool-litecoin-scrypt-new/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/tmp/eloipool-litecoin-scrypt-new/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/tmp/eloipool-litecoin-scrypt-new/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/tmp/eloipool-litecoin-scrypt-new/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/tmp/eloipool-litecoin-scrypt-new/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/usr/local/lib/python3.2/dist-packages/bitcoinrpc/authproxy.py", line 102, in __call__
    response = self._get_response()
  File "/usr/local/lib/python3.2/dist-packages/bitcoinrpc/authproxy.py", line 128, in _get_response
    parse_float=decimal.Decimal)
  File "/usr/lib/python3.2/json/__init__.py", line 322, in loads
    return cls(**kw).decode(s)
  File "/usr/lib/python3.2/json/decoder.py", line 353, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.2/json/decoder.py", line 371, in raw_decode
    raise ValueError(s)
ValueError: No JSON object could be decoded

s value is:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>Error</TITLE>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
</HEAD>
<BODY><H1>401 Unauthorized.</H1></BODY>
</HTML>

I think problem is wrong rpc connection settings:

Code:
TemplateSources = (
{
'name': 'primary',
'uri': 'http://rpcuser:rpcpass@localhost:9344',
'priority': 0,
'weight': 1,
},
)
Code:
UpstreamBitcoindNode = ('127.0.0.1', 9344) 

Where is the difference?

bitbar.conf
Code:
rpcuser=rpcuser
rpcpassword=rpcpass
rpcallowip=*.*.*.*
rpcport=9344

server=1
daemon=1
gen=0

Sorry for my english.
17  Other / Beginners & Help / Re: Eloipool AssertionError on: May 16, 2013, 08:23:16 PM
Ok, thanks for help
18  Other / Beginners & Help / Re: Eloipool AssertionError on: May 16, 2013, 07:33:36 PM
Thanks for reply but error is before server running. My conf:

Code:
# Name of the server
ServerName = 'eloipool'

### Settings relating to server scaling/load

# Share hashes must be below this to be valid shares
# If dynamic targetting is enabled, this is a minimum
ShareTarget = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff

# Automatically adjust targets per username
# 0 = disabled
# 1 = arbitrary targets
# 2 = power of two difficulties (zero bit counts)
DynamicTargetting = 0

# How many shares per minute to try to achieve on average
DynamicTargetGoal = 8

# Number of seconds hashrate is measured over
DynamicTargetWindow = 120

# Minimum and maximum of merkle roots to keep queued
WorkQueueSizeRegular = (0x100, 0x1000)

# Minimum and maximum of BLANK merkle roots to keep queued
# (used if we run out of populated ones)
WorkQueueSizeClear = (0x1000, 0x2000)

# Minimum and maximum of BLANK merkle roots to keep queued, one height up
# (used for longpolls)
WorkQueueSizeLongpoll = (0x1000, 0x2000)

# How long to wait between getmemorypool updates normally
MinimumTxnUpdateWait = 5

# How long to wait between retries if getmemorypool fails
TxnUpdateRetryWait = 1

# How long to sleep in idle loops (temporary!)
IdleSleepTime = 0.1

### Settings relating to reward generation

# Address to generate rewards to
TrackerAddr = 'B8qdqFcUAeSstHT9AWVyBv1KU4ysuaxHts'  # testnet

# Coinbaser command to control reward delegation
# NOTE: This example donates 1% of block rewards to Luke-Jr for Eloipool development
CoinbaserCmd = 'echo -e "1\\n$((%d / 100))\\n1579aXhdwvKZEMrAKoCZhzGuqMa8EonuXU"'

### Settings relating to upstream data providers

# JSON-RPC servers to get block templates from
# See https://en.bitcoin.it/wiki/BIP_0023#Logical_Services for key details
TemplateSources = (
{
'name': 'primary',
'uri': 'http://rpcuser:pass@localhost:9344',
'priority': 0,
'weight': 1,
},
)

# Templates will not be used unless they have an acceptance ratio above this
# Range: 0.00 - 1.00
MinimumTemplateAcceptanceRatio = 0

# No template with a combined total score below this will be used
MinimumTemplateScore = 1

# Set to True if you want shares meeting the upstream target to wait for a
# response from an upstream server before logging them. Otherwise, for such
# shares, upstreamResult will always be True and upstreamRejectReason will
# always be None. Note that enabling this may cause shares to be logged out of
# order, or with the wrong timestamp (if your share logger uses the log-time
# rather than share-time).
DelayLogForUpstream = True

# Bitcoin p2p server for announcing blocks found
#UpstreamBitcoindNode = ('127.0.0.1', 18333)  # testnet
UpstreamBitcoindNode = ('127.0.0.1', 9344)

# Network ID for the primary blockchain
# Other known network IDs can be found at:
#     https://en.bitcoin.it/wiki/Protocol_specification#Message_structure
UpstreamNetworkId = b'\xF9\xBE\xB4\xD9'  # testnet

# Secret username allowed to use setworkaux
#SecretUser = ""

# URI to send gotwork with info for every share submission
#GotWorkURI = ''

# Share hashes must be below this to be submitted to gotwork
GotWorkTarget = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff

# Aim to produce blocks with transaction counts that are a power of two
# This helps avoid any chance of someone abusing CVE-2012-2459 with them
# 1 = cut out feeless transactions; 2 = cut out even fee-included transactions (if possible)
#POT = 2

# Avoid mining feeless transactions except to satisfy POT
# Note this only works if POT is in fact enabled in the first place
Greedy = False

### Settings relating to network services
# Note that Eloipool only supports IPv6 sockets, and if you want to bind to an
# IPv4 address you will need to prepend it with ::ffff: eg ::ffff:192.168.1.2

# Addresses to listen on for JSON-RPC GBT/getwork server
JSONRPCAddresses = (
('', 8337),
)

# Addresses to listen on for Stratum mining server
StratumAddresses = (
('', 3334),
)

# Addresses to listen on for Bitcoin node
# Note this will only be used to distribute blocks the pool finds, nothing else
BitcoinNodeAddresses = (
('', 8338),
)

# Addresses that are allowed to "spoof" from address with the X-Forwarded-For header
TrustedForwarders = ('::ffff:127.0.0.1',)


# Logging of shares:
ShareLogging = (
{
'type': 'logfile',
'filename': 'share-logfile',
'format': "{time} {Q(remoteHost)} {username} {YN(not(rejectReason))} {dash(YN(upstreamResult))} {dash(rejectReason)} {solution}\n",
},
)

### Settings related to poolserver logging

# By default, significant events will be printed to the interactive console
# You can customize your logging using either simple parameters, or Python's advanced logging framework
# Note that using Python's logging framework will override the default console logging!

# To simply log everything to the system log (syslog) as well:
# LogToSysLog = True

# To make a log file:
# LogFile = 'filename.log'

# For a rotating log file:
LogFile = {
'filename': 'filename.log',
'when': 'midnight',
'backupCount': 7,
}
# For details, see:
# http://docs.python.org/3/library/logging.handlers.html#logging.handlers.TimedRotatingFileHandler
19  Other / Beginners & Help / Eloipool AssertionError on: May 16, 2013, 07:11:53 PM
Hi, I have problem with eloipool, my error:
Code:
Traceback (most recent call last):
  File "./eloipool.py", line 80, in <module>
    from bitcoin.txn import Txn
  File "/tmp/eloipool-litecoin-scrypt/bitcoin/txn.py", line 146, in <module>
    _test()
  File "/tmp/eloipool-litecoin-scrypt/bitcoin/txn.py", line 124, in _test
    assert t.txid == b"C\xeczW\x9fUa\xa4*~\x967\xadAVg'5\xa6X\xbe'R\x18\x18\x01\xf7#\xba3\x16\xd2"
AssertionError
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!