GithubHelp home page GithubHelp logo

creepsky / creepminer Goto Github PK

View Code? Open in Web Editor NEW
171.0 33.0 64.0 6.37 MB

Burstcoin C++ CPU and GPU Miner

License: GNU General Public License v3.0

C++ 79.57% C 8.09% CMake 0.76% HTML 3.78% JavaScript 4.87% Shell 0.20% Cuda 1.48% C# 1.24% Batchfile 0.02%
burstcoin burst miner cryptocurrency cuda gpu cpu

creepminer's People

Contributors

4nt1g0 avatar alter3d avatar bkrith avatar brmmm3 avatar bryhardt avatar cohsrt avatar cosminonea avatar creepsky avatar dbeuchler avatar doncode avatar dusansimic avatar harryjph avatar herscht avatar hheexx avatar k06a avatar nitr8 avatar ozdemircili avatar ragetti avatar theblazehen avatar uraymeiviar avatar vitezmisha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

creepminer's Issues

Config file error

Where is the error?

{ "poolUrl": "http://pool.burstcoin.sk:8124", "miningInfoUrl": "http://pool.burstcoin.sk:8124", "walletUrl": "http://pool.burstcoin.sk:8124", "submissionMaxRetry": 3, "timeout": 30, "maxBufferSizeMB": 128, "output": { "progress": true, "debug": false, "nonce found": true, "nonce found plot": false, "nonce confirmed plot": true, "plot done": false, "dir done": false, "last winner": true, "error" : { "request" : false, "response" : false } }, "plots": [ "H:\\Plots" ], "Start Server": true, "serverUrl": "http://192.168.1.2:8126", "miningIntensity": 5, "passphrase" : { "algorithm" : "", "decrypted" : "", "deleteKey" : "", "encrypted" : "", "iterations" : "", "key" : "", "salt" : "", } }

Mining is stopping after 3-4 hours of runtime

Hi,

I've noticed a problem with the creepMiner versions 1.4.3 - 1.4.6:

It looks like after 3-4 hours of mining, creepMiner is stopping minig process.

Webserver is still working. On the console log I can see even new block winners. but mining isn't happening.

After reboot of creepMiner everything works fine again (again for 3-4 hours :))

Here's my configuration and log file:

mining.conf.txt

creepMiner_20170227_072757.696576.log.txt

Currently I'm pointing miner to wallet at localhost, but I've been experiencing this issue using web wallet as well (https://wallet.burst-team.us:8125).

I've been investingating this shortly issue, and it looks like every time mining hangs logfile containg massive amount of plotVerifier logs like this one:

8, src/PlotVerifier.cpp, 109, Debug): Plot verifier is done with work, but not for this block!

What could be a problem here?

I'm running miner on Ubuntu 16.04

Delete the development branch

The purpose of the development branch was to hold (maybe) unstable code. If it gets stable, it should be merged to the master branch.
The problem is, that in reality for every bugfix or enhancement a new branch is created, then merged to the development branch and then to the master branch. The merge to the development branch is redundant and could easily be by-passed by merging directly to the master branch.

Error "zero deadline" in CUDA

From time to time there are errors while mining with GPU (computing interrupts and returns only empty deadline/nonce tuples).

Change nonce submission algorithm

Current nonce submission algorithm is very obtrusive and can cause a flood of requests, if set up so.
New algorithm could be:

[Configuration]
Submission Max Retry: Uint
Timeout: Float
[Program]
while (retry < Submission Max Retry AND not send AND not confirmed)
{
          send(Timeout);
          confirm(Timeout);
}

Multiple plot files handling

Hi,

I have been experimenting with Burst cloud mining with couple thousands of 5-10GB plot files.
All of them are mounted using FUSE driver under certain directory on my filesystem.

The problem I'm experiencing is very low performance of plots reading processes. I believe that cause of this that plot readers are reading files sequentially (and in my scenario parallel approach is better).
I have been experimenting with this problem with grouping plot files into separate folders, and place them separately in mining.conf file like:

