BitShares Forum

Other => Graveyard => MemoryCoin => Topic started by: alexxy on December 21, 2013, 01:36:31 pm

Title: Standalone miner
Post by: alexxy on December 21, 2013, 01:36:31 pm
Hi all!

I created standalone miner for MMC. I will release sources when some pool software will be available. It not so optimized but at least it can run for 2 days without crashes and memory leaks.
Title: Re: Standalone miner
Post by: Montaxx on December 21, 2013, 01:40:09 pm
Well, to test a pool it would be great.
Looking forward
Title: Re: Standalone miner
Post by: reorder on December 21, 2013, 04:16:38 pm
Someone can start a not getwork-compatible pool with his own miner to lock users in, this is how it was with PTS.
Title: Re: Standalone miner
Post by: alexxy on December 21, 2013, 04:36:09 pm
Mine uses getwork. I will add staratum support in next versions
Title: Re: Standalone miner
Post by: reorder on December 21, 2013, 05:23:24 pm
Mine uses getwork. I will add staratum support in next versions
You sure, stratum? It is not like it is applicable or useful for PTS/MMC..
Title: Re: Standalone miner
Post by: alexxy on December 21, 2013, 05:33:24 pm
Mine uses getwork. I will add staratum support in next versions
You sure, stratum? It is not like it is applicable or useful for PTS/MMC..

I mean i may add it. Currently it uses getwork also i think its enough.
Title: Re: Standalone miner
Post by: alexxy on December 21, 2013, 06:28:17 pm
For everyone who asked me about miner testing via pm:

I will release sources when some pool sw (e.g. p2pool) will be available
Title: Re: Standalone miner
Post by: ig0tik3d on December 21, 2013, 06:41:35 pm
but if i want try solo mining with miner???
Title: Re: Standalone miner
Post by: pvaladares on December 21, 2013, 07:18:09 pm
For everyone who asked me about miner testing via pm:

I will release sources when some pool sw (e.g. p2pool) will be available

What about releasing just the binary (windows / linux) ?
Title: Re: Standalone miner
Post by: montecristo83 on December 21, 2013, 07:24:00 pm
Great choice. This will encourage people to get a pool going, which is the way it should be!
Title: Re: Standalone miner
Post by: alexxy on December 21, 2013, 07:40:45 pm
For everyone who asked me about miner testing via pm:

I will release sources when some pool sw (e.g. p2pool) will be available

What about releasing just the binary (windows / linux) ?

In principle i can relese 64bit version for linux, not sure about windoze since i dont use it =)
Title: Re: Standalone miner
Post by: pvaladares on December 21, 2013, 07:49:18 pm
I would ask for the 32-bit too (old machine here!) :)
Title: Re: Standalone miner
Post by: Knoyken on December 21, 2013, 08:05:18 pm
For everyone who asked me about miner testing via pm:

I will release sources when some pool sw (e.g. p2pool) will be available

What about releasing just the binary (windows / linux) ?

In principle i can relese 64bit version for linux, not sure about windoze since i dont use it =)

great work looking forward to see it.
Title: Re: Standalone miner
Post by: Montaxx on December 21, 2013, 08:15:55 pm
Binarys would be useful for testing.
Create a new thread if you'll release it and I'll sticky it
Title: Re: Standalone miner
Post by: Grekk on December 21, 2013, 08:35:07 pm
For everyone who asked me about miner testing via pm:

I will release sources when some pool sw (e.g. p2pool) will be available

What about releasing just the binary (windows / linux) ?

