bitcoin:eloipool.git
9 years agoPort most of HTTPServer to C++ C++
Luke Dashjr [Mon, 28 Jan 2013 18:48:20 +0000 (18:48 +0000)]
Port most of HTTPServer to C++

9 years agoC++ port of merkletree
Luke Dashjr [Mon, 28 Jan 2013 03:09:11 +0000 (03:09 +0000)]
C++ port of merkletree

9 years agoAttempt to port NetworkServer to C++ (it compiles, at least)
Luke Dashjr [Mon, 28 Jan 2013 00:18:03 +0000 (00:18 +0000)]
Attempt to port NetworkServer to C++ (it compiles, at least)

9 years agoPort ScheduleDict (util) to C++
Luke Dashjr [Mon, 28 Jan 2013 00:17:12 +0000 (00:17 +0000)]
Port ScheduleDict (util) to C++

9 years agoRidiculous attempt to port tryErr to C++
Luke Dashjr [Sun, 27 Jan 2013 20:18:19 +0000 (20:18 +0000)]
Ridiculous attempt to port tryErr to C++

9 years agoPort bitcoin/txn to C++
Luke Dashjr [Sun, 27 Jan 2013 06:06:15 +0000 (06:06 +0000)]
Port bitcoin/txn to C++

9 years agoBugfix: Correct C++ dblsha to actually DOUBLE-hash
Luke Dashjr [Sun, 27 Jan 2013 06:05:45 +0000 (06:05 +0000)]
Bugfix: Correct C++ dblsha to actually DOUBLE-hash

9 years agoC++ port of bitcoin/script
Luke Dashjr [Sun, 27 Jan 2013 04:45:00 +0000 (04:45 +0000)]
C++ port of bitcoin/script

9 years agoC++ implementation of b58decode using libblkmaker privates
Luke Dashjr [Sun, 27 Jan 2013 04:42:32 +0000 (04:42 +0000)]
C++ implementation of b58decode using libblkmaker privates

9 years agoC++ port of dblsha using libgcrypt
Luke Dashjr [Sun, 27 Jan 2013 04:41:41 +0000 (04:41 +0000)]
C++ port of dblsha using libgcrypt

9 years agoPort bitcoin/varlen to C++ with some helper macros in new tweaks.h
Luke Dashjr [Sat, 26 Jan 2013 22:30:59 +0000 (22:30 +0000)]
Port bitcoin/varlen to C++ with some helper macros in new tweaks.h

9 years agoUpdate .gitignore
Luke Dashjr [Sat, 26 Jan 2013 21:34:19 +0000 (21:34 +0000)]
Update .gitignore

9 years agoSubstitute Eloipool with Ciloipool++ everywhere, and C++ify copyright notices
Luke Dashjr [Sat, 26 Jan 2013 21:33:02 +0000 (21:33 +0000)]
Substitute Eloipool with Ciloipool++ everywhere, and C++ify copyright notices

Also bump copyrights to 2013

9 years agoRename eloipool.cpp -> ciloipool.cpp
Luke Dashjr [Sat, 26 Jan 2013 21:26:24 +0000 (21:26 +0000)]
Rename eloipool.cpp -> ciloipool.cpp

9 years agoBegin Ciloipool++ port: Rename *.py* to *.cpp*
Luke Dashjr [Sat, 26 Jan 2013 21:23:49 +0000 (21:23 +0000)]
Begin Ciloipool++ port: Rename *.py* to *.cpp*

9 years agoClear input buffer when booting clients
Luke Dashjr [Sun, 13 Jan 2013 17:42:13 +0000 (17:42 +0000)]
Clear input buffer when booting clients

9 years agoStratumServer: Ignore JSON parse errors
Luke Dashjr [Sun, 13 Jan 2013 17:15:10 +0000 (17:15 +0000)]
StratumServer: Ignore JSON parse errors

9 years agoLog User-Agent and IP of JSON-RPC errors
Luke Dashjr [Fri, 11 Jan 2013 21:48:49 +0000 (21:48 +0000)]
Log User-Agent and IP of JSON-RPC errors

