NebuTech / NBMiner

GPU Miner for ETH, RVN, BEAM, CFX, ZIL, AE, ERGO
https://nbminer.com
3.18k stars 520 forks source link

is the fresh job param working for trb mining? #152

Open EthanHee opened 4 years ago

EthanHee commented 4 years ago

NBMiner version

 - ----------------------------------------------
 |                         NBMiner                             |
 |              Crypto GPU Miner                     |
 |                            29.1                                     |
 - ----------------------------------------------

mining.notify

{
   "id":0,
   "method":"mining.notify",
   "params":[
      "18317762",   //jobId
      "1224437c631b0be580051b2315b198ac2f5b19413672a39c8f8e8c21b45e92fc",  //challenge
      "37f9f69a1e5a8d1f3f1c6aecb4fd33d2ac24149c",  //coinbase address  
      "965722d710599",  //block difficulty   
      true                               //fresh job
   ]
}

this is my log,it seems like that the fresh job param "true" is not working. when I send the job of 5ece000600000001 to NBMiner, the NBMiner still submit other job

{"id":null,"method":"mining.notify","params":["5ece000600000001","061910c81469731223b6853d006125fcbb29e0bc2c6dc35f6d7810f31e935c07","34d5f9e05321dcb3d52fc6ac0914eaa2df89d590","e9a121",true]}
{"id":3,"result":null,"error":[37,"Stale share",null]}
{"id":3,"result":null,"error":[37,"Stale share",null]}
{"id":3,"method":"mining.submit","params":["wayi","5ece000600000101","0000000022113a1e004d224c"]}
{"id":3,"method":"mining.submit","params":["wayi","5ece000600000101","0000000022113a1e02502f37"]}
{"id":3,"method":"mining.submit","params":["wayi","5ece000600000101","0000000022113a1e03122c64"]}
{"id":3,"method":"mining.submit","params":["wayi","5ece000600000101","0000000022113a1e04797809"]}
{"id":3,"method":"mining.submit","params":["wayi","5ece000600000101","0000000022113a1e06773505"]}
{"id":3,"method":"mining.submit","params":["wayi","5ece000600000101","0000000022113a1e0a291453"]}
{"id":3,"method":"mining.submit","params":["wayi","5ece000600000101","0000000022113a1e0c35342e"]}
{"id":3,"result":null,"error":[37,"Stale share",null]}
{"id":3,"result":null,"error":[37,"Stale share",null]}
{"id":3,"result":null,"error":[37,"Stale share",null]}
{"id":3,"result":null,"error":[37,"Stale share",null]}
{"id":3,"result":null,"error":[37,"Stale share",null]}
{"id":3,"result":null,"error":[37,"Stale share",null]}
{"id":3,"result":null,"error":[37,"Stale share",null]}
nebutech-admin commented 4 years ago

@EthanHee Enabled in single mining, disabled in dual mining.

EthanHee commented 4 years ago

@nebutech-admin I use NBMiner to mine trb only,but the wireshark captures the information shows that the fresh job parameter is disabled .

nebutech-admin commented 4 years ago

@EthanHee How many GPUs are used?

EthanHee commented 4 years ago

@nebutech-admin Only one

nebutech-admin commented 4 years ago

@EthanHee Use 30.x version, add '--verbose --long-format' to cmd option. Then paste the corresponding log here so that I can analyze the reason.

EthanHee commented 4 years ago

sorry for the delay I use the new version,but the problem is still exist

