Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bmatusiak
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmatusiak/0054aac2f0c3ffa52dd1 to your computer and use it in GitHub Desktop.
Save bmatusiak/0054aac2f0c3ffa52dd1 to your computer and use it in GitHub Desktop.
cgminer version 3.7.2 - Started: [2014-03-06 12:04:32]
--------------------------------------------------------------------------------
(5s):29.01K (avg):29.68Kh/s | A:8128 R:96 HW:1 WU:27.3/m
ST: 2 SS: 0 NB: 101 LW: 1404 GF: 27 RF: 0
Connected to 192.168.0.17 diff 16 with stratum as user bmatusiak.2
Block: 3dca8a5f... Diff:4 Started: [17:06:47] Best share: 83.8K
--------------------------------------------------------------------------------
[P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit
GPU 0: 55.5C 41% | 29.04K/29.69Kh/s | A:8128 R:96 HW:1 WU: 27.3/m I: 9
--------------------------------------------------------------------------------
[2014-03-06 16:49:20] Stratum from pool 0 detected new block
[2014-03-06 16:50:13] Accepted 0f545010 Diff 17/16 GPU 0
[2014-03-06 16:51:19] Accepted 0cc84ed8 Diff 20/16 GPU 0
[2014-03-06 16:51:53] Accepted 0e79984a Diff 18/16 GPU 0
[2014-03-06 16:52:12] Network diff set to 4
[2014-03-06 16:52:12] Stratum from pool 0 detected new block
[2014-03-06 16:52:31] Accepted 027325eb Diff 104/16 GPU 0
[2014-03-06 16:53:01] Accepted 0fb4733f Diff 16/16 GPU 0
[2014-03-06 16:53:08] Accepted 03ca55eb Diff 68/16 GPU 0
[2014-03-06 16:53:35] Accepted 08f91727 Diff 29/16 GPU 0
[2014-03-06 16:53:38] Accepted ff5c257e Diff 257/16 GPU 0
[2014-03-06 16:54:17] Accepted 085dc23e Diff 31/16 GPU 0
[2014-03-06 16:54:22] Accepted 0a62a8eb Diff 25/16 GPU 0
[2014-03-06 16:55:52] Stratum connection to pool 0 interrupted
[2014-03-06 16:55:52] Pool 0 difficulty changed to 16
[2014-03-06 16:56:16] Accepted 0eb300b4 Diff 17/16 GPU 0
[2014-03-06 16:56:17] Accepted ff7e74c3 Diff 257/16 GPU 0
[2014-03-06 16:56:34] Network diff set to 4
[2014-03-06 16:56:34] Stratum from pool 0 detected new block
[2014-03-06 16:56:39] Accepted 0c1029d0 Diff 21/16 GPU 0
[2014-03-06 16:56:57] Accepted 03d52384 Diff 67/16 GPU 0
[2014-03-06 16:57:11] Accepted 0a6c026b Diff 25/16 GPU 0
[2014-03-06 16:57:32] Accepted 0a5bdd6d Diff 25/16 GPU 0
[2014-03-06 16:57:44] Network diff set to 4
[2014-03-06 16:57:44] Stratum from pool 0 detected new block
[2014-03-06 16:58:06] Accepted 0d401f14 Diff 19/16 GPU 0
[2014-03-06 16:58:12] Accepted 03a795cc Diff 70/16 GPU 0
[2014-03-06 16:58:17] Accepted 0830ea43 Diff 31/16 GPU 0
[2014-03-06 16:58:25] Accepted 43a3f47f Diff 969/16 GPU 0
[2014-03-06 16:58:38] Network diff set to 4
[2014-03-06 16:58:38] Stratum from pool 0 detected new block
[2014-03-06 17:01:20] Stratum connection to pool 0 interrupted
[2014-03-06 17:01:20] Pool 0 difficulty changed to 16
[2014-03-06 17:01:22] Rejected 0cf63a9d Diff 20/16 GPU 0 (low difficulty share)
[2014-03-06 17:01:23] Rejected 09ed8d66 Diff 26/16 GPU 0 (low difficulty share)
[2014-03-06 17:01:56] Accepted 04366b6f Diff 61/16 GPU 0
[2014-03-06 17:02:09] Accepted b15e439f Diff 369/16 GPU 0
[2014-03-06 17:02:11] Accepted 07ea0166 Diff 32/16 GPU 0
[2014-03-06 17:02:20] Accepted 0fde8ea7 Diff 16/16 GPU 0
[2014-03-06 17:02:44] Accepted 0d522568 Diff 19/16 GPU 0
[2014-03-06 17:03:00] Accepted 0f5b0d1e Diff 17/16 GPU 0
[2014-03-06 17:03:28] Network diff set to 4
[2014-03-06 17:03:28] Stratum from pool 0 detected new block
[2014-03-06 17:03:50] Accepted 08b72697 Diff 29/16 GPU 0
[2014-03-06 17:04:00] Network diff set to 4
[2014-03-06 17:04:00] Stratum from pool 0 detected new block
[2014-03-06 17:04:22] Network diff set to 4
[2014-03-06 17:04:22] Stratum from pool 0 detected new block
[2014-03-06 17:04:23] Accepted 0a3f7489 Diff 25/16 GPU 0
[2014-03-06 17:04:44] Accepted 01c4e935 Diff 145/16 GPU 0
[2014-03-06 17:06:24] Accepted 041a7ff5 Diff 62/16 GPU 0
[2014-03-06 17:06:47] Network diff set to 4
[2014-03-06 17:06:47] Stratum from pool 0 detected new block
debug: [client] Client 'bmatusiak.3' disconnected!
Authorize bmatusiak.3:3@127.0.0.1
1394141243828 Valid share submitted by bmatusiak.2
1394141264995 Valid share submitted by bmatusiak.2
1394141265665 Valid share submitted by bmatusiak.3
1394141282785 Valid share submitted by bmatusiak.2
1394141286673 Valid share submitted by bmatusiak.2
1394141297801 Valid share submitted by bmatusiak.3
1394141303919 Valid share submitted by bmatusiak.3
1394141306158 Valid share submitted by bmatusiak.1
debug: [client] Client 'bmatusiak.5' disconnected!
Authorize bmatusiak.5:5@192.168.0.17
1394141319319 Valid share submitted by bmatusiak.2
1394141358481 Valid share submitted by bmatusiak.2
1394141358907 Valid share submitted by bmatusiak.2
debug: [system] Detected updated block transactions
1394141396790 Valid share submitted by bmatusiak.5
1394141426117 Valid share submitted by bmatusiak.2
1394141466372 Valid share submitted by bmatusiak.2
1394141471777 Valid share submitted by bmatusiak.2
debug: [client] Client 'bmatusiak.1' disconnected!
Authorize bmatusiak.1:1@192.168.0.17
debug: [client] Client 'bmatusiak.3' disconnected!
Authorize bmatusiak.3:3@127.0.0.1
debug: [client] Client 'bmatusiak.5' disconnected!
Authorize bmatusiak.5:5@192.168.0.17
1394141525529 Valid share submitted by bmatusiak.1
debug: [system] Detected new block
1394141556402 Valid share submitted by bmatusiak.1
debug: [system] Detected updated block transactions
1394141595971 Valid share submitted by bmatusiak.3
1394141612668 Valid share submitted by bmatusiak.3
1394141612678 Valid share submitted by bmatusiak.3
debug: [client] Client 'bmatusiak.2' disconnected!
Authorize bmatusiak.2:2@192.168.0.17
1394141695705 Valid share submitted by bmatusiak.5
1394141703989 Valid share submitted by bmatusiak.2
1394141705530 Valid share submitted by bmatusiak.5
debug: [client] Client 'bmatusiak.1' disconnected!
Authorize bmatusiak.1:1@192.168.0.17
1394141716875 Valid share submitted by bmatusiak.3
1394141730737 Valid share submitted by bmatusiak.2
debug: [system] Detected updated block transactions
debug: [client] Client 'bmatusiak.3' disconnected!
1394141752842 Valid share submitted by bmatusiak.2
1394141768478 Valid share submitted by bmatusiak.1
1394141772028 Valid share submitted by bmatusiak.2
1394141776676 Valid share submitted by bmatusiak.5
1394141813482 Valid share submitted by bmatusiak.2
1394141825386 Valid share submitted by bmatusiak.5
1394141827798 Valid share submitted by bmatusiak.5
1394141837138 Valid share submitted by bmatusiak.5
1394141866985 Valid share submitted by bmatusiak.1
1394141882581 Valid share submitted by bmatusiak.5
1394141901721 Valid share submitted by bmatusiak.2
debug: [system] Detected updated block transactions
debug: [system] Detected new block
1394142000875 Valid share submitted by bmatusiak.1
debug: [system] Detected updated block transactions
debug: [system] Detected new block
1394142038015 Valid share submitted by bmatusiak.2
1394142082640 Valid share submitted by bmatusiak.2
debug: [system] Detected updated block transactions
1394142092512 Valid share submitted by bmatusiak.2
1394142094966 Valid share submitted by bmatusiak.5
1394142096876 Valid share submitted by bmatusiak.5
1394142116146 Valid share submitted by bmatusiak.1
debug: [system] Detected updated block transactions
1394142138021 Valid share submitted by bmatusiak.2
1394142167613 Valid share submitted by bmatusiak.2
debug: [client] Client 'bmatusiak.5' disconnected!
debug: [client] Client 'bmatusiak.1' disconnected!
Authorize bmatusiak.5:5@192.168.0.17
Authorize bmatusiak.1:1@192.168.0.17
debug: [client] Client 'bmatusiak.2' disconnected!
Authorize bmatusiak.2:2@192.168.0.17
1394142304529 Valid share submitted by bmatusiak.2
1394142318277 Valid share submitted by bmatusiak.5
1394142332548 Valid share submitted by bmatusiak.2
debug: [system] Detected new block
1394142341161 Valid share submitted by bmatusiak.2
1394142368221 Valid share submitted by bmatusiak.1
1394142371753 Valid share submitted by bmatusiak.1
debug: [system] Detected updated block transactions
1394142381741 Valid share submitted by bmatusiak.2
1394142411066 Valid share submitted by bmatusiak.2
1394142425464 Valid share submitted by bmatusiak.1
1394142428515 Valid share submitted by bmatusiak.2
1394142450664 Valid share submitted by bmatusiak.5
1394142461765 Valid share submitted by bmatusiak.5
Authorize bmatusiak.3:3@127.0.0.1
1394142484963 Valid share submitted by bmatusiak.2
1394142493965 Valid share submitted by bmatusiak.2
1394142499453 Valid share submitted by bmatusiak.1
1394142511810 Valid share submitted by bmatusiak.1
1394142558687 Valid share submitted by bmatusiak.3
1394142571264 Valid share submitted by bmatusiak.3
debug: [system] Detected new block
1394142576470 Valid share submitted by bmatusiak.1
1394142589563 Valid share submitted by bmatusiak.3
debug: [system] Detected updated block transactions
1394142629015 Valid share submitted by bmatusiak.2
1394142664576 Valid share submitted by bmatusiak.1
1394142695208 Valid share submitted by bmatusiak.2
1394142722534 Valid share submitted by bmatusiak.3
1394142729075 Valid share submitted by bmatusiak.2
debug: [client] Client 'bmatusiak.5' disconnected!
Authorize bmatusiak.5:5@192.168.0.17
debug: [system] Detected new block
debug: [system] Detected updated block transactions
1394142767551 Valid share submitted by bmatusiak.2
1394142770263 Valid share submitted by bmatusiak.3
1394142778269 Valid share submitted by bmatusiak.5
1394142796948 Valid share submitted by bmatusiak.2
1394142804466 Valid share submitted by bmatusiak.2
1394142830747 Valid share submitted by bmatusiak.2
1394142834068 Valid share submitted by bmatusiak.2
1394142852752 Valid share submitted by bmatusiak.1
1394142866286 Valid share submitted by bmatusiak.1
1394142872953 Valid share submitted by bmatusiak.2
1394142878322 Valid share submitted by bmatusiak.2
debug: [client] Client 'bmatusiak.3' disconnected!
Authorize bmatusiak.3:3@127.0.0.1
debug: [client] Client 'bmatusiak.5' disconnected!
Authorize bmatusiak.5:5@192.168.0.17
debug: [client] Client 'bmatusiak.2' disconnected!
Authorize bmatusiak.2:2@192.168.0.17
debug: [client] Client 'bmatusiak.1' disconnected!
Authorize bmatusiak.1:1@192.168.0.17
1394142992069 Valid share submitted by bmatusiak.2
1394142993489 Valid share submitted by bmatusiak.2
debug: [system] Detected new block
1394143012021 Valid share submitted by bmatusiak.3
1394143015226 Valid share submitted by bmatusiak.2
1394143024317 Valid share submitted by bmatusiak.3
1394143032722 Valid share submitted by bmatusiak.2
debug: [system] Detected updated block transactions
1394143045140 Valid share submitted by bmatusiak.1
1394143047163 Valid share submitted by bmatusiak.2
1394143067844 Valid share submitted by bmatusiak.2
debug: [system] Detected new block
debug: [system] Detected updated block transactions
1394143102439 Valid share submitted by bmatusiak.2
1394143108051 Valid share submitted by bmatusiak.2
1394143113451 Valid share submitted by bmatusiak.2
1394143116566 Valid share submitted by bmatusiak.3
1394143121103 Valid share submitted by bmatusiak.2
debug: [system] Detected new block
debug: [system] Detected updated block transactions
1394143183279 Valid share submitted by bmatusiak.1
debug: [system] Detected updated block transactions
debug: [system] Detected updated block transactions
1394143214075 Valid share submitted by bmatusiak.1
1394143216830 Valid share submitted by bmatusiak.1
1394143219706 Valid share submitted by bmatusiak.5
1394143222142 Valid share submitted by bmatusiak.3
1394143254806 Valid share submitted by bmatusiak.3
1394143292892 Valid share submitted by bmatusiak.3
debug: [client] Client 'bmatusiak.2' disconnected!
Authorize bmatusiak.2:2@192.168.0.17
1394143320667 Valid share submitted by bmatusiak.1
1394143321800 Valid share submitted by bmatusiak.3
1394143332627 Valid share submitted by bmatusiak.2
1394143335286 Valid share submitted by bmatusiak.1
debug: [client] Client 'bmatusiak.5' disconnected!
Authorize bmatusiak.5:5@192.168.0.17
1394143344922 Valid share submitted by bmatusiak.2
1394143345276 Valid share submitted by bmatusiak.3
1394143346727 Valid share submitted by bmatusiak.2
1394143355836 Valid share submitted by bmatusiak.2
1394143366711 Valid share submitted by bmatusiak.1
1394143379433 Valid share submitted by bmatusiak.5
1394143379670 Valid share submitted by bmatusiak.2
1394143395734 Valid share submitted by bmatusiak.2
debug: [system] Detected new block
1394143442801 Valid share submitted by bmatusiak.3
1394143446553 Valid share submitted by bmatusiak.2
debug: [system] Detected new block
rpcuser=rubycoinrpc
rpcpassword=pass
rpcport=9332
rpcallowip=127.0.0.1
daemon=1
server=1
listen=1
var Stratum = require('./node-stratum');
require('./colors');
var pool = Stratum.createPool({
coin: {
name: "Rubycoin",
symbol: "ruby",
algorithm: "scrypt", //or "sha256", "scrypt-jane", "quark", "x11"
reward: "POW", //or "POS"
txMessages: false //or true
},
pool: {
address: "RfEvXf1SY7U29iEzn9dYGXmYQWNTVSNX79",
stratumPort: 3334,
//instanceId: 37, //I recommend not to use this option as a crypto-random one will be generated
difficulty: 16,
blockRefreshInterval: 2000 //milliseconds
},
/* Recommended to have at least two daemon instances running in case one drops out-of-sync
or offline. For redundancy, all instances will be polled for block/transaction updates
and be used for submitting blocks */
daemons: [
{ //main daemon instance
host: "localhost",
port: 9332,
user: "rubycoinrpc",
password: "pass"
},/*
{ //backup daemon instance
host: "localhost",
port: 19335,
user: "testnet",
password: "testnet"
}*/
],
varDiff: {
enabled: false,//true, //set to faese to disable vardiff functionality
minDifficulty: 4, //minimum difficulty. below 16 will cause problems
maxDifficulty: 128, //network difficulty will be used if it is lower than this
targetTime: 30, //target time per share (i.e. try to get 1 share per this many seconds)
retargetTime: 120, //check to see if we should retarget every this many seconds
variancePercent: 20 //allow average time to very this % from target without retarget
/* By default new difficulties will be sent when a new job is available as stratum
protocol (http://mining.bitcoin.cz/stratum-mining) states that new difficulties
"will be applied to every next job received from the server." Some miner software
will almost immediately apply new difficulties. Set mode to fast for difficulty
to be sent immediately. */
//mode: 'fast'
},
p2p: {
enabled: false,
host: "localhost",
port: 19333,
/* Magic value is different for main/testnet and for each coin. It is found in the daemon
source code as the pchMessageStart variable. For example, litecoin mainnet:
http://github.com/litecoin-project/litecoin/blob/85f303d883ffff35238eaea5174b780c950c0ae4/src/main.cpp#L3059
And for litecoin testnet:
http://github.com/litecoin-project/litecoin/blob/85f303d883ffff35238eaea5174b780c950c0ae4/src/main.cpp#L2722-L2725
*/
magic: "fcc1b7dc",
/* Found in src as the PROTOCOL_VERSION variable, for example:
https://github.com/litecoin-project/litecoin/blob/85f303d883ffff35238eaea5174b780c950c0ae4/src/version.h#L28
*/
protocolVersion: 70002
}
}, function(ip, workerName, password, callback){ //stratum authorization function
console.log("Authorize " + workerName + ":" + password + "@" + ip);
callback({
error: null,
authorized: true,
disconnect: false
});
});
pool.on('share', function(isValidShare, isValidBlock, data){
if (isValidBlock)
console.log((new Date().getTime()+' Block found by '+data.worker).green);
else if (isValidShare)
console.log(new Date().getTime()+' Valid share submitted by '+data.worker);
else if (data.solution)
console.log(new Date().getTime()+' We thought a block solution was found but it was rejected by the daemon by '+data.worker);
//else
//console.log(new Date().getTime()+' Invalid share submitted')
//console.log(new Date().getTime()+' share data: ' + JSON.stringify(data));
});
pool.on('log', function(severity, logKey, logText){
var ctext = severity + ': ' + '[' + logKey + '] ' + logText;
if(logText == "Detected new block")
console.log(ctext.red);
else
console.log(ctext.yellow);
});
pool.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment