Git Product home page Git Product logo

isf-jclient's People

Contributors

nikez avatar vuapo-eth avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

isf-jclient's Issues

Lower than expected estimated reward

Ever since 1.0.8 I've noticed that one of my spammers running at ~20txs/min has an estimated reward of .6 MIOTA compared to the ~1.5 MIOTA in version 1.0.6.

I didn't think much of it, just assumed rewards were adjusted to efficiently spread the funds but then I check on my other spammer (which was running at ~9txs/min in version 1.0.6) and see that the amount of txs/min doubled to ~19txs/min in 1.0.8.

To add to that, my second spammer had an estimated reward of ~2 MIOTA up almost 1 whole MIOTA, even though it's a 4 core machine compared to the 8 cores of my spammer with an estimated reward of .6 MIOTA.

So basically, I'm wondering if my 8 core machine is doing anything wrong or if the new updates to the spammer changed the way estimated rewards are calculated.

jota compilation failure: Perhaps you are running on a JRE rather than a JDK?

On Window 10, following the steps in readme.md I got the following errors:

jota: Compilation failure: Perhaps you are running on a JRE rather than a JDK?

isf-jclient: Could not resolve dependencies for project com.iotaspam:isf-jclient:jar:1.0.9: Could not find artifact org.iota:jota:jar:0.9.11-SNAPSHOT ->

Installing JDK 9.04 and subsequantly running the command line:
set JAVA_HOME=C:\Program Files\Java\jdk-9.0.4
fixed the issue for me.

Hope that helps.

Wrong System descriptor

Small bug:
While trying to download the go Module through the Script my system got classified as x86 Despite being a amd64 system.

My workaround:
compiling the module on the computer and renaming it to pow_x86_v2.exe

System: Win 10 professional
Cpu: AMD fx 8350

Wrong Password

It always says I have the wrong Password. I reseted it and it still doesn't work. No Copy-Paste, no typing... Am on a MacBook with 10.13.3 in Terminal.

Can't build on ubuntu

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building IOTA Spam Fund Java Client 1.0.5
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.iota:jota:jar:0.9.11-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.375 s
[INFO] Finished at: 2018-02-27T12:58:08-05:00
[INFO] Final Memory: 9M/304M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project isf-jclient: Could not resolve dependencies for project com.iotaspam:isf-jclient:jar:1.0.5: Could not find artifact org.iota:jota:jar:0.9.11-SNAPSHOT -> [Help 1]

Any ideas?
I thought it would be a git submodule issue but I couldn't find any missing dependencies locally. Is it a config issue?

cant download the go pow

[14:33:00] [GOldDggr] [INF] downloading pow_win_amd64_v2.exe from https://github.com/mikrohash/isf-jclient/releases/download/v1.0.9/pow_win_amd64_v2.exe ...
[14:33:01] [GOldDggr] [WRN] unfortunately, the go pow module for your system (Windows 10, amd64) is not available. Please contact us via [email protected], so we can add it to our collection. If you want to compile it yourself, you will find instructions in the README.md
[14:33:01] [GOldDggr] [ERR] could not download go pow module, will use low-performing java pow module instead

the problem is, i dont even have an amd.

1.0.8 - request award error

[17:03:46] [API-Mngr] [DBG] invalid json: <br /><b>Warning</b>: Missing argument 4 for authenticate(), called in /var/www/web28365566/html/isf/api/v1.0/balance.php on line 19 and defined in <b>/var/www/web28365566/html/isf/api/v1.0/authenticate.php</b> on line <b>3</b><br />{"success":true,"error":"","balance":20715,"reward":"15","nonce":1519923825}