9 years agoRevert "Merge branch 'bugfix_race_edge'"
Luke Dashjr [Fri, 14 Dec 2012 01:06:56 +0000 (01:06 +0000)]
Revert "Merge branch 'bugfix_race_edge'"

This reverts commit fe75c6fbbc3e60594c6060368514892b6b83d65e, reversing
changes made to 17d8213c580500ce464bf4a3cb03e3901d046cd0.

9 years agoMerge branch 'bugfix_race_edge'
Luke Dashjr [Tue, 27 Nov 2012 23:01:07 +0000 (23:01 +0000)]
Merge branch 'bugfix_race_edge'

Conflicts:
merklemaker.py

9 years agoBugfix: merkleMaker: Handle an edge race condition
Luke Dashjr [Tue, 27 Nov 2012 23:00:39 +0000 (23:00 +0000)]
Bugfix: merkleMaker: Handle an edge race condition

9 years agoStratumServer: Send clean_work=true if previous job is invalid
Luke Dashjr [Tue, 27 Nov 2012 13:33:16 +0000 (13:33 +0000)]
StratumServer: Send clean_work=true if previous job is invalid

9 years agoStratumServer: Reduce job refresh time to 55 seconds to give 60 second grace window
Luke Dashjr [Tue, 27 Nov 2012 13:27:29 +0000 (13:27 +0000)]
StratumServer: Reduce job refresh time to 55 seconds to give 60 second grace window

9 years agoMerge branch 'bugfix_CMRWait'
Luke Dashjr [Mon, 26 Nov 2012 00:29:37 +0000 (00:29 +0000)]
Merge branch 'bugfix_CMRWait'

Conflicts:
merklemaker.py

9 years agoBugfix: Only put None on old clearMerkleRoots Queue if it was empty, to avoid put...
Luke Dashjr [Mon, 26 Nov 2012 00:29:13 +0000 (00:29 +0000)]
Bugfix: Only put None on old clearMerkleRoots Queue if it was empty, to avoid put blocking if it might be full

9 years agoMerge branch 'bugfix_CMRWait'
Luke Dashjr [Sun, 25 Nov 2012 02:07:48 +0000 (02:07 +0000)]
Merge branch 'bugfix_CMRWait'

Conflicts:
merklemaker.py

9 years agoBugfix: merkleMaker: After replacing clearMerkleRoots Queue, put a None on the old...
Luke Dashjr [Sun, 25 Nov 2012 02:07:07 +0000 (02:07 +0000)]
Bugfix: merkleMaker: After replacing clearMerkleRoots Queue, put a None on the old one to ensure any waiters switch over to the new one

9 years agoMerge branch 'bugfix_badprevblk_startup'
Luke Dashjr [Tue, 20 Nov 2012 05:56:33 +0000 (05:56 +0000)]
Merge branch 'bugfix_badprevblk_startup'

9 years agoBugfix: Initalize merkleMaker().lastBlock so checkShare can check it for prevblk...
Luke Dashjr [Tue, 20 Nov 2012 05:56:27 +0000 (05:56 +0000)]
Bugfix: Initalize merkleMaker().lastBlock so checkShare can check it for prevblk errors

9 years agoMerge branch 'bugfix_rejreasondelayed'
Luke Dashjr [Mon, 19 Nov 2012 23:33:27 +0000 (23:33 +0000)]
Merge branch 'bugfix_rejreasondelayed'

Conflicts:
eloipool.py

9 years agoBugfix: Upstream reject reason variable name consistency
Luke Dashjr [Mon, 19 Nov 2012 23:32:28 +0000 (23:32 +0000)]
Bugfix: Upstream reject reason variable name consistency

9 years agoMove X-Roll-NTime header to jsonrpc_getwork module
Luke Dashjr [Mon, 19 Nov 2012 21:34:35 +0000 (21:34 +0000)]
Move X-Roll-NTime header to jsonrpc_getwork module

9 years agoSupport submitting upstream via old BIP 22 draft getmemorypool
Luke Dashjr [Mon, 19 Nov 2012 21:31:36 +0000 (21:31 +0000)]
Support submitting upstream via old BIP 22 draft getmemorypool

