Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Gumik

#1
Boost version: 1.55.0
Boost include path: /usr/include
Could not find the following static Boost libraries:
        boost_context
Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.
** for a debug build: cmake -DCMAKE_BUILD_TYPE=Debug ..


Seems there is a fcontext.hpp in /usr/include/boost but no context
#2
Thanks just saw your post when the page refreshed, dunno how I missed it !
#3
On debian 7 :

me@valinor:/tmp/coyote_miner$ cmake .
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
  CMake 2.8.10 or higher is required.  You are running version 2.8.9
#4
Little script I wrote :

#!/usr/bin/python2.7
#  Licensed to WTFPL ( http://www.wtfpl.net/about/ )

import sys
import signal
import datetime
import pexpect
import time

cmd = "./jhProtominer"
args = [ "-o", "http://ypool.net:10034",
  "-u", "your_worker",
  "-p", "your_password",
  "-t", "4",
  "-m512" ]

SHARE_LOG = True

if SHARE_LOG:
logfile=open('./ypool.log', 'a', buffering=1)

# Signal handling

def signal_handler(signum,frame):
if protominer.isalive():
global stop
if signum == 2:
#print("\nProgram received SIGINT signal")
protominer.sendintr()
else:
#print("Program received SIGTERM signal")
protominer.terminate()
stop = True

signal.signal(signal.SIGTERM, signal_handler)
signal.signal(signal.SIGINT, signal_handler)

# Main loop

number = 0
stop = False

while not stop:
protominer = pexpect.spawn(cmd,args,timeout=None,logfile=sys.stdout)
line = protominer.readline()
while line:
try:
line = line.decode()
except:
pass
if "Connection to server lost" in line or "Connection attempt failed" in line:
if SHARE_LOG:
lost_time = datetime.datetime.now() \
   .strftime('[ERROR] %Y-%m-%d %H:%M:%S CONNECTION DOWN\n') \
   .encode('utf8')
logfile.write(lost_time)
print ("Connection down")
break
if SHARE_LOG:
if "Share found!" in line:
number += 1
        share = "[INFO] %Y-%m-%d %H:%M:%S SHARE : " + str(number) + "\n"
                                        newshare_time = datetime.datetime.now() \
                                                   .strftime(share) \
                                                   .encode('utf8')
                                        logfile.write(newshare_time)

line = protominer.readline()
if protominer.isalive():
protominer.terminate()
try:
protominer.wait()

except pexpect.ExceptionPexpect, e:
if e.value != 'Cannot wait for dead child process.':
raise
if stop:
print("Exiting...")
else:
if SHARE_LOG:
restart_time = datetime.datetime.now() \
   .strftime('[INFO] %Y-%m-%d %H:%M:%S RESTART\n') \
   .encode('utf8')
logfile.write(restart_time)
print("Restarting in 10s...")
time.sleep(10)

if SHARE_LOG:
logfile.close()


If the connection attempt fails or the connection is lost it restarts the miner in 10s. If the miner is killed ( like with pkill ), it automatically restarts it too. If the script is killed, it ensures that the miner is stopped properly before exiting.
If SHARE_LOG is set to True, each time it finds a share, it logs the time and share number to ypool.log, also logs connection down and restart times ( maybe I ll disable this because when the pool goes down for a long time that's a lot of useless writing ).

If you want to give it a try you need pexpect installed, if you have pip just do pip install pexpect.
#5
Quote from: sword on November 13, 2013, 05:15:42 PM
what 's wrong with my computer?


F:\jhProtominer\64bit>jhProtominer.exe -o ypool.net -u hnzzfj.001 -p x -m512
*****************************************
? jhProtominer (v0.1c)                            ?
? author: jh                                      ?
? http://ypool.net                                ?
*****************************************
Launching miner...
Using 512 megabytes of memory per thread
Using 4 threads
Connected to server using x.pushthrough(xpt) protocol
xpt: Logged in with hnzzfj.001
The miner is configured to use a different algorithm.
Make sure you miner login details are correct


F:\jhProtominer\64bit>jhProtominer -o http://ypool.net:10034  -u hnzzfj.001 -p x -t 4 -m512
*****************************************
? jhProtominer (v0.1c)                            ?
? author: jh                                      ?
? http://ypool.net                                ?
*****************************************
Launching miner...
Using 512 megabytes of memory per thread
Using 4 threads
Connected to server using x.pushthrough(xpt) protocol
xpt: Logged in with hnzzfj.001
The miner is configured to use a different algorithm.
Make sure you miner login details are correct

Seems like you're using your XPM workers, on Ypool you must select PTS as coin mode ( top bar ) and then create your PTS workers on the left ;) 
#6
Just tried -m1024 instead of -m512, seems to change nothing for me collision/min wise.
#7
Quote from: jh00 on November 13, 2013, 08:01:11 AM
Due to the extremely high count of connected workers (over 45000 right now) I have increased the difficulty to find a share by a factor of 4. Everyone will get less shares but the payout should stay about the same.

I began mining yesterday evening. I made 1 PTS the first couple of hours.

4 AM => 1,80 + PTS
11h30 AM => 1.93666266 PTS and 0.37698304 unconfirmed

So basically in 7h30 hours I won less PTS than in an hour 15h ago. Is it me or is there something very wrong here ?
#8
Quote from: RejectKid on November 12, 2013, 08:56:47 PM
is there a way to limit the number of threads?

-t numberofthreads ?
#9
BitShares PTS / Re: Linux Port Available
November 12, 2013, 08:53:48 PM
Quote from: tyeken8 on November 12, 2013, 04:33:46 PM
Hi everyone,

I've port this miner to Linux. It makes ~90cpm on a Intel Xeon E5620([email protected]) and 16GB memory. It's really fast (although the codes are so bad formatted). Thanks jh.

Github
https://github.com/Tydus/jhProtominer/tree/linux-port.

How to use
git clone https://github.com/Tydus/jhProtominer -b linux-port
cd jhProtominer/src/jhProtominer
make CFLAGS="-O3 -march=native"
./jhProtominer -o ypool.net -u tyeken8.1 -p 1 -m512

Known issue
Share invalid on some machines.
Pls check the log to see if the server rejects your share by `Share data time overflow'.
I don't know if this is my bug; I'm working on this now.

Questions
PM me or issue on github.

Donate
BTC: 1PNDpCQhpvqGLFSYVLZH9gfnz1zuM4cmmi
PTS: PrfVTi6z6iZY7p6jGTLqc2AUycWJgDu42D

Nice work thanks ! ;) Could you merge the 1024M patch from the master branch, how much faster is it compared to 512M ?

Tried to compile it on a Raspberry Pi, it compiles without error with make without arguments or even make CFLAGS="-O2 -march=armv6j" but the process is killed after logging :
��������������������������������������������������ͻ
�  jhProtominer (v0.1c)                            �
�  author: jh                                      �
�  http://ypool.net                                �
��������������������������������������������������ͼ
Launching miner...
Using 128 megabytes of memory per thread
Using 1 threads
Connected to server using x.pushthrough(xpt) protocol
xpt: Logged in with Valinor.rpi
Killed


Any idea why ?