[17:03:46] [API-Mngr] [WRN] requesting reward balance failed (error is probably caused by our API, write us at [email protected] if it persists: 'A JSONObject text must begin with '{' at 1 [character 2 line 1]'), trying again in 5 seconds

Why it is paused?

Hi,

Just curious what is the actual reason? You made much progress with confirmation rate lately.

[FileMngr] [ERR] No such file or directory

After some time of running:

[17:30:51] [ISF-API]   [INF] IOTA TICKER:     $1.79/Mi (+0.98% in 24h)     21,702 sat/Mi     MCAP: $4.97B (#10)
[17:30:52] [LogThrd]   [INF] TIME 0:00:00:00 | SPAM       3 txs | SPEED  0.00 txs/min | CNFMD   0/3   txs (00.00%) | BLNCE 0i ($0.00) | EST. RWRD  0.00 Mi ($0.00) per month
[17:31:52] [LogThrd]   [INF] TIME 0:00:01:00 | SPAM       8 txs | SPEED  4.97 txs/min | CNFMD   0/3   txs (00.00%) | BLNCE 0i ($0.00) | EST. RWRD  0.00 Mi ($0.00) per month
[17:31:52] [FileMngr]  [ERR] No such file or directory

java.io.IOException: No such file or directory
	at java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:1012)
	at iota.FileManager.write(FileManager.java:97)
	at iota.ui.UIManager.saveLogs(UIManager.java:65)
	at iota.ui.UIManager.print(UIManager.java:51)
	at iota.ui.UIManager.logPln(UIManager.java:75)
	at iota.ui.UIManager.logInf(UIManager.java:78)
	at iota.LogThread.run(LogThread.java:59)

[17:31:52] [FileMngr]  [DBG] program will be terminated now due to above error

balance is 0

I did about 100 comfirmed transactions, my balance is still 0

pc lags if i select more than 1 thread

Hello,

Whenever i select more than 1 thread, pc gets very slow and sometimes it stalls for 10-15 seconds.
This did not happen on the previous version of iotaspam and i do believe that i can squeze ALOT more out of this cpu/config.

W10
i7-6700k - no overclock
maximus viii impact (mini ITX)
32GB cosrsair 2400
no video.

Thank you for creating this tool.
In case you need other information let me know. I'm more than willing to provide data and help fix this.

[Question] - Start daemon args

There is a way to start java -jar isf-jclient-1.0.2.jar with some arg to say the client to do the start command?

I'm tryng to start with nohup in a server (detached from current shell):

nohup java -jar isf-jclient-1.0.2.jar &

But the client is waiting the Please enter a command [start/rewards/config/debug]

Thread leak

As soon as there are no synced nodes left or so, the spam client forks a lot of processes. This results in a lot of open threads and in my case the whole server is completely unusable (it's not possible to create new threads).

Attached you'll find some graphs of this behaviour.

image
image
image
image
image

Edit: also an excerpt of the log:

[02:56:36] [Logger] [INF] >>> PERFORMANCE REPORT >>> PoW: 01.36s | Efficiency: 92.52% | GetTips: 00.63s | TipPool: 6/9 | Heap: 251/7122/91 MB
[02:56:38] [TimeAbrt] [WRN] action 'broadcasting transaction' took too long and was aborted after 10 seconds (this message only shows up after 10 abortions)
[02:56:39] [TimeAbrt] [WRN] action 'broadcasting transaction' took too long and was aborted after 10 seconds (this message only shows up after 10 abortions)
[02:56:42] [NodeMngr] [WRN] no api available, waiting ...
[02:56:43] [TimeAbrt] [WRN] action 'broadcasting transaction' took too long and was aborted after 10 seconds (this message only shows up after 10 abortions)
[02:56:48] [TimeAbrt] [WRN] action 'broadcasting transaction' took too long and was aborted after 10 seconds (this message only shows up after 10 abortions)
[02:56:57] [NodeMngr] [WRN] no api available, waiting ...
[02:56:59] [TimeAbrt] [WRN] action 'create spam transaction' took too long and was aborted after 30 seconds
[02:57:12] [NodeMngr] [WRN] no api available, waiting ...
[02:57:13] [TimeAbrt] [WRN] action 'broadcasting transaction' took too long and was aborted after 10 seconds (this message only shows up after 10 abortions)

and in the end before reboot:

[06:23:36] [Logger] [INF] >>> PERFORMANCE REPORT >>> PoW: 01.36s | Efficiency: 84.75% | GetTips: 00.63s | TipPool: 6/9 | Heap: 268/7122/197 MB
[06:23:37] [TimeAbrt] [ERR] the program run out of memory and could not create a new thread
[06:23:36] [NodeMngr] [WRN] no api available, waiting ...
[06:23:37] [TimeAbrt] [DBG] Heap: 268/7122/197 MB
[06:23:38] [TimeAbrt] [DBG] Threads: M8/P0/A10704/C2/T5/N5/S0
[06:23:38] [TimeAbrt] [ERR] unable to create new native thread
[06:23:39] [TimeAbrt] [WRN] action 'broadcasting transaction' took too long and was aborted after 10 seconds (this message only shows up after 10 abortions)
[06:23:41] [TimeAbrt] [ERR] the program run out of memory and could not create a new thread
[06:23:41] [TimeAbrt] [WRN] action 'broadcasting transaction' took too long and was aborted after 10 seconds (this message only shows up after 10 abortions)

AlgorithmParameterException

I get the following error using ubuntu 18.04 and oracle jre 8:

java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
[18:27:34] [UpldData] [ERR] null

java.lang.NullPointerException
at java.io.StringReader.(StringReader.java:50)
at org.json.JSONTokener.(JSONTokener.java:94)
at org.json.JSONObject.(JSONObject.java:357)
at isf.spam.UploadDataManager.randomWikipediaArticle(UploadDataManager.java:56)
at isf.spam.UploadDataManager$1.run(UploadDataManager.java:29)

Low Confirmation Rate

The confirmation rate of the spammer (currently 15%) is significantly lower than the average confirmation rate of the tangle (25%). Considering that right now ~80% of spam is created by iotaspam.com spammers, the confirmation rate of transactions that are not created by iotaspam.com spammers sits at approximately 65%:

    ISF         NOT ISF      TOTAL
(80% * 15%) + (20% * 65%) =   25%

Finding the cause for that and improving the isf-jclient confirmation rate, would vastly improve the confirmation rate of the tangle as a whole, since right now the majority of transaction is created by this spammer.

conf php

Can't connect to http://mikrohash.de/isf/api/v1.0/signin.php

Hi!

Is this project alive?
I'm registered user, but can't run spammer jar.
Got error:

java -jar isf-jclient-1.0.6.jar

===== Welcome to the Spam Fund Java Client v1.0.6 ===←[0m
[16:05:37] [Configs]   ←[90m[DBG] loading configurations←[0m
[16:05:37] [Configs]   ←[90m[DBG] signing in using account: '[email protected]'←[0m
[16:05:38] [API-Mngr]  ←[1m←[33m[WRN] problem communicating with http://mikrohash.de/isf/api/v1.0/signin.php←[0m
[16:05:38] [API-Mngr]  ←[1m←[31m[ERR] Connection refused: connect←[0m
←[90m
java.net.ConnectException: Connection refused: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.<init>(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
        at isf.APIManager.request(APIManager.java:36)
        at isf.APIManager.keepSendingUntilSuccess(APIManager.java:128)
        at isf.Configs.load(Configs.java:107)
        at isf.Configs.loadWini(Configs.java:212)
        at isf.Configs.loadOrGenerate(Configs.java:26)
        at isf.Main.main(Main.java:15)
←[0m
[16:05:40] [API-Mngr]  ←[1m←[33m[WRN] signing in failed (could not access 'http://mikrohash.de/isf/api/v1.0/signin.php', please check your internet connection), tryi
ng again in 5 seconds←[0m

But when I run this URL in browser:
https://mikrohash.de/isf/api/v1.0/signin.php

I got JSON

{
  "success": false,
  "error": "you are out of sync (lacking 1519910105 seconds behind), trying again in a few seconds",
  "nonce": 1519910105,
  "error_id": -1
}

So, at least that's not internet connection problem.

Can you help me?

BR, ILay

Crash while writing logfile

Spammer crashes constantly while trying to write logfile on Windows 10 and Ubuntu Xenial:

[17:12:18] [FileMngr] �[1m�[31m[ERR] C:\Users\Admin\Desktop\spammer\logs\2018-02-08_17-11-18.txt (Das System kann den angegebenen Pfad nicht finden)�[0m
�[90m
java.io.FileNotFoundException: C:\Users\Admin\Desktop\spammer\logs\2018-02-08_17-11-18.txt (Das System kann den angegebenen Pfad nicht finden)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at iota.FileManager.write(FileManager.java:96)
at iota.ui.UIManager.saveLogs(UIManager.java:65)
at iota.ui.UIManager.print(UIManager.java:51)
at iota.ui.UIManager.logPln(UIManager.java:75)
at iota.ui.UIManager.logInf(UIManager.java:78)
at iota.LogThread.run(LogThread.java:59)
�[0m
[17:12:18] [FileMngr] �[90m[DBG] program will be terminated now due to above error�[0m

[Feature Request] Resource Limit

An option in config.ini to limit CPU use would be nice.
When i run 2 threads on my Windows machine the OS freezes constantly.

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.