This is mainly to reduce differences between master and loop branch

9 years agoSet bitcoinrpc User-Agent, used for talking to upstream server
Luke Dashjr [Mon, 14 May 2012 01:43:30 +0000 (01:43 +0000)]
Set bitcoinrpc User-Agent, used for talking to upstream server

9 years agoMerge commit '8caa4e1'
Luke Dashjr [Mon, 19 Nov 2012 20:31:56 +0000 (20:31 +0000)]
Merge commit '8caa4e1'

Conflicts:
eloipool.py

9 years agoTree-Merge commit '7cd1c63'
Luke Dashjr [Mon, 19 Nov 2012 20:20:25 +0000 (20:20 +0000)]
Tree-Merge commit '7cd1c63'

Conflicts:
eloipool.py
merklemaker.py

9 years agoMerge commit '84b5cb1'
Luke Dashjr [Mon, 19 Nov 2012 20:19:39 +0000 (20:19 +0000)]
Merge commit '84b5cb1'

Conflicts:
eloipool.py

9 years agoMerge branch 'netsrv_mt_sch'
Luke Dashjr [Mon, 19 Nov 2012 15:47:21 +0000 (15:47 +0000)]
Merge branch 'netsrv_mt_sch'

9 years agoNetworkServer: Bugfix: Only hold schedule lock as needed, in case task itself manipul...
Luke Dashjr [Mon, 19 Nov 2012 15:30:35 +0000 (15:30 +0000)]
NetworkServer: Bugfix: Only hold schedule lock as needed, in case task itself manipulates schedule

9 years agoMerge branch 'netsrv_mt_sch'
Luke Dashjr [Mon, 19 Nov 2012 14:30:02 +0000 (14:30 +0000)]
Merge branch 'netsrv_mt_sch'

9 years agoNetworkServer: Optional support for thread-safe scheduler, needed to cleanly maintain...
Luke Dashjr [Mon, 19 Nov 2012 14:29:53 +0000 (14:29 +0000)]
NetworkServer: Optional support for thread-safe scheduler, needed to cleanly maintain StratumServer's update task

9 years agoMerge branch 'calc_clear_subsidy'
Luke Dashjr [Mon, 19 Nov 2012 14:08:53 +0000 (14:08 +0000)]
Merge branch 'calc_clear_subsidy'

9 years agoBugfix: Create new clear coinbase transaction for each block height, to properly...
Luke Dashjr [Mon, 19 Nov 2012 14:08:26 +0000 (14:08 +0000)]
Bugfix: Create new clear coinbase transaction for each block height, to properly handle subsidy halving

9 years agoMerge branch 'bugfix_MRD_CV'
Luke Dashjr [Mon, 19 Nov 2012 14:05:07 +0000 (14:05 +0000)]
Merge branch 'bugfix_MRD_CV'

Conflicts:
merklemaker.py

9 years agoBugfix: Use a condition variable to avoid getMC from returning invalid data during...
Luke Dashjr [Mon, 19 Nov 2012 14:04:13 +0000 (14:04 +0000)]
Bugfix: Use a condition variable to avoid getMC from returning invalid data during odd unready circumstances

9 years agoMerge branch 'bugfix_switch_height'
Luke Dashjr [Mon, 19 Nov 2012 13:29:58 +0000 (13:29 +0000)]
Merge branch 'bugfix_switch_height'

9 years agoBugfix: Switch clear merkle tree based on correct height comparison
Luke Dashjr [Mon, 19 Nov 2012 13:29:51 +0000 (13:29 +0000)]
Bugfix: Switch clear merkle tree based on correct height comparison