In principle i can  64bit version for linux, not sure about windoze since i dont use it =)
Sounds good.
Release for solo mine... I think many pp donate you after that.  :)
Title: Re: Standalone miner
Post by: radiumsoup on December 22, 2013, 03:45:10 am
I am finishing up a pool implementation right now - if you could please PM me with a link to your miner source I would appreciate the opportunity to test. (Actually, I'm heading to bed now, too many consecutive late nights, but if I wake up in the middle of the night like I normally do, hopefully you will have replied by then) ;)
Title: Re: Standalone miner
Post by: cass on December 22, 2013, 07:44:48 am
I am finishing up a pool implementation right now - if you could please PM me with a link to your miner source I would appreciate the opportunity to test. (Actually, I'm heading to bed now, too many consecutive late nights, but if I wake up in the middle of the night like I normally do, hopefully you will have replied by then) ;)

cool - i would appreciate this too
Title: Re: Standalone miner
Post by: radiumsoup on December 22, 2013, 08:41:43 am
awake at 2:40 AM, no PM :( now I'm tired and disappointed ;)

no, but seriously - I may be able to do this in the next 36 hours if I get a miner to test with and if there are no surprises.
Title: Re: Standalone miner
Post by: alexxy on December 22, 2013, 11:01:48 am
awake at 2:40 AM, no PM :( now I'm tired and disappointed ;)

no, but seriously - I may be able to do this in the next 36 hours if I get a miner to test with and if there are no surprises.

check pm
Title: Re: Standalone miner
Post by: rambo on December 22, 2013, 01:39:29 pm
Great!!!We need a pool asap!
Title: Re: Standalone miner
Post by: isaacgoldbourne on December 22, 2013, 01:44:34 pm
Is this pool for real? I am also developing one.
Title: Re: Standalone miner
Post by: radiumsoup on December 22, 2013, 02:20:59 pm
Is this pool for real? I am also developing one.
Yes. I'm quite close. Just need a standalone miner that can do the reference getwork protocol for memorycoins.
Title: Re: Standalone miner
Post by: KillerByte on December 22, 2013, 06:27:16 pm
OK, thats it. I am just going to make my own pool miner and hopefully it does not go to waste.
Title: Re: Standalone miner
Post by: radiumsoup on December 23, 2013, 01:31:43 am
anyone with a (linux) getwork miner? anyone at all? (preferably callable by "miner_executable hostname.of.pool:port username.worker password")

:\

/so very badly now wish I had read that C book someone gave me in 1995.
//hell, I'll settle for a compiled Windows client complete with a trojan at this point.
Title: Re: Standalone miner
Post by: hayer on December 23, 2013, 06:35:10 am
Hi,
Can you give me  a test ?

Currently I run miner on LInux.

Thanks.

Title: Re: Standalone miner
Post by: FreeTrade on December 23, 2013, 01:40:24 pm
I've forked the Coyote miner so that we can have a single repository with the changes required to mod it for MemoryCoin -

https://github.com/memorycoin/coyote_miner

I'm a bit hamstrung because I can't compile it, but let me know any errors with the code compilation errors and I should be able to fix.
Title: Re: Standalone miner
Post by: radiumsoup on December 23, 2013, 02:00:30 pm
sweet - I forked that privately to try my hand at editing it (lol!), but looking at C makes my eyes go all fuzzy. I'll check it out in a few minutes - have to wake up first.
Title: Re: Standalone miner
Post by: radiumsoup on December 23, 2013, 03:51:06 pm
requires bitshares and fc from Invictus to compile. (as described in the readme) cloned those but did not compile (cmake should do that), then did in root folder:
cmake . -DCMAKE_BUILD_TYPE=Release; make
and got the following errors from cmake:
------------------
[ 30%] Built target fc
Scanning dependencies of target gw_miner
[ 30%] Building CXX object CMakeFiles/gw_miner.dir/getwork_miner.cpp.o
[ 31%] Building CXX object CMakeFiles/gw_miner.dir/momentum.cpp.o
/memcoin/memorycoin_miner/momentum.cpp:22:96: error: uint256 has not been declared
  void static SHA512Filler(char *mainMemoryPsuedoRandomData, int threadNumber, int totalThreads,uint256 midHash, char* isComplete){
                                                                                                ^
/memcoin/memorycoin_miner/momentum.cpp: In function void aesSearch(char*, int, int, char*, std::vector<std::pair<unsigned int, unsigned int> >*):
/memcoin/memorycoin_miner/momentum.cpp:67:44: error: GetArg was not declared in this scope
   unsigned int useEVP = GetArg("-useevp", 1);
                                            ^
/memcoin/memorycoin_miner/momentum.cpp:72:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(uint32_t k=startLoc;k<startLoc+searchNumber;k++){
                                      ^
/memcoin/memorycoin_miner/momentum.cpp:59:13: warning: unused variable mainMemoryPsuedoRandomData32 [-Wunused-variable]
   uint32_t* mainMemoryPsuedoRandomData32 = (uint32_t*)mainMemoryPsuedoRandomData;
             ^
/memcoin/memorycoin_miner/momentum.cpp: In function void waitForAllThreadsToComplete(char*, int):
/memcoin/memorycoin_miner/momentum.cpp:152:18: error: MilliSleep was not declared in this scope
    MilliSleep(100);
                  ^
compilation terminated due to -fmax-errors=3.
make[2]: *** [CMakeFiles/gw_miner.dir/momentum.cpp.o] Error 1
make[1]: *** [CMakeFiles/gw_miner.dir/all] Error 2
make: *** [all] Error 2
Title: Re: Standalone miner
Post by: radiumsoup on December 23, 2013, 03:55:59 pm
oh, one other thing: unless I'm reading it wrong (which is likely), port 3838 seems to be hardcoded in there; is there an easy way to make that a default but overridable from the command line args?
Title: Re: Standalone miner
Post by: FreeTrade on December 23, 2013, 04:19:18 pm
             ^
compilation terminated due to -fmax-errors=3.
make[2]: *** [CMakeFiles/gw_miner.dir/momentum.cpp.o] Error 1
make[1]: *** [CMakeFiles/gw_miner.dir/all] Error 2
make: *** [all] Error 2

Thanks! Got fixes in there for those three 3 errors. We'll probably need a few back and forth getting all the errors worked out.
Title: Re: Standalone miner
Post by: FreeTrade on December 23, 2013, 04:21:27 pm
oh, one other thing: unless I'm reading it wrong (which is likely), port 3838 seems to be hardcoded in there; is there an easy way to make that a default but overridable from the command line args?

Yes, but lets try to get all the bugs removed first. Should we have a better hardcoded port for now? Do we need a new port other than 1968 or 1925?
Title: Re: Standalone miner
Post by: radiumsoup on December 23, 2013, 04:31:21 pm
 fatal error: bignum.h: No such file or directory
 #include "bignum.h"
-----
 (would this be better to do in the github issue tracking or here?)

also, (again, unless I'm reading it wrong, which is likely) isn't the hardcoded port 3838 for the miner to get/submit work from a pool? I'm sure each pool operator might want some control over that (edit:) eventually ;)
Title: Re: Standalone miner
Post by: belltown on December 23, 2013, 04:36:10 pm
I'm not sure if this will be of any help. There is this guy who is building his own Primecoin pool. Here is his progress and sources http://www.peercointalk.org/index.php?topic=1673.0
Title: Re: Standalone miner
Post by: FreeTrade on December 23, 2013, 04:44:11 pm
Protoshares uses 3838 as the RPC port, so our RPC is 1925, so that's the one we should probably use so I've made that change. Still hardcoded though. bignum.h update made too. Can post here or github, what ever is more convenient to you.
Title: Re: Standalone miner
Post by: FreeTrade on December 23, 2013, 04:46:16 pm
I'm not sure if this will be of any help. There is this guy who is building his own Primecoin pool. Here is his progress and sources http://www.peercointalk.org/index.php?topic=1673.0

That's very interesting. I'll have a much better chance at compiling c#.
Title: Re: Standalone miner
Post by: radiumsoup on December 23, 2013, 05:32:26 pm
still getting bignum.h missing (checked out twice, once with new clone, just to be sure)

In file included from /memcoin/memorycoin_miner/getwork_miner.cpp:5:0:
/memcoin/memorycoin_miner/momentum.h:1:20: fatal error: bignum.h: No such file or directory
 #include "bignum.h"
Title: Re: Standalone miner
Post by: FreeTrade on December 23, 2013, 05:35:27 pm
Hmm - try clearing out your build folder, and check the momentum.h file that you've got to ensure bignum.h line is changed.
Title: Re: Standalone miner
Post by: balthazr on December 23, 2013, 05:51:11 pm
getting error when build on ubuntu 13, can anyone help :-\
i also tried guide here http://particlephysicsandcode.wordpress.com/2013/03/11/installing-boost-1-52-ubuntu-12-04-fedora/ to install boost 1.54,  it run succeed.
 
Quote
Boost version: 1.53.0

  Boost include path: /usr/include

  Detected version of Boost is too old.  Requested version was 1.54 (or
  newer).
Call Stack (most recent call first):
  CMakeLists.txt:31 (FIND_PACKAGE)
Title: Re: Standalone miner
Post by: radiumsoup on December 23, 2013, 06:08:14 pm
Hmm - try clearing out your build folder, and check the momentum.h file that you've got to ensure bignum.h line is changed.
my bad, I must have missed a step somewhere.

new errors, starting from scratch:
------------------------
Scanning dependencies of target gw_miner
[ 30%] Building CXX object CMakeFiles/gw_miner.dir/getwork_miner.cpp.o
/memcoin/memorycoin_miner/getwork_miner.cpp:8:1: error: sha256 in namespace fc does not name a type
 fc::sha256 Hash( char* b, size_t len )
 ^
/memcoin/memorycoin_miner/getwork_miner.cpp: In function int main(int, char**):
/memcoin/memorycoin_miner/getwork_miner.cpp:58:7: error: sha256 is not a member of fc
       fc::sha256 best;
       ^
/memcoin/memorycoin_miner/getwork_miner.cpp:58:18: error: expected ; before best
       fc::sha256 best;
                  ^
compilation terminated due to -fmax-errors=3.
make[2]: *** [CMakeFiles/gw_miner.dir/getwork_miner.cpp.o] Error 1
make[1]: *** [CMakeFiles/gw_miner.dir/all] Error 2
make: *** [all] Error 2
Title: Re: Standalone miner
Post by: FreeTrade on December 23, 2013, 06:45:11 pm
Okay - new code updated - removed some fc refs.
Title: Re: Standalone miner
Post by: radiumsoup on December 23, 2013, 06:52:50 pm
(using libboost1.54-all-dev, for the record)
-----------------------
[ 31%] Building CXX object CMakeFiles/gw_miner.dir/momentum.cpp.o
/memcoin/memorycoin_miner/momentum.cpp: In function void mc::MilliSleep(int64):
/memcoin/memorycoin_miner/momentum.cpp:21:12: error: boost::this_thread has not been declared
     boost::this_thread::sleep(boost::posix_time::milliseconds(n));
            ^
/memcoin/memorycoin_miner/momentum.cpp:21:38: error: boost::posix_time has not been declared
     boost::this_thread::sleep(boost::posix_time::milliseconds(n));
                                      ^
/memcoin/memorycoin_miner/momentum.cpp: In function void mc::aesSearch(char*, int, int, char*, std::vector<std::pair<unsigned int, unsigned int> >*):
/memcoin/memorycoin_miner/momentum.cpp:89:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(uint32_t k=startLoc;k<startLoc+searchNumber;k++){
                                      ^
/memcoin/memorycoin_miner/momentum.cpp: In function std::vector<std::pair<unsigned int, unsigned int> > mc::momentum_search(uint256, char*, int):
/memcoin/memorycoin_miner/momentum.cpp:190:3: error: CBlockIndex was not declared in this scope
   CBlockIndex* pindexPrev = pindexBest;
   ^
compilation terminated due to -fmax-errors=3.
make[2]: *** [CMakeFiles/gw_miner.dir/momentum.cpp.o] Error 1
make[1]: *** [CMakeFiles/gw_miner.dir/all] Error 2
make: *** [all] Error 2
Title: Re: Standalone miner
Post by: FreeTrade on December 23, 2013, 07:02:21 pm
ok - more fixes checked in.

Also if you can set this to a higher number, we might more errors to fix.
 
-fmax-errors=3
Title: Re: Standalone miner
Post by: radiumsoup on December 24, 2013, 01:45:07 am
sorry for the length of the interval, I had a client that needed attending to.

I cannot seem to get -fmax-errors to work; it treats "-f" as the flag to specify a makefile. I know very little about compiling with gcc other than copying and pasting instructions, so I don't know how to look any further into this.

I still get the same first two errors; I verified by hand that getwork_miner.cpp added the 3 include lines and that line 190 in momentum.cpp is commented out (those are the two changes in git). The third error is different.
-----------
[ 31%] Building CXX object CMakeFiles/gw_miner.dir/momentum.cpp.o
/memcoin/memorycoin_miner/momentum.cpp: In function void mc::MilliSleep(int64):
/memcoin/memorycoin_miner/momentum.cpp:21:12: error: boost::this_thread has not been declared
     boost::this_thread::sleep(boost::posix_time::milliseconds(n));
            ^
/memcoin/memorycoin_miner/momentum.cpp:21:38: error: boost::posix_time has not been declared
     boost::this_thread::sleep(boost::posix_time::milliseconds(n));
                                      ^
/memcoin/memorycoin_miner/momentum.cpp: In function void mc::aesSearch(char*, int, int, char*, std::vector<std::pair<unsigned int, unsigned int> >*):
/memcoin/memorycoin_miner/momentum.cpp:89:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(uint32_t k=startLoc;k<startLoc+searchNumber;k++){
                                      ^
/memcoin/memorycoin_miner/momentum.cpp: In function std::vector<std::pair<unsigned int, unsigned int> > mc::momentum_search(uint256, char*, int):
/memcoin/memorycoin_miner/momentum.cpp:198:3: error: thread_group is not a member of boost
   boost::thread_group* sha512Threads = new boost::thread_group();
   ^
compilation terminated due to -fmax-errors=3.
make[2]: *** [CMakeFiles/gw_miner.dir/momentum.cpp.o] Error 1
make[1]: *** [CMakeFiles/gw_miner.dir/all] Error 2
make: *** [all] Error 2
Title: Re: Standalone miner
Post by: balthazr on December 24, 2013, 03:12:08 am
momemtum.hpp is missing, only momentum.h is exist, which one i can use?

// just pass the "this_thread" not declare by adding some includes in top of momentum.cpp
Title: Re: Standalone miner
Post by: radiumsoup on December 24, 2013, 03:18:45 am
yeah, I know C about as well as I know Hindi. Which is to say, I do not know it at all but the characters look like something I might have seen on TV once.

For me, I need someone to very explicitly say what needs to be done. I mean, I know what an include is, but I do not understand how C works well enough to determine EXACTLY what needs to be included. :\

I know you're trying to be helpful, but it's quite simply not enough to help me, unfortunately.
Title: Re: Standalone miner
Post by: balthazr on December 24, 2013, 03:27:40 am
yeah, I know C about as well as I know Hindi. Which is to say, I do not know it at all but the characters look like something I might have seen on TV once.

For me, I need someone to very explicitly say what needs to be done. I mean, I know what an include is, but I do not understand how C works well enough to determine EXACTLY what needs to be included. :\

I know you're trying to be helpful, but it's quite simply not enough to help me, unfortunately.

so do i, i'm only familiar with windows + visual studio + c#  8)
just trying to get the source and try make build on ubuntu server to see how it going

//btw, just got another block ;D
Title: Re: Standalone miner
Post by: FreeTrade on December 24, 2013, 10:54:48 am
Oops - I put those headers in the wrong file.

Changed now - let's give it another whirl.
Title: Re: Standalone miner
Post by: radiumsoup on December 24, 2013, 02:41:05 pm
Oops - I put those headers in the wrong file.

Changed now - let's give it another whirl.
Much farther now...
-------------------
[ 57%] Building CXX object CMakeFiles/pool_miner.dir/pool_miner.cpp.o
/memcoin/memorycoin_miner/pool_miner.cpp:6:24: fatal error: momentum.hpp: No such file or directory
 #include "momentum.hpp"
                        ^
compilation terminated.
make[2]: *** [CMakeFiles/pool_miner.dir/pool_miner.cpp.o] Error 1
make[1]: *** [CMakeFiles/pool_miner.dir/all] Error 2
make: *** [all] Error 2
-------------------
(yes, momentum.hpp is gone - but momentum.h is there; anticipating a rename, I tried copying [not moving] momentum.h to momentum.hpp, which gives the following)
-------------------
[ 57%] Building CXX object CMakeFiles/pool_miner.dir/pool_miner.cpp.o
/memcoin/memorycoin_miner/pool_miner.cpp: In function void start_work(const stcp_socket_ptr&, work_message, int):
/memcoin/memorycoin_miner/pool_miner.cpp:36:41: error: momentum_search was not declared in this scope
       auto pairs = momentum_search( mid );
                                         ^
/memcoin/memorycoin_miner/pool_miner.cpp:36:41: note: suggested alternative:
In file included from /root/memorycoin_miner/pool_miner.cpp:6:0:
/memcoin/memorycoin_miner/momentum.hpp:4:46: note:   mc::momentum_search
  std::vector< std::pair<uint32_t,uint32_t> > momentum_search( uint256 midHash, char* scratchpad, int totalThreads );
                                              ^
/memcoin/memorycoin_miner/pool_miner.cpp: In function int main(int, char**):
/memcoin/memorycoin_miner/pool_miner.cpp:73:51: error: momentum_search was not declared in this scope
               auto pairs = momentum_search( base  );
                                                   ^
/memcoin/memorycoin_miner/pool_miner.cpp:73:51: note: suggested alternative:
In file included from /root/memorycoin_miner/pool_miner.cpp:6:0:
/memcoin/memorycoin_miner/momentum.hpp:4:46: note:   mc::momentum_search
  std::vector< std::pair<uint32_t,uint32_t> > momentum_search( uint256 midHash, char* scratchpad, int totalThreads );
                                              ^
make[2]: *** [CMakeFiles/pool_miner.dir/pool_miner.cpp.o] Error 1
make[1]: *** [CMakeFiles/pool_miner.dir/all] Error 2
make: *** [all] Error 2
-------------------
Title: Re: Standalone miner
Post by: FreeTrade on December 24, 2013, 04:45:28 pm
Thanks - hopefully down to the last few errors now - uploaded the changes.
Title: Re: Standalone miner
Post by: radiumsoup on December 24, 2013, 06:39:35 pm
[ 57%] Building CXX object CMakeFiles/pool_miner.dir/pool_miner.cpp.o
/memcoin/memorycoin_miner/pool_miner.cpp: In function void start_work(const stcp_socket_ptr&, work_message, int):
/memcoin/memorycoin_miner/pool_miner.cpp:39:54: error: momentum_search was not declared in this scope
       auto pairs = momentum_search( mid,scratchpad,8 );
                                                      ^
/memcoin/memorycoin_miner/pool_miner.cpp:39:54: note: suggested alternative:
In file included from /memcoin/memorycoin_miner/pool_miner.cpp:6:0:
/memcoin/memorycoin_miner/momentum.h:5:46: note:   mc::momentum_search
  std::vector< std::pair<uint32_t,uint32_t> > momentum_search( uint256 midHash, char* scratchpad, int totalThreads );
                                              ^
/memcoin/memorycoin_miner/pool_miner.cpp:51:88: error: no matching function for call to std::basic_string<char>::basic_string(uint256&)
                 std::cout<<std::string(fc::time_point::now())<< " "<<std::string(result)<<"\n";
                                                                                        ^
/memcoin/memorycoin_miner/pool_miner.cpp:51:88: note: candidates are:
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/stdexcept:39,
                 from /usr/include/boost/asio/io_service.hpp:20,
                 from /usr/include/boost/asio/basic_io_object.hpp:19,
                 from /usr/include/boost/asio/basic_socket.hpp:20,
                 from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
                 from /usr/include/boost/asio.hpp:21,
                 from /memcoin/memorycoin_miner/bitcoin.hpp:3,
                 from /memcoin/memorycoin_miner/pool_miner.cpp:1:
/usr/include/c++/4.8/bits/basic_string.h:532:9: note: template<class _InputIterator> std::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&)
         basic_string(_InputIterator __beg, _InputIterator __end,
         ^
/usr/include/c++/4.8/bits/basic_string.h:532:9: note:   template argument deduction/substitution failed:
/memcoin/memorycoin_miner/pool_miner.cpp:51:88: note:   candidate expects 3 arguments, 1 provided
                 std::cout<<std::string(fc::time_point::now())<< " "<<std::string(result)<<"\n";
                                                                                        ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/stdexcept:39,
                 from /usr/include/boost/asio/io_service.hpp:20,
                 from /usr/include/boost/asio/basic_io_object.hpp:19,
                 from /usr/include/boost/asio/basic_socket.hpp:20,
                 from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
                 from /usr/include/boost/asio.hpp:21,
                 from /memcoin/memorycoin_miner/bitcoin.hpp:3,
                 from /memcoin/memorycoin_miner/pool_miner.cpp:1:
/usr/include/c++/4.8/bits/basic_string.h:522:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::initializer_list<_Tp>, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc());
       ^
/usr/include/c++/4.8/bits/basic_string.h:522:7: note:   no known conversion for argument 1 from uint256 to std::initializer_list<char>
/usr/include/c++/4.8/bits/basic_string.h:507:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       basic_string(basic_string&& __str) noexcept
       ^
/usr/include/c++/4.8/bits/basic_string.h:507:7: note:   no known conversion for argument 1 from uint256 to std::basic_string<char>&&
/usr/include/c++/4.8/bits/basic_string.h:497:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::basic_string<_CharT, _Traits, _Alloc>::size_type, _CharT, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
       basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc());
       ^
/usr/include/c++/4.8/bits/basic_string.h:497:7: note:   candidate expects 3 arguments, 1 provided
/usr/include/c++/4.8/bits/basic_string.h:490:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       basic_string(const _CharT* __s, const _Alloc& __a = _Alloc());
       ^
/usr/include/c++/4.8/bits/basic_string.h:490:7: note:   no known conversion for argument 1 from uint256 to const char*
/usr/include/c++/4.8/bits/basic_string.h:483:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
       basic_string(const _CharT* __s, size_type __n,
       ^
/usr/include/c++/4.8/bits/basic_string.h:483:7: note:   candidate expects 3 arguments, 1 provided
/usr/include/c++/4.8/bits/basic_string.h:471:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
       basic_string(const basic_string& __str, size_type __pos,
       ^
/usr/include/c++/4.8/bits/basic_string.h:471:7: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/4.8/bits/basic_string.h:462:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
       basic_string(const basic_string& __str, size_type __pos,
       ^
/usr/include/c++/4.8/bits/basic_string.h:462:7: note:   candidate expects 3 arguments, 1 provided
/usr/include/c++/4.8/bits/basic_string.h:455:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       basic_string(const basic_string& __str);
       ^
/usr/include/c++/4.8/bits/basic_string.h:455:7: note:   no known conversion for argument 1 from uint256 to const std::basic_string<char>&
/usr/include/c++/4.8/bits/basic_string.h:448:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       basic_string(const _Alloc& __a);
       ^
/usr/include/c++/4.8/bits/basic_string.h:448:7: note:   no known conversion for argument 1 from uint256 to const std::allocator<char>&
/usr/include/c++/4.8/bits/basic_string.h:437:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
       basic_string()
       ^
/usr/include/c++/4.8/bits/basic_string.h:437:7: note:   candidate expects 0 arguments, 1 provided
make[2]: *** [CMakeFiles/pool_miner.dir/pool_miner.cpp.o] Error 1
make[1]: *** [CMakeFiles/pool_miner.dir/all] Error 2
make: *** [all] Error 2
Title: Re: Standalone miner
Post by: FreeTrade on December 24, 2013, 10:45:21 pm
Oh dear. I think I'm going to give up on this. Thanks for your assistance, but I think we're still too far off.

Instead I'm going to work on embedding a pool-compatible miner in the main distribution.