"plots": [
        "path_to_directory1",
        "path_to_directory2",
        "path_to_directory3",
        "path_to_directory4",
...
    ],

Unfortunately (no matter how many maxPlotReaders I have selected) performance was the same as when one all of them were placed in the same folder.

I have been able to increase performance when I have scattered plot files into multiple folders (with ~100 of plot files in single directory), and launched multiple instances of creepMiner on the same machine with different mining configurations like:

"plots": [
        "path_to_directory1"
    ],

,

"plots": [
        "path_to_directory2"
    ],

and so on.

With this approach I have been able to increase performance drastically, as well as CPU and RAM :)
I guess that large amount of these resources could be saved if I would use single instance of creepMiner that will spawn multiple plot reading threads that will scan single plot file directory.

I know that creep miner wasn't designed for this kind of usage (generally miners are using couple of plot files instead of thousands of them), but could you implement functionality that will allow scan single plot file directories with multiple reading threads?

Regards

Different colors for output

There should be different colors for all types of outputs.
For example

  • success: green
  • error: red
  • waiting: yellow
  • informations: orange

Also the background should be colored.

Confirmed "wrong" nonce

If a pool has no target deadline and the miner send an invalid nonce, the pool will confirm that nonce (with the calculated deadline of the invalid nonce). Now the miner thinks the invalid nonce is ok.

Instead it should calling out an error, because the calculated deadline of the miner differs from the deadline of the pool.

Add wallet informations

If a wallet url is given, additional informations could be gathered and shown.
For example:

  • winner of last block
  • current balance
  • account names

For this, first HTTPS requests (#25) needs to be implemented.

winning a Block does not show

Hi
I've been running 1.5.0 pre for a day now and I really like it!-)
And its running very stable so far!

However I just won my first Block with it and this does not show on local http!-)
stats

I'm not "Gallon.he.China"! just showing that I have a wallet running.

I'm using your Windows binaries.

Forwarding broken since Commit 668948e (Reworked core)

Since 668948e Miner::getMiningInfo() expects "baseTarget" to be a string. This is true for at least my pool but MinerServer generates MiningInfo with baseTarget being numeric.

Simple fix is to replace extract by convert in Miner::getMiningInfo(). But I am not sure if baseTarget should be a string by design and the MinerServer has to be corrected.

Set 'http' as default scheme

If an URL has no scheme it should be set to 'http' / 'https'.
When saving the config file, the scheme is then prepended automatically.

Cherry pick output parameters

Add an additional level to the information logger to define what informations exactly are printed in the console.

In the config file it should look like this:

"output" : {
    "nonceFound" : true,
    "nonceConfirmed" : true,
    ...
}

Max plot readers

New setting: maxPlotReader (Integer, n >= 0, default = 0).

It sets the amount of simultaneous plot reader, similar to the miningIntensity setting and the plot verifiers.

If maxPlotReader == 0, there is no max and for every plot drive one reader is created.

Otherwise every reader gets a group (all the same sizes +/- 1) of plot drives.

Dev version generate error "Segmentation fault"

Hello.
Compilation of new dev version looks correct:

Adavan@Debian:~/BurstCoin/Creepsky_150$ make
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/MinerData.cpp -o bin/MinerData.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/Account.cpp -o bin/Account.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/MinerServer.cpp -o bin/MinerServer.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/Response.cpp -o bin/Response.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/Socket.cpp -o bin/Socket.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/RequestHandler.cpp -o bin/RequestHandler.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/Request.cpp -o bin/Request.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/MinerConfig.cpp -o bin/MinerConfig.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/PlotGenerator.cpp -o bin/PlotGenerator.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/Deadline.cpp -o bin/Deadline.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/NonceSubmitter.cpp -o bin/NonceSubmitter.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/Wallet.cpp -o bin/Wallet.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/MinerShabal.cpp -o bin/MinerShabal.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/PlotReader.cpp -o bin/PlotReader.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/MinerUtil.cpp -o bin/MinerUtil.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/main.cpp -o bin/main.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/Miner.cpp -o bin/Miner.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -o bin/burst-miner bin/sphlib/sph_shabal.o bin/nxt/nxt_address.o bin/Url.o bin/MinerLogger.o bin/AccountNames.o bin/MinerData.o bin/Account.o bin/MinerServer.o bin/Response.o bin/Socket.o bin/RequestHandler.o bin/Request.o bin/MinerConfig.o bin/PlotGenerator.o bin/Deadline.o bin/NonceSubmitter.o bin/Wallet.o bin/MinerShabal.o bin/PlotReader.o bin/MinerUtil.o bin/main.o bin/Miner.o -L/usr/local/lib -pthread -lPocoFoundation -lPocoNetSSL -lPocoCrypto -lPocoUtil -lPocoNet -lPocoJSON

After run and read configuration file drop down with error message:

Adavan@Debian:~/BurstCoin/Creepsky_150/bin$ ./burst-miner 
17:34:01: Burst miner 1.5.0
17:34:01: ----------------------------------------------
17:34:01: Github:   https://github.com/Creepsky/burst-miner
17:34:01: Author:   Creepsky [[email protected]]
17:34:01: Burst :   BURST-JBKL-ZUAV-UXMB-2G795
17:34:01: ----------------------------------------------
17:34:01: Based on http://github.com/uraymeiviar/burst-miner
17:34:01: author : uray meiviar [ [email protected] ]
17:34:01: please donate to support developments :
17:34:01:  [ Burst   ] BURST-8E8K-WQ2F-ZDZ5-FQWHX
17:34:01:  [ Bitcoin ] 1UrayjqRjSJjuouhJnkczy5AuMqJGRK4b
17:34:01: ----------------------------------------------
17:34:01: using config file : mining.conf
17:34:02: Total plots size: 903 GB
Segmentation fault

... and drop down to terminal.
Computer is working normally, after this crash i again run old stable v146 and working normally.

My config file:

{
    "poolUrl" : "http://pool.burstcoin.sk:8124",
    "miningInfoUrl" : "http://pool.burstcoin.sk:8124",
    "walletUrl" : "https://wallet.burst-team.us:8128",
    "submissionMaxRetry" : 3,
    "timeout" : 30,
    "maxBufferSizeMB" : 10240,
    "output" :
    [
		"+progress",
		"-debug"
    ],
    "plots" : 
    [
        "/home/BurstCoins/plots/"
    ],
    "Start Server": false,
    "serverUrl" : "http://localhost:9000"
}

Test with "Start Server" true or false, but still generate identical error message.

I would like to ask you to fix. Many thanks :).

After that i try it again.

X-Miner Header

Hi Buddy,

i was sent a link here by Nixxda (guelz) i had a request not long ago to add xminer headers and images for each of the different miners. (IceBurst personally requested it so he could see Android miners )

do you want to set your x-Miner header to start with Creepsky and ill add to to the uray source im maintaining for the community. if yes ill add this in now, update the public repo and let the users on the forums know

if you want to get in contact join the burst discord at http://www.discord.io/burstofficial

Mining without plots

Mining without plots should be possible (forward only miner).

Code to change:

Burst::Miner::Miner() -> init of plotReaderThreadPool_

Problem: plotReaderThreadPool_ is initialized with the size of the plot drives. If 0, the app crashes.

Forward nonce only if better than current deadline and vice versa

Some pools charge a fee for submissions that a worse than own best deadline.
Therefore it would be nice if creepMiner would combine the submissions from own mining and connected miners and only forward a request if no other miner (including itself) has already found a better deadline.

Maybe a solution is a common filter for both submission types (ForwardHandler and NonceSubmitter)

Stack Frame error