[2020-06-02 10:53:23,764] INFO - ----------------------------------------------
[2020-06-02 10:53:23,764] INFO - |                  NBMiner                   |
[2020-06-02 10:53:23,764] INFO - |              Crypto GPU Miner              |
[2020-06-02 10:53:23,764] INFO - |                    30.2                    |
[2020-06-02 10:53:23,764] INFO - ----------------------------------------------
[2020-06-02 10:53:23,764] INFO - ------------------- System -------------------
[2020-06-02 10:53:23,764] INFO - OS:     Ubuntu 18.04.3 LTS, 5.3.0-51-generic
[2020-06-02 10:53:23,764] INFO - CPU:    Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
[2020-06-02 10:53:23,764] INFO - RAM:    6720 MB / 7891 MB
[2020-06-02 10:53:23,771] INFO - CU_DRV: 10.1, 435.21
[2020-06-02 10:53:23,771] INFO - ------------------- Config -------------------
[2020-06-02 10:53:23,771] INFO - ALGO:   trb
[2020-06-02 10:53:23,771] INFO - URL:    stratum+tcp://192.168.20.229:443
[2020-06-02 10:53:23,771] INFO - USER:   wayi
[2020-06-02 10:53:23,771] INFO - TEMP:   90C
DRM_IOCTL_I915_GEM_APERTURE failed: 无效的参数
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
[2020-06-02 10:53:23,928] INFO - ------------------- Device -------------------
[2020-06-02 10:53:23,928] INFO -  |ID|PCI|  CC|Memory|CU|
[2020-06-02 10:53:23,928] INFO - *| 0|  1|  75| 7979M|46| GeForce RTX 2080
[2020-06-02 10:53:23,928] INFO - ----------------------------------------------
[2020-06-02 10:53:24,028] INFO - NVML initialized.
[2020-06-02 10:53:24,029] INFO - trb - Logging in to 192.168.20.229:443 ...
[2020-06-02 10:53:24,029] INFO - ---- {"id":1,"method":"mining.subscribe","params":["NBMiner/30.2",null]}
[2020-06-02 10:53:24,029] INFO - ---- {"id":2,"method":"mining.authorize","params":["wayi",""]}
[2020-06-02 10:53:24,031] INFO - ++++ {"error":null,"id":1,"result":["null","01000000",12]}
[2020-06-02 10:53:24,031] INFO - ++++ {"error":null,"id":2,"result":true}
[2020-06-02 10:53:24,031] INFO - ++++ {"id":null,"method":"mining.set_difficulty","params":["400000"]}
[2020-06-02 10:53:24,031] INFO - ++++ {"id":null,"method":"mining.notify","params":["5ed5bf1700000001","20b776a939e0b03eb77e724e09a71044cd242b5bc49e5b78f6d830bdd503596a","3b05d5be9410f5d977d84098f102c333349a6180","57933",false]}
[2020-06-02 10:53:24,031] INFO - trb - Login succeeded.
[2020-06-02 10:53:24,031] INFO - trb - New job: 192.168.20.229:443, ID: 00000001, DIFF: 4.194M
[2020-06-02 10:53:24,031] INFO - API:  0.0.0.0:22333
[2020-06-02 10:53:24,031] INFO - API server started.
[2020-06-02 10:53:24,038] INFO - ++++ {"id":null,"method":"mining.notify","params":["5ed5bf1700000001","20b776a939e0b03eb77e724e09a71044cd242b5bc49e5b78f6d830bdd503596a","3b05d5be9410f5d977d84098f102c333349a6180","57933",false]}
[2020-06-02 10:53:26,271] INFO - Device 0 started, Free mem = 7833 MB.
[2020-06-02 10:53:43,587] INFO - trb - 0: 808.9 Mh/s
[2020-06-02 10:53:54,014] INFO - ++++ {"id":null,"method":"mining.notify","params":["5ed5bf3500000001","20b776a939e0b03eb77e724e09a71044cd242b5bc49e5b78f6d830bdd503596a","3b05d5be9410f5d977d84098f102c333349a6180","57933",false]}
[2020-06-02 10:53:54,014] INFO - trb - New job: 192.168.20.229:443, ID: 00000001, DIFF: 4.194M
[2020-06-02 10:54:03,587] INFO - trb - 0: 804.9 Mh/s
[2020-06-02 10:54:23,587] INFO - trb - 0: 800.4 Mh/s
[2020-06-02 10:54:23,990] INFO - ++++ {"id":null,"method":"mining.set_difficulty","params":["200000"]}
[2020-06-02 10:54:23,990] INFO - ++++ {"id":null,"method":"mining.notify","params":["5ed5bf5300000001","20b776a939e0b03eb77e724e09a71044cd242b5bc49e5b78f6d830bdd503596a","3b05d5be9410f5d977d84098f102c333349a6180","57933",false]}
[2020-06-02 10:54:23,990] INFO - trb - New job: 192.168.20.229:443, ID: 00000001, DIFF: 2.097M
[2020-06-02 10:54:43,587] INFO - trb - 0: 797.8 Mh/s
[2020-06-02 10:54:54,068] INFO - ++++ {"id":null,"method":"mining.set_difficulty","params":["40000"]}
[2020-06-02 10:54:54,068] INFO - ++++ {"id":null,"method":"mining.notify","params":["5ed5bf7100000001","20b776a939e0b03eb77e724e09a71044cd242b5bc49e5b78f6d830bdd503596a","3b05d5be9410f5d977d84098f102c333349a6180","57933",false]}
[2020-06-02 10:54:54,068] INFO - trb - New job: 192.168.20.229:443, ID: 00000001, DIFF: 262.1K
[2020-06-02 10:54:54,163] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000005b020f4e0e011757"]}
[2020-06-02 10:54:54,163] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000005b020f4e0e064c50"]}
[2020-06-02 10:54:54,163] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000005b020f4e0e5d3f60"]}
[2020-06-02 10:54:54,163] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000005b020f4e0f181768"]}
[2020-06-02 10:54:54,163] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000005b020f4e0f1a4325"]}
[2020-06-02 10:54:54,163] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000005b020f4e0f2b0344"]}
[2020-06-02 10:54:54,163] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000005b020f4e0f310169"]}
[2020-06-02 10:54:54,163] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000005b020f4e0f3b5e6d"]}
[2020-06-02 10:54:54,163] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000005b020f4e0f4a5d45"]}
[2020-06-02 10:54:54,165] INFO - ++++ {"error":null,"id":3,"result":true}
[2020-06-02 10:54:54,165] INFO - ++++ {"id":null,"method":"mining.notify","params":["5ed5bf7e00000001","20b776a939e0b03eb77e724e09a71044cd242b5bc49e5b78f6d830bdd503596a","e76d1ee987786c0417250631a5af232aa5e2c875","57933",true]}
[2020-06-02 10:54:54,165] INFO - trb - #1 Share accepted, 2 ms. [DEVICE 0, #1]
[2020-06-02 10:54:54,165] INFO - trb - New job: 192.168.20.229:443, ID: 00000001, DIFF: 262.1K
[2020-06-02 10:54:54,168] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,168] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,168] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,168] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,168] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,168] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,168] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,168] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,168] INFO - trb - #1 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #1]
[2020-06-02 10:54:54,168] INFO - trb - #2 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #2]
[2020-06-02 10:54:54,168] INFO - trb - #3 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #3]
[2020-06-02 10:54:54,168] INFO - trb - #4 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #4]
[2020-06-02 10:54:54,168] INFO - trb - #5 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #5]
[2020-06-02 10:54:54,168] INFO - trb - #6 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #6]
[2020-06-02 10:54:54,168] INFO - trb - #7 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #7]
[2020-06-02 10:54:54,168] INFO - trb - #8 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #8]
[2020-06-02 10:54:54,205] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0d6f1e23"]}
[2020-06-02 10:54:54,205] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0d753b73"]}
[2020-06-02 10:54:54,205] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0e1e1721"]}
[2020-06-02 10:54:54,205] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0e433a3b"]}
[2020-06-02 10:54:54,205] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0e4e6f7c"]}
[2020-06-02 10:54:54,206] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0e5e421c"]}
[2020-06-02 10:54:54,206] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0e6b5a40"]}
[2020-06-02 10:54:54,206] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0e705976"]}
[2020-06-02 10:54:54,206] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0f086027"]}
[2020-06-02 10:54:54,206] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0f233f3f"]}
[2020-06-02 10:54:54,206] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0f42055e"]}
[2020-06-02 10:54:54,206] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0f542135"]}
[2020-06-02 10:54:54,206] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0f5e3126"]}
[2020-06-02 10:54:54,206] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0f6d2a37"]}
[2020-06-02 10:54:54,206] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000006d260c4c0f732d23"]}
[2020-06-02 10:54:54,206] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,206] INFO - trb - #9 Share rejected: {"error":[37,"Stale share",null]}, 1 ms. [DEVICE 0, #9]
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,210] INFO - trb - #10 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #10]
[2020-06-02 10:54:54,210] INFO - trb - #11 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #11]
[2020-06-02 10:54:54,210] INFO - trb - #12 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #12]
[2020-06-02 10:54:54,210] INFO - trb - #13 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #13]
[2020-06-02 10:54:54,210] INFO - trb - #14 Share rejected: {"error":[37,"Stale share",null]}, 4 ms. [DEVICE 0, #14]
[2020-06-02 10:54:54,210] INFO - trb - #15 Share rejected: {"error":[37,"Stale share",null]}, 4 ms. [DEVICE 0, #15]
[2020-06-02 10:54:54,210] INFO - trb - #16 Share rejected: {"error":[37,"Stale share",null]}, 4 ms. [DEVICE 0, #16]
[2020-06-02 10:54:54,210] INFO - trb - #17 Share rejected: {"error":[37,"Stale share",null]}, 4 ms. [DEVICE 0, #17]
[2020-06-02 10:54:54,210] INFO - trb - #18 Share rejected: {"error":[37,"Stale share",null]}, 4 ms. [DEVICE 0, #18]
[2020-06-02 10:54:54,210] INFO - trb - #19 Share rejected: {"error":[37,"Stale share",null]}, 4 ms. [DEVICE 0, #19]
[2020-06-02 10:54:54,210] INFO - trb - #20 Share rejected: {"error":[37,"Stale share",null]}, 4 ms. [DEVICE 0, #20]
[2020-06-02 10:54:54,211] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,211] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,211] INFO - trb - #21 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #21]
[2020-06-02 10:54:54,211] INFO - trb - #22 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #22]
[2020-06-02 10:54:54,211] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,211] INFO - trb - #23 Share rejected: {"error":[37,"Stale share",null]}, 5 ms. [DEVICE 0, #23]
[2020-06-02 10:54:54,247] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000003b1e320b0f476a31"]}
[2020-06-02 10:54:54,249] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,249] INFO - trb - #24 Share rejected: {"error":[37,"Stale share",null]}, 1 ms. [DEVICE 0, #24]
[2020-06-02 10:54:54,290] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7e00000001","000000000e0e66260f7d0247"]}
[2020-06-02 10:54:54,291] INFO - ++++ {"error":null,"id":3,"result":true}
[2020-06-02 10:54:54,291] INFO - ++++ {"id":null,"method":"mining.notify","params":["5ed5bf7100000001","20b776a939e0b03eb77e724e09a71044cd242b5bc49e5b78f6d830bdd503596a","3b05d5be9410f5d977d84098f102c333349a6180","57933",true]}
[2020-06-02 10:54:54,291] INFO - trb - #2 Share accepted, 1 ms. [DEVICE 0, #2]
[2020-06-02 10:54:54,292] INFO - trb - New job: 192.168.20.229:443, ID: 00000001, DIFF: 262.1K
[2020-06-02 10:54:54,293] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7e00000001","000000006c2b1a2600111f69"]}
[2020-06-02 10:54:54,293] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7e00000001","000000006c2b1a26003d3c34"]}
[2020-06-02 10:54:54,294] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7e00000001","000000006c2b1a26006d2e05"]}
[2020-06-02 10:54:54,294] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,294] INFO - trb - #25 Share rejected: {"error":[37,"Stale share",null]}, 1 ms. [DEVICE 0, #25]
[2020-06-02 10:54:54,295] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,295] INFO - ++++ {"error":[37,"Stale share",null],"id":3,"result":null}
[2020-06-02 10:54:54,295] INFO - trb - #26 Share rejected: {"error":[37,"Stale share",null]}, 2 ms. [DEVICE 0, #26]
[2020-06-02 10:54:54,295] INFO - trb - #27 Share rejected: {"error":[37,"Stale share",null]}, 1 ms. [DEVICE 0, #27]
[2020-06-02 10:54:54,336] INFO - ---- {"id":3,"method":"mining.submit","params":["wayi","5ed5bf7100000001","000000003b0a455f0e6d1024"]}
nebutech-admin commented 4 years ago

@EthanHee The problem is the difficulty is too low. A typical 2080 can mine TRB at 800M/s or higher. And the way NBMiner handle fresh job, only terminates the current job bactch that GPU is running, but will still submit those shares that has already be computed. Put in short, increase the difficulty of your local pool, and try again. An ideal difficulty for test should be 4G or larger.

EthanHee commented 4 years ago

@nebutech-admin OK,thank you for your answer. I will try much more difficult job later.

Kafila commented 2 years ago

Same here only on one card