Author Topic: Standalone miner  (Read 23483 times)

0 Members and 1 Guest are viewing this topic.

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
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.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
[ 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

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Thanks - hopefully down to the last few errors now - uploaded the changes.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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
-------------------

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Oops - I put those headers in the wrong file.

Changed now - let's give it another whirl.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline balthazr

  • Jr. Member
  • **
  • Posts: 43
    • View Profile
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

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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.

Offline balthazr

  • Jr. Member
  • **
  • Posts: 43
    • View Profile
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

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
ok - more fixes checked in.

Also if you can set this to a higher number, we might more errors to fix.
 
-fmax-errors=3
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
(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

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Okay - new code updated - removed some fc refs.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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

Offline balthazr

  • Jr. Member
  • **
  • Posts: 43
    • View Profile
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)

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Hmm - try clearing out your build folder, and check the momentum.h file that you've got to ensure bignum.h line is changed.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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"

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
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#.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
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.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline belltown

  • Full Member
  • ***
  • Posts: 107
    • View Profile
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
How I've earned 0.088 BTC for making few forum posts on LetsTalkBitcoin - https://bitsharestalk.org/index.php?topic=6684

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
 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 ;)
« Last Edit: December 23, 2013, 04:33:26 pm by radiumsoup »

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
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?
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
             ^
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.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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?

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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.

Offline FreeTrade

  • Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
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.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline hayer

  • Newbie
  • *
  • Posts: 17
    • View Profile
Hi,
Can you give me  a test ?

Currently I run miner on LInux.

Thanks.

« Last Edit: December 23, 2013, 06:36:45 am by hayer »

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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.
« Last Edit: December 23, 2013, 02:18:33 am by radiumsoup »

Offline KillerByte

  • Sr. Member
  • ****
  • Posts: 298
    • View Profile
OK, thats it. I am just going to make my own pool miner and hopefully it does not go to waste.

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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.

Offline isaacgoldbourne

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
Is this pool for real? I am also developing one.
MemoryDice now available! https://bitsharestalk.org/index.php?topic=1886.0
 Vote for me to be CNO of memorycoin if you want these services. Just send 1 satoshi!
CNO: MVTEcno2tbsJWj7AQEyEjgk72j94hbPHFm

Offline rambo

  • Newbie
  • *
  • Posts: 10
    • View Profile
Great!!!We need a pool asap!
PTS:PiGpn2feczAyyzQiBCNrd7aMCTMmWFqGqg
MMC:MBJdzcauFmMTeB7JMsrsJeR9vKDQENuoBC
PPC:PQPZRkbYnPsPPQDFT9ahEvdpBM7BpSYBkS

Offline alexxy

  • Full Member
  • ***
  • Posts: 175
    • View Profile
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
Vote for my delegates! alexxy | lexx
PTS: PmraxfZ852y9oEKrYMLX1ee3e4qRWPUTFC
BTS: alexxy

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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.

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
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
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline radiumsoup

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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) ;)

Offline Grekk

  • Jr. Member
  • **
  • Posts: 29
    • View Profile
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.  :)

Offline Montaxx

  • Moderator
  • Full Member
  • *****
  • Posts: 76
    • View Profile
Binarys would be useful for testing.
Create a new thread if you'll release it and I'll sticky it

Offline Knoyken

  • Newbie
  • *
  • Posts: 11
    • View Profile
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.

Offline pvaladares

  • Full Member
  • ***
  • Posts: 100
    • View Profile
I would ask for the 32-bit too (old machine here!) :)
PTS : PkbJAm9uxuGgC9n2NVwWYs8bvX3Mj8uAg3 | MMC : M91vp33SSVBG7N3X9CbrgMcwSBxTDQeDAb
BTC : 1CrAkkYZrVCnwDKSBw3bcnMSYMakEhfB6N
Trade BTC/PTS @ cryptsy.com

Offline alexxy

  • Full Member
  • ***
  • Posts: 175
    • View Profile
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 =)
Vote for my delegates! alexxy | lexx
PTS: PmraxfZ852y9oEKrYMLX1ee3e4qRWPUTFC
BTS: alexxy

Offline montecristo83

  • Full Member
  • ***
  • Posts: 51
    • View Profile
Great choice. This will encourage people to get a pool going, which is the way it should be!

Offline pvaladares

  • Full Member
  • ***
  • Posts: 100
    • View Profile
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) ?
PTS : PkbJAm9uxuGgC9n2NVwWYs8bvX3Mj8uAg3 | MMC : M91vp33SSVBG7N3X9CbrgMcwSBxTDQeDAb
BTC : 1CrAkkYZrVCnwDKSBw3bcnMSYMakEhfB6N
Trade BTC/PTS @ cryptsy.com

Offline ig0tik3d

  • Full Member
  • ***
  • Posts: 50
    • View Profile
but if i want try solo mining with miner???

Offline alexxy

  • Full Member
  • ***
  • Posts: 175
    • View Profile
For everyone who asked me about miner testing via pm:

I will release sources when some pool sw (e.g. p2pool) will be available
Vote for my delegates! alexxy | lexx
PTS: PmraxfZ852y9oEKrYMLX1ee3e4qRWPUTFC
BTS: alexxy

Offline alexxy

  • Full Member
  • ***
  • Posts: 175
    • View Profile
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.
Vote for my delegates! alexxy | lexx
PTS: PmraxfZ852y9oEKrYMLX1ee3e4qRWPUTFC
BTS: alexxy

Offline reorder

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
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..

Offline alexxy

  • Full Member
  • ***
  • Posts: 175
    • View Profile
Mine uses getwork. I will add staratum support in next versions
Vote for my delegates! alexxy | lexx
PTS: PmraxfZ852y9oEKrYMLX1ee3e4qRWPUTFC
BTS: alexxy

Offline reorder

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
Someone can start a not getwork-compatible pool with his own miner to lock users in, this is how it was with PTS.

Offline Montaxx

  • Moderator
  • Full Member
  • *****
  • Posts: 76
    • View Profile
Well, to test a pool it would be great.
Looking forward

Offline alexxy

  • Full Member
  • ***
  • Posts: 175
    • View Profile
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.
Vote for my delegates! alexxy | lexx
PTS: PmraxfZ852y9oEKrYMLX1ee3e4qRWPUTFC
BTS: alexxy