`27.02.2017 11:47:04 (95, src\MinerData.cpp, 261, Information): --------------------------------------------------
last block winner:
block# 332691
winner-numeric 15154575530379673774
winner-address R27G-6W73-YPVK-FYYM6
winner-name UniBURST Miner 2

27.02.2017 11:47:05 (5, src\NonceSubmitter.cpp, 72, Information): Yey-Burst: nonce submitted (4m 22d 03:46:24)
nonce: 11727163
in H:\plots\10871057679973349262_11413992_409600_409600
27.02.2017 11:47:05 (5, src\NonceSubmitter.cpp, 90, Trace): miner.getBlockheight
27.02.2017 11:47:05 (5, src\NonceSubmitter.cpp, 138, Information): Yey-Burst: nonce confirmed (4m 22d 03:46:24)
nonce: 11727163
in H:\plots\10871057679973349262_11413992_409600_409600
27.02.2017 11:47:06 (7, src\Miner.cpp, 295, Information): Yey-Burst: nonce found (9d 06:54:08)
nonce: 12086671
in: H:\plots\10871057679973349262_11823592_409600_409600
27.02.2017 11:47:06 (5, src\NonceSubmitter.cpp, 48, Information): Yey-Burst: nonce on the way (9d 06:54:08)
27.02.2017 11:47:06 (5, src\NonceSubmitter.cpp, 59, Debug): Submit-loop 1 (9d 06:54:08)
27.02.2017 11:47:06 (9, src\PlotReader.cpp, 179, Information): H:\plots\10871057679973349262_11823592_409600_409600 (100.00 GB) read in 2.574s (~9.71 MB/s)
27.02.2017 11:47:07 (5, src\NonceSubmitter.cpp, 72, Information): Yey-Burst: nonce submitted (9d 06:54:08)
nonce: 12086671
in H:\plots\10871057679973349262_11823592_409600_409600
27.02.2017 11:47:07 (9, src\PlotReader.cpp, 179, Information): H:\plots\10871057679973349262_12233192_409600_409600 (100.00 GB) read in 0.327s (~76.31 MB/s)
27.02.2017 11:47:07 (9, src\PlotReader.cpp, 179, Information): H:\plots\10871057679973349262_12642792_409600_409600 (100.00 GB) read in 0.343s (~72.84 MB/s)
27.02.2017 11:47:07 (5, src\NonceSubmitter.cpp, 90, Trace): miner.getBlockheight
27.02.2017 11:47:07 (5, src\NonceSubmitter.cpp, 138, Information): Yey-Burst: nonce confirmed (9d 06:54:08)
nonce: 12086671
in H:\plots\10871057679973349262_11823592_409600_409600
27.02.2017 11:47:07 (9, src\PlotReader.cpp, 179, Information): H:\plots\10871057679973349262_13052392_409600_409600 (100.00 GB) read in 0.390s (~64.10 MB/s)
27.02.2017 11:47:08 (9, src\PlotReader.cpp, 179, Information): H:\plots\10871057679973349262_13461992_123312_123312 (30.11 GB) read in 0.280s (~26.80 MB/s)
27.02.2017 11:47:08 (9, src\PlotReader.cpp, 179, Information): H:\plots\10871057679973349262_9775592_409600_409600 (100.00 GB) read in 0.249s (~100.16 MB/s)
27.02.2017 11:47:08 (9, src\PlotReader.cpp, 207, Information): Dir H read (10 files, 930.11 GB total) in 6.240s (~37.26 MB/s)
27.02.2017 11:48:04 (0, src\Response.cpp, 51, Error): Error on receiving response!
No message received
27.02.2017 11:48:04 (0, src\Response.cpp, 53, Error): Stackframe
main (in "src\main.cpp", line 39)
Miner::run (in "src\Miner.cpp", line 35)
Miner::getMiningInfo (in "src\Miner.cpp", line 322)
Response::receive (in "src\Response.cpp", line 29)

27.02.2017 11:48:04 (0, src\Miner.cpp, 141, Debug): Could not get mining infos 1/5 times...
27.02.2017 11:48:09 (0, src\Request.cpp, 46, Error): Error on sending request: Connection refused
27.02.2017 11:48:09 (0, src\Request.cpp, 47, Error): Stackframe
main (in "src\main.cpp", line 39)
Miner::run (in "src\Miner.cpp", line 35)
Miner::getMiningInfo (in "src\Miner.cpp", line 322)
Request::send(Poco::Net::HTTPRequest&) (in "src\Request.cpp", line 35)

27.02.2017 11:48:09 (0, src\Miner.cpp, 141, Debug): Could not get mining infos 2/5 times...
27.02.2017 11:48:14 (0, src\Request.cpp, 46, Error): Error on sending request: Connection refused
27.02.2017 11:48:14 (0, src\Request.cpp, 47, Error): Stackframe
main (in "src\main.cpp", line 39)
Miner::run (in "src\Miner.cpp", line 35)
Miner::getMiningInfo (in "src\Miner.cpp", line 322)
Request::send(Poco::Net::HTTPRequest&) (in "src\Request.cpp", line 35)

27.02.2017 11:48:14 (0, src\Miner.cpp, 141, Debug): Could not get mining infos 3/5 times...
27.02.2017 11:48:24 (0, src\Request.cpp, 46, Error): Error on sending request: Connection refused
27.02.2017 11:48:24 (0, src\Request.cpp, 47, Error): Stackframe
main (in "src\main.cpp", line 39)
Miner::run (in "src\Miner.cpp", line 35)
Miner::getMiningInfo (in "src\Miner.cpp", line 322)
Request::send(Poco::Net::HTTPRequest&) (in "src\Request.cpp", line 35)

27.02.2017 11:48:24 (0, src\Miner.cpp, 141, Debug): Could not get mining infos 4/5 times...
27.02.2017 11:48:34 (0, src\Request.cpp, 46, Error): Error on sending request: Connection refused
27.02.2017 11:48:34 (0, src\Request.cpp, 47, Error): Stackframe
main (in "src\main.cpp", line 39)
Miner::run (in "src\Miner.cpp", line 35)
Miner::getMiningInfo (in "src\Miner.cpp", line 322)
Request::send(Poco::Net::HTTPRequest&) (in "src\Request.cpp", line 35)

27.02.2017 11:48:34 (0, src\Miner.cpp, 141, Debug): Could not get mining infos 5/5 times...
27.02.2017 11:48:35 (0, src\Miner.cpp, 148, Error): Could not get block infos!
27.02.2017 11:48:39 (0, src\Request.cpp, 46, Error): Error on sending request: Connection refused
27.02.2017 11:48:39 (0, src\Request.cpp, 47, Error): Stackframe
main (in "src\main.cpp", line 39)
Miner::run (in "src\Miner.cpp", line 35)
Miner::getMiningInfo (in "src\Miner.cpp", line 322)
Request::send(Poco::Net::HTTPRequest&) (in "src\Request.cpp", line 35)

27.02.2017 11:48:39 (0, src\Miner.cpp, 141, Debug): Could not get mining infos 1/5 times...
27.02.2017 11:48:50 (0, src\Request.cpp, 46, Error): Error on sending request: Connection refused
27.02.2017 11:48:50 (0, src\Request.cpp, 47, Error): Stackframe
main (in "src\main.cpp", line 39)
Miner::run (in "src\Miner.cpp", line 35)
Miner::getMiningInfo (in "src\Miner.cpp", line 322)
Request::send(Poco::Net::HTTPRequest&) (in "src\Request.cpp", line 35)

27.02.2017 11:48:50 (0, src\Miner.cpp, 141, Debug): Could not get mining infos 2/5 times...
27.02.2017 11:49:00 (0, src\Request.cpp, 46, Error): Error on sending request: Connection refused
27.02.2017 11:49:00 (0, src\Request.cpp, 47, Error): Stackframe
main (in "src\main.cpp", line 39)
Miner::run (in "src\Miner.cpp", line 35)
Miner::getMiningInfo (in "src\Miner.cpp", line 322)
Request::send(Poco::Net::HTTPRequest&) (in "src\Request.cpp", line 35)

27.02.2017 11:49:00 (0, src\Miner.cpp, 141, Debug): Could not get mining infos 3/5 times...
27.02.2017 11:49:10 (0, src\Request.cpp, 46, Error): Error on sending request: Connection refused
27.02.2017 11:49:10 (0, src\Request.cpp, 47, Error): Stackframe
main (in "src\main.cpp", line 39)
Miner::run (in "src\Miner.cpp", line 35)
Miner::getMiningInfo (in "src\Miner.cpp", line 322)
Request::send(Poco::Net::HTTPRequest&) (in "src\Request.cpp", line 35)

27.02.2017 11:49:10 (0, src\Miner.cpp, 141, Debug): Could not get mining infos 4/5 times...
27.02.2017 11:49:20 (0, src\Request.cpp, 46, Error): Error on sending request: Connection refused
27.02.2017 11:49:20 (0, src\Request.cpp, 47, Error): Stackframe
main (in "src\main.cpp", line 39)
Miner::run (in "src\Miner.cpp", line 35)
Miner::getMiningInfo (in "src\Miner.cpp", line 322)
Request::send(Poco::Net::HTTPRequest&) (in "src\Request.cpp", line 35)

27.02.2017 11:49:20 (0, src\Miner.cpp, 141, Debug): Could not get mining infos 5/5 times...
27.02.2017 11:49:21 (0, src\Miner.cpp, 148, Error): Could not get block infos!`