9 years agoStratumServer: Only update job as necessary for avoiding expiration (22 second grace...
Luke Dashjr [Tue, 13 Nov 2012 02:00:05 +0000 (02:00 +0000)]
StratumServer: Only update job as necessary for avoiding expiration (22 second grace time for miners)

9 years agoMerge branch 'bugfix_close_rmsch'
Luke Dashjr [Mon, 12 Nov 2012 01:42:53 +0000 (01:42 +0000)]
Merge branch 'bugfix_close_rmsch'

Conflicts:
jsonrpcserver.py

9 years agoBugfix: Clear SocketHandler._Task when removing it
Luke Dashjr [Mon, 12 Nov 2012 01:40:38 +0000 (01:40 +0000)]
Bugfix: Clear SocketHandler._Task when removing it

Apparently this alone is sufficient to prevent the GC from releasing it

9 years agoBugfix: Need to clear task on close, even when initiated on our end (failure to do...
Luke Dashjr [Mon, 12 Nov 2012 00:44:47 +0000 (00:44 +0000)]
Bugfix: Need to clear task on close, even when initiated on our end (failure to do so prevents the SocketHandler from being garbage collected)

9 years agoMerge branch 'bugfix_del_connections'
Luke Dashjr [Sun, 11 Nov 2012 23:29:31 +0000 (23:29 +0000)]
Merge branch 'bugfix_del_connections'

9 years agoBugfix: NetworkHandler: Delete server.connections entry when we close the connection...
Luke Dashjr [Sun, 11 Nov 2012 23:29:21 +0000 (23:29 +0000)]
Bugfix: NetworkHandler: Delete server.connections entry when we close the connection, not just when the remote host does

9 years agoStratumServer: Include tracebacks with errors, and silence get_transactions KeyError...
Luke Dashjr [Sat, 10 Nov 2012 05:01:08 +0000 (05:01 +0000)]
StratumServer: Include tracebacks with errors, and silence get_transactions KeyError in console

9 years agoSilence WorkLogPruner debug by default
Luke Dashjr [Sat, 10 Nov 2012 04:25:35 +0000 (04:25 +0000)]
Silence WorkLogPruner debug by default

9 years agoMerge branch 'stratum'
Luke Dashjr [Sat, 10 Nov 2012 04:25:02 +0000 (04:25 +0000)]
Merge branch 'stratum'

9 years agoBugfix: Correct stratum sendJob check for default target
Luke Dashjr [Sat, 10 Nov 2012 03:58:06 +0000 (03:58 +0000)]
Bugfix: Correct stratum sendJob check for default target

9 years agoBugfix: StratumServer: Don't force bdiff on targets
Luke Dashjr [Sat, 10 Nov 2012 03:40:51 +0000 (03:40 +0000)]
Bugfix: StratumServer: Don't force bdiff on targets

9 years agoBugfix: Missing stratum imports and proper way to get targetting username
Luke Dashjr [Sat, 10 Nov 2012 02:45:10 +0000 (02:45 +0000)]
Bugfix: Missing stratum imports and proper way to get targetting username

9 years agoMerge commit '2446b63' into stratum
Luke Dashjr [Sat, 10 Nov 2012 02:37:24 +0000 (02:37 +0000)]
Merge commit '2446b63' into stratum

9 years agoBugfix: HTTPServer: Unconditionally clear incoming data buffer on reset_request
Luke Dashjr [Sat, 10 Nov 2012 02:35:54 +0000 (02:35 +0000)]
Bugfix: HTTPServer: Unconditionally clear incoming data buffer on reset_request

9 years agoDisable stratum server when the coinbase is too big for it, and automatically reenabl...
Luke Dashjr [Sat, 10 Nov 2012 02:24:25 +0000 (02:24 +0000)]
Disable stratum server when the coinbase is too big for it, and automatically reenable when it fits again

9 years agoReject stratum submissions from unauthorized workers
Luke Dashjr [Sat, 10 Nov 2012 01:55:33 +0000 (01:55 +0000)]
Reject stratum submissions from unauthorized workers

9 years agoImplement stratum mining.get_transactions method
Luke Dashjr [Sat, 10 Nov 2012 01:53:00 +0000 (01:53 +0000)]
Implement stratum mining.get_transactions method

9 years agoSupport for dynamic targetting on stratum
Luke Dashjr [Sat, 10 Nov 2012 01:34:30 +0000 (01:34 +0000)]
Support for dynamic targetting on stratum

9 years agoReturn integers from target2biff when exact
Luke Dashjr [Fri, 9 Nov 2012 20:09:59 +0000 (20:09 +0000)]
Return integers from target2biff when exact

9 years agoSupport overriding configured DynamicTargetting mode for individual getTarget calls
Luke Dashjr [Fri, 9 Nov 2012 19:18:13 +0000 (19:18 +0000)]
Support overriding configured DynamicTargetting mode for individual getTarget calls

9 years agoAdd DynamicTargetting mode 3, rounding to nearest bdiff
Luke Dashjr [Thu, 8 Nov 2012 04:45:25 +0000 (04:45 +0000)]
Add DynamicTargetting mode 3, rounding to nearest bdiff

9 years agoAdd target2bdiff sharelog function
Luke Dashjr [Thu, 8 Nov 2012 04:42:19 +0000 (04:42 +0000)]
Add target2bdiff sharelog function

9 years agoBugfix: Properly handle "continue waiting" condition in longpolls
Luke Dashjr [Thu, 8 Nov 2012 04:19:00 +0000 (04:19 +0000)]
Bugfix: Properly handle "continue waiting" condition in longpolls

9 years agoMake StratumServer quieter, since it is updating more regularly
Luke Dashjr [Thu, 8 Nov 2012 04:07:55 +0000 (04:07 +0000)]
Make StratumServer quieter, since it is updating more regularly

9 years agoStratumServer: Update job every 30 seconds at least
Luke Dashjr [Thu, 8 Nov 2012 04:00:47 +0000 (04:00 +0000)]
StratumServer: Update job every 30 seconds at least

9 years agoInitial support for stratum miners
Luke Dashjr [Wed, 7 Nov 2012 23:06:23 +0000 (23:06 +0000)]
Initial support for stratum miners

9 years agoBugfix: Ensure sharelogging.sql sticks to a single thread for actual db access
Luke Dashjr [Sat, 7 Apr 2012 21:08:22 +0000 (17:08 -0400)]
Bugfix: Ensure sharelogging.sql sticks to a single thread for actual db access

At least sqlite3 isn't threadsafe

9 years agoMove handle_readbuf from HTTPHandler to SocketHandler
Luke Dashjr [Tue, 6 Nov 2012 03:53:57 +0000 (03:53 +0000)]
Move handle_readbuf from HTTPHandler to SocketHandler

9 years agoAlways send clear transactions for template work, during new block longpoll and if...
Luke Dashjr [Mon, 5 Nov 2012 14:28:09 +0000 (14:28 +0000)]
Always send clear transactions for template work, during new block longpoll and if user has no work yet

9 years agoInclude issuetime key in share data, to allow recording the time a work was issued
Jason Hughes [Mon, 5 Nov 2012 14:29:39 +0000 (14:29 +0000)]
Include issuetime key in share data, to allow recording the time a work was issued

9 years agoMerge branch 'bugfix_gbt_submit'
Luke Dashjr [Tue, 2 Oct 2012 18:25:39 +0000 (18:25 +0000)]
Merge branch 'bugfix_gbt_submit'

9 years agoBugfix: "now" doesn't exist in this scope
Luke Dashjr [Tue, 2 Oct 2012 18:25:36 +0000 (18:25 +0000)]
Bugfix: "now" doesn't exist in this scope

9 years agoBugfix: Fix other submission inconsistencies
Luke Dashjr [Tue, 2 Oct 2012 18:25:00 +0000 (18:25 +0000)]
Bugfix: Fix other submission inconsistencies

9 years agoMerge branch 'bugfix_gbt_submit'
Luke Dashjr [Tue, 2 Oct 2012 17:27:44 +0000 (17:27 +0000)]
Merge branch 'bugfix_gbt_submit'

9 years agoBugfix: For "submit/coinbase" abbreviated shares, provide the transactions needed...
Luke Dashjr [Tue, 2 Oct 2012 17:27:37 +0000 (17:27 +0000)]
Bugfix: For "submit/coinbase" abbreviated shares, provide the transactions needed upstream

9 years agoStore yet more details (failure time and exceptions) on upstream submission failures
Luke Dashjr [Tue, 2 Oct 2012 17:10:12 +0000 (17:10 +0000)]
Store yet more details (failure time and exceptions) on upstream submission failures

9 years agoStore information on upstream block submission failures in new RBFs array
Luke Dashjr [Fri, 28 Sep 2012 01:47:11 +0000 (01:47 +0000)]
Store information on upstream block submission failures in new RBFs array

9 years agoStore share and wld data for blocks in RBDs
Luke Dashjr [Fri, 28 Sep 2012 01:43:29 +0000 (01:43 +0000)]
Store share and wld data for blocks in RBDs

9 years agoMerge branch 'bugfix_predyntarget_jobs'
Luke Dashjr [Sun, 16 Sep 2012 03:04:10 +0000 (03:04 +0000)]
Merge branch 'bugfix_predyntarget_jobs'

9 years agoBugfix: Tolerate pre-dyntarget jobs at the configured default target
Luke Dashjr [Sun, 16 Sep 2012 03:03:52 +0000 (03:03 +0000)]
Bugfix: Tolerate pre-dyntarget jobs at the configured default target

9 years agoMerge branch 'gzip'
Luke Dashjr [Sun, 16 Sep 2012 02:54:01 +0000 (02:54 +0000)]
Merge branch 'gzip'

9 years agoHTTPServer: Implement gzip Content-Encoding for simple responses
Luke Dashjr [Sun, 16 Sep 2012 02:35:51 +0000 (02:35 +0000)]
HTTPServer: Implement gzip Content-Encoding for simple responses

9 years agoMerge branch 'dyntarget'
Luke Dashjr [Thu, 13 Sep 2012 09:03:36 +0000 (09:03 +0000)]
Merge branch 'dyntarget'

Conflicts:
eloipool.py

9 years agoMerge branch 'bip23_submitcbonly'
Luke Dashjr [Tue, 11 Sep 2012 12:22:19 +0000 (12:22 +0000)]
Merge branch 'bip23_submitcbonly'

9 years agoSupport for BIP 23 "submit/coinbase" abbreviation
Luke Dashjr [Tue, 11 Sep 2012 12:21:47 +0000 (12:21 +0000)]
Support for BIP 23 "submit/coinbase" abbreviation

9 years agoMerge branch 'up_bip23_propose'
Luke Dashjr [Mon, 10 Sep 2012 21:33:03 +0000 (21:33 +0000)]
Merge branch 'up_bip23_propose'

9 years agoPropose new blocks with upstream server when it supports BIP 23 Block Proposal
Luke Dashjr [Mon, 10 Sep 2012 21:23:41 +0000 (21:23 +0000)]
Propose new blocks with upstream server when it supports BIP 23 Block Proposal

9 years agoDynamicTargetWindow option, to allow configuring number of seconds for hashrate measu...
Luke Dashjr [Tue, 4 Sep 2012 03:27:36 +0000 (03:27 +0000)]
DynamicTargetWindow option, to allow configuring number of seconds for hashrate measurements

9 years agoDebug print pdiff with retargetting
Luke Dashjr [Tue, 4 Sep 2012 02:55:07 +0000 (02:55 +0000)]
Debug print pdiff with retargetting

9 years agoMerge branch 'worklog_prune'
Luke Dashjr [Sun, 2 Sep 2012 04:40:05 +0000 (04:40 +0000)]
Merge branch 'worklog_prune'

9 years agoWorkLog pruner thread, to clean up old work even when blocks aren't being found
Luke Dashjr [Sun, 2 Sep 2012 04:36:20 +0000 (04:36 +0000)]
WorkLog pruner thread, to clean up old work even when blocks aren't being found

9 years agoShare logging: New target2pdiff function
Luke Dashjr [Sun, 2 Sep 2012 04:07:55 +0000 (04:07 +0000)]
Share logging: New target2pdiff function

Usage: {target2pdiff(target)}

9 years agoImplement power-of-two dynamic targetting
Luke Dashjr [Sun, 2 Sep 2012 03:41:13 +0000 (03:41 +0000)]
Implement power-of-two dynamic targetting