Related plot files on same device

Concurrent read on the same mechanic HDD (not SSD) slows down the read process.
If you have related plot files that are all located on the same device, but are addressed througth different device paths, the miner separates them as different HDDs and reads simultane on both.
A good example for such a scenario would be RAID or partitioning.

For best performance, related plot files should be combined into a cluster of plot dirs, like this:

{  
    "plots":[  
        [  
            "E:\\Plots",
            "F:\\Plots"
        ],
        "G:\\Plots"
    ]
}

E: and F: are both partitions on the same HDD. G: is independant.
By adding E: and F: to a cluster, only one plot reader at a time will read them.

\/

Strange but usable modifications of config file :

"miningInfo" : "http:\/\/127.0.0.1:8124",
 "submission" : "http:\/\/127.0.0.1:8124",
 "wallet" : "http:\/\/127.0.0.1:8125"

Setup Appveyor

Appveyor needs CUDA to properly compile.
Maybe a appveyor.yaml would be nice.

define differents ports

14:57:26: Pool Host : 192.168.1.42:8234 (192.168.1.42)
14:57:26: Mininginfo URL : 192.168.1.42:8234 (192.168.1.42)

Is it possible to define an info port different than the pool host ?

Error with last release

08:10:49: Burst miner 1.4.0

08:12:51: Error on getting new block-info!
08:12:51: Expect either an object or array at root

Work well with 1.3.1

Dev version unable to compile in Debian

Hello.
I try to compile it in my linux machine, but without success:

adavan@Debian:~/BurstCoin/Creepsky_150$ make
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/sphlib/sph_shabal.cpp -o bin/sphlib/sph_shabal.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/nxt/nxt_address.cpp -o bin/nxt/nxt_address.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/Url.cpp -o bin/Url.o
In file included from src/Url.cpp:1:0:
src/Url.hpp:4:22: fatal error: Poco/URI.h: Adresár alebo súbor neexistuje
 #include <Poco/URI.h>
                      ^
compilation terminated.
Makefile:41: recipe for target 'bin/Url.o' failed
make: *** [bin/Url.o] Error 1

Next i try to run "install-poco.sh", bud this failed with error to:

** Compiling src/CipherFactory.cpp (debug, shared)
g++  -Iinclude -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/CppUnit/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/CppUnit/WinTestRunner/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Foundation/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/XML/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/JSON/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Util/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Net/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Crypto/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/NetSSL_OpenSSL/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Data/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Data/SQLite/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Data/ODBC/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Data/MySQL/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/MongoDB/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Zip/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/PageCompiler/include -I/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/PageCompiler/File2Page/include -Wall -Wno-sign-compare -DPOCO_BUILD_HOST=Cube -DPOCO_TARGET_OSNAME=Linux -DPOCO_TARGET_OSARCH=x86_64  -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL  -g -D_DEBUG -fPIC -c src/CipherFactory.cpp -o /home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Crypto/obj/Linux/x86_64/debug_shared/CipherFactory.o
In file included from include/Poco/Crypto/CipherKeyImpl.h:24:0,
                 from include/Poco/Crypto/CipherKey.h:24,
                 from src/CipherFactory.cpp:19:
include/Poco/Crypto/OpenSSLInitializer.h:26:28: fatal error: openssl/crypto.h: Adresár alebo súbor neexistuje
 #include <openssl/crypto.h>
                            ^
compilation terminated.
/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/build/rules/compile:53: recipe for target '/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Crypto/obj/Linux/x86_64/debug_shared/CipherFactory.o' failed
make[1]: *** [/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Crypto/obj/Linux/x86_64/debug_shared/CipherFactory.o] Error 1
make[1]: Leaving directory '/home/lubos/BurstCoin/Creepsky_150/poco-1.7.6-all/Crypto'
Makefile:201: recipe for target 'Crypto-libexec' failed
make: *** [Crypto-libexec] Error 2

Next i try install "libpoco-dev" package directly from repositories, but too without success:

lubos@Cube:~/BurstCoin/Creepsky_150$ make
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/Url.cpp -o bin/Url.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -IPoco/Net -IPoco/Foundation -IPoco/NetSSL_OpenSSL -IPoco/openssl -IPoco/Crypto -IPoco/Util -IPoco/JSON -c src/MinerLogger.cpp -o bin/MinerLogger.o
src/MinerLogger.cpp: In static member function ‘static void Burst::MinerLogger::printTime()’:
src/MinerLogger.cpp:174:15: error: ‘put_time’ is not a member of ‘std’
  std::cout << std::put_time(std::localtime(&now_c), "%X") << ": ";
               ^
Makefile:41: recipe for target 'bin/MinerLogger.o' failed
make: *** [bin/MinerLogger.o] Error 1

I would like to kindly ask you to fix it. Many thanks.

Popup in deadlines graph on HTTP server

A mouseover popup would be nice, if you hover the bullets in the deadlines graph on the HTTP server. It can show for example the blockheight and the deadline.

Linux ARM version

Is it possible to include ARM support for the miner to run it on devices like the Raspberry Pi / Banana Pi / Odroid / etc?

ipv6 work but not work, but work

Work because ipv6 detected (Wonderfull, you are the first miner to allow that):
10:37:01: Pool Host : 127.0.0.1:8124 (fe80::6c9f:1b0c:89ce:1e3c%18)
10:37:01: Mininginfo URL : 127.0.0.1:8124 (fe80::6c9f:1b0c:89ce:1e3c%18)
Dont work because unknown protocol :
10:37:01: could not send request to host: unknown protocol !
10:37:01: uri:
Work because nonce confirmed :
10:41:45: V4W6-A7MW-9P3R-CEAYM: nonce confirmed (0d 12:57:18)
10:42:23: plot list reader finished reading plot-dir Y

Remove submitter thread

The submitter thread is not necessary, if every nonce is submitted in an own thread.
This should perform better.

Unlimited submission retry

If "submissionMaxRetry" == 0, the creepMiner will send the nonce and wait until

a) confirmation of the nonce
b) new mining info
c) better nonce found

Update the webinterface

informations

The webserver shows so far only found, sent and confirmed nonces and some other infos.
It should show

  • all system informations
  • target deadline
  • all log messages
    • all types except information (every information gets an own json object)
  • the verification process

features

  • Shutdown should be safed with an admin password
  • possibility to view, change and reparse the config
  • view all plot files + dirs
  • Safe the whole webinterface with an user password

After network interferences miner crash

Hello.
After, i think, not sure, network interferences development version of miner freeze.

18:28:19: --------------------------------------------------
18:28:19: last block winner: 
18:28:19: block#             321689
18:28:19: winner-numeric     11097537261713275358
18:28:19: winner-address     BGGY-CYH3-D487-BZL2N
18:28:19: winner-name        hasri-online-wallet-burst
18:28:19: --------------------------------------------------
18:29:02: error on receiving response: Connection reset by peer                 
18:29:02: 
Stackframe

main (in "src/main.cpp", line 38)
Miner::run (in "src/Miner.cpp", line 34)
Miner::getMiningInfo (in "src/Miner.cpp", line 375)
Response::receive (in "src/Response.cpp", line 30)

I would like to ask you to fix this issue. Many thanks

Please check

Im not sure what happening, it's just not reading the plot files but it's showing the block winner. I have to restart the miner for it to work again.

image

here's my config file

{
    "Start Server" : true,
    "logging" : {
        "config" : "information",
        "general" : "information",
        "miner" : "information",
        "nonceSubmitter" : "information",
        "path" : "",
        "plotReader" : "information",
        "plotVerifier" : "information",
        "server" : "fatal",
        "session" : "error",
        "socket" : "off",
        "wallet" : "information"
    },
    "maxBufferSizeMB" : 128,
    "maxPlotReaders" : 0,
    "miningInfoUrl" : "http:\/\/m.burst4all.com:8124",
    "miningIntensity" : 3,
    "passphrase" : {
        "algorithm" : "aes-256-cbc",
        "decrypted" : "",
        "deleteKey" : false,
        "encrypted" : "",
        "iterations" : 0,
        "key" : "",
        "salt" : ""
    },
    "plots" : [
        "H:\\plots"
    ],
    "poolUrl" : "http:\/\/m.burst4all.com:8124",
    "serverUrl" : "http:\/\/192.168.1.2:8080",
    "submissionMaxRetry" : 3,
    "targetDeadline" : "1y 8m 0d 15:00:00",
    "timeout" : 45,
    "walletUrl" : "https:\/\/wallet.burst-team.us:8127"
}

Default configuration

Because the config of the miner changes with some releases, there must be a compatibilty feature that pulls over old settings and creates new ones on the fly.

Releases

When everything is polished, a binary release (windows + linux) needs to be published.

Unable to compile in Debian

When i start compile process by Make, it seems OK, but after few moments generate errors with compilation

adavan@Debian:~/BurstCoin/burst-miner-Creepsky$ make
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -c src/sphlib/sph_shabal.cpp -o bin/sphlib/sph_shabal.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -c src/nxt/nxt_address.cpp -o bin/nxt/nxt_address.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -c src/PoolSockets.cpp -o bin/PoolSockets.o
g++ -O3 -march=native -std=c++14 -Wall -D_REENTRANT -Isrc/rapidjson -Isrc/sphlib -Isrc/nxt -Isrc -c src/Url.cpp -o bin/Url.o
In file included from src/Url.cpp:2:0:
src/MinerUtil.h:19:40: error: ‘array’ in namespace ‘std’ does not name a template type
  std::string byteArrayToStr(const std::array<T, SZ>& arr)
                                        ^
src/MinerUtil.h:19:45: error: expected ‘,’ or ‘...’ before ‘<’ token
  std::string byteArrayToStr(const std::array<T, SZ>& arr)
                                             ^
src/MinerUtil.h: In function ‘std::string Burst::byteArrayToStr(int)’:
src/MinerUtil.h:24:95: error: ‘arr’ was not declared in this scope
    stream << std::setfill('0') << std::setw(sizeof(T) * 2) << std::hex << static_cast<size_t>(arr[i]);
                                                                                               ^
Makefile:37: recipe for target 'bin/Url.o' failed
make: *** [bin/Url.o] Error 1

Using Debian Jessie 8 x64. Thank you for quick solve.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.