Author Topic: [ANN] Huntercoin Core - ready for first testing  (Read 9629 times)

domob

  • Developer
  • Sr. Member
  • *****
  • Posts: 285
    • View Profile
[ANN] Huntercoin Core - ready for first testing
« on: April 16, 2016, 06:26:05 PM »
After quite a long time, I think that Huntercoin Core is now ready for first "real" testing on mainnet, if you are brave enough.  I've done some tests with the character "domob", and all seemed to be working so far.  The client should be ready for playing (command-line only, so as a backend for something like Mithril or Unity), but do not use it for mining.  That will come later.  Also, of course, there may be severe bugs left that could lead to loss of coins in the extreme.

You can find my latest source at https://github.com/domob1812/huntercore.  Snailbrain reported issues compiling for Windows, which I unfortunately cannot reproduce on GNU/Linux.  It works fine for me on Debian.  Feel free to play around, and if you are able to fix the Windows issues, I'm sure snailbrain can put up a bounty for that from the development funds.
Use your Namecoin-ID as OpenID: https://nameid.org/
Donations: 1domobKsPZ5cWk2kXssD8p8ES1qffGUCm | HBkxA5QmYSATFoPN1wFk8eBkgwPpY97Mfu

Mithril Man

  • Hero Member
  • *****
  • Posts: 589
    • View Profile
    • Mithril Man Web!
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #1 on: April 16, 2016, 07:07:29 PM »
good news!
I'd need a compiled window version to test it, I don't have now an environment that i can use to setup all needed thing

In case compiling windows version has still problem (i had a lot with previous version) i'll give a try to fix it
Alternative GUI client for Huntercoin http://www.mithrilman.com
HUC donation: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE
BTC donation: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #2 on: April 16, 2016, 07:15:14 PM »
awesome Domob,

i'll build for windows and ubuntu but it may be Monday... i'm sure i can figure out the windows build issue (i'll create a fresh vm for building), otherwise i'll post here and maybe wiggi can help.

@ MM, the easywinbuilder i think will not work (not checked it it's been ported form namecore) although it may be simple to port phelix's version from namecore over.. i could ask him..


wiggi

  • Global Moderator
  • Full Member
  • *****
  • Posts: 150
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #3 on: April 17, 2016, 10:10:02 PM »
You can find my latest source at https://github.com/domob1812/huntercore.  Snailbrain reported issues compiling for Windows, which I unfortunately cannot reproduce on GNU/Linux.  It works fine for me on Debian.


Code: [Select]
rpc/misc.cpp:486:61: error: call of overloaded Pair(const char [8], std::map<std::basic_string<char>, PlayerState>::size_type) is ambiguous
   game.push_back (Pair ("players", gameState.players.size ()));
                                                             ^

The error wasn't there a few weeks ago on the same machine (mint 17.3 32bit VM, nothing installed but dependencies to build Bitcoin + Huntercoin)

using
./configure CPPFLAGS="-msse2" --with-incompatible-bdb
but the CPPFLAGS="-msse2" requirement is probably only scrypt related.

« Last Edit: April 17, 2016, 10:13:21 PM by wiggi »

domob

  • Developer
  • Sr. Member
  • *****
  • Posts: 285
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #4 on: April 18, 2016, 01:29:21 PM »
You can find my latest source at https://github.com/domob1812/huntercore.  Snailbrain reported issues compiling for Windows, which I unfortunately cannot reproduce on GNU/Linux.  It works fine for me on Debian.


Code: [Select]
rpc/misc.cpp:486:61: error: call of overloaded Pair(const char [8], std::map<std::basic_string<char>, PlayerState>::size_type) is ambiguous
   game.push_back (Pair ("players", gameState.players.size ()));
                                                             ^

The error wasn't there a few weeks ago on the same machine (mint 17.3 32bit VM, nothing installed but dependencies to build Bitcoin + Huntercoin)

using
./configure CPPFLAGS="-msse2" --with-incompatible-bdb
but the CPPFLAGS="-msse2" requirement is probably only scrypt related.

Thanks for testing, should be fixed now.  The error did not show up on my system (Debian Jessie amd64).
Use your Namecoin-ID as OpenID: https://nameid.org/
Donations: 1domobKsPZ5cWk2kXssD8p8ES1qffGUCm | HBkxA5QmYSATFoPN1wFk8eBkgwPpY97Mfu

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #5 on: April 18, 2016, 07:40:45 PM »
i'm having trouble cross-compiling..
i've not had time to create a fresh VM for building but i'll try that asap, unfortunately I've been very busy today

basics for crosscompiling which i've used before -

ubuntu 12.04

Quote
cd depends
make HOST=x86_64-w64-mingw32
cd ..
./autogen.sh
./configure --prefix=/home/acoloss/huntercore/depends/x86_64-w64-mingw32

no errors i can see at that point...
then >

Code: [Select]
acoloss@ubuntu:~/huntercore$ make
Making all in src
make[1]: Entering directory `/home/acoloss/huntercore/src'
make[2]: Entering directory `/home/acoloss/huntercore/src'
  CXX    crypto/libnamecoinconsensus_la-hmac_sha256.lo
  CXX    crypto/libnamecoinconsensus_la-hmac_sha512.lo
  CXX    crypto/libnamecoinconsensus_la-ripemd160.lo
  CXX    crypto/libnamecoinconsensus_la-sha1.lo
  CXX    crypto/libnamecoinconsensus_la-sha256.lo
  CXX    crypto/libnamecoinconsensus_la-sha512.lo
  CXX    libnamecoinconsensus_la-arith_uint256.lo
  CXX    consensus/libnamecoinconsensus_la-merkle.lo
  CXX    libnamecoinconsensus_la-hash.lo
  CXX    primitives/libnamecoinconsensus_la-block.lo
  CXX    primitives/libnamecoinconsensus_la-pureheader.lo
  CXX    primitives/libnamecoinconsensus_la-transaction.lo
  CXX    libnamecoinconsensus_la-pubkey.lo
  CXX    script/libnamecoinconsensus_la-namecoinconsensus.lo
  CXX    script/libnamecoinconsensus_la-interpreter.lo
  CXX    script/libnamecoinconsensus_la-names.lo
  CXX    script/libnamecoinconsensus_la-script.lo
  CXX    script/libnamecoinconsensus_la-script_error.lo
  CXX    scrypt/libnamecoinconsensus_la-scrypt.lo
  CXX    scrypt/libnamecoinconsensus_la-scrypt-sse2.lo
  CXX    libnamecoinconsensus_la-uint256.lo
  CXX    libnamecoinconsensus_la-utilstrencodings.lo
make[3]: Entering directory `/home/acoloss/huntercore/src/secp256k1'
gcc -I. -g -O2 -Wall -Wextra -Wno-unused-function -c src/gen_context.c -o gen_context.o
gcc gen_context.o -o gen_context
./gen_context
  CC     src/libsecp256k1_la-secp256k1.lo
  CCLD   libsecp256k1.la
libtool: link: warning: undefined symbols not allowed in x86_64-w64-mingw32 shared libraries
make[3]: Leaving directory `/home/acoloss/huntercore/src/secp256k1'
  CXXLD  libnamecoinconsensus.la
Creating library file: .libs/libnamecoinconsensus.dll.a
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x70): undefined reference to `SHA256_Init'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x121): undefined reference to `SHA256_Update'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x129): undefined reference to `SHA256_Init'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x1bd): undefined reference to `SHA256_Update'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x207): undefined reference to `SHA256_Init'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x215): undefined reference to `SHA256_Update'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x231): undefined reference to `SHA256_Final'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x239): undefined reference to `SHA256_Init'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x2d5): undefined reference to `SHA256_Update'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x2dd): undefined reference to `SHA256_Init'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x384): undefined reference to `SHA256_Final'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x397): undefined reference to `SHA256_Update'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x3a2): undefined reference to `SHA256_Final'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x466): undefined reference to `SHA256_Update'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x4f0): undefined reference to `SHA256_Update'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text+0x570): undefined reference to `SHA256_Update'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text.startup+0x2b): undefined reference to `boost::system::generic_category()'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text.startup+0x37): undefined reference to `boost::system::generic_category()'
scrypt/.libs/libnamecoinconsensus_la-scrypt.o:scrypt.cpp:(.text.startup+0x43): undefined reference to `boost::system::system_category()'
collect2: ld returned 1 exit status
make[2]: *** [libnamecoinconsensus.la] Error 1
make[2]: Leaving directory `/home/acoloss/huntercore/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/acoloss/huntercore/src'
make: *** [all-recursive] Error 1

i alreaded asked domob previously..
any ideas wiggi
if not i'll look into it more tomorrow
« Last Edit: April 19, 2016, 01:11:32 AM by Snailbrain »

domob

  • Developer
  • Sr. Member
  • *****
  • Posts: 285
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #6 on: April 19, 2016, 07:23:30 PM »
It seems obvious from the error that the problem is related to the scrypt code - but I've no detailed knowledge about that, since I've just copied it from the old client.  Any hints would be very appreciated. ;)  It works perfectly on Debian Jessie for me.
Use your Namecoin-ID as OpenID: https://nameid.org/
Donations: 1domobKsPZ5cWk2kXssD8p8ES1qffGUCm | HBkxA5QmYSATFoPN1wFk8eBkgwPpY97Mfu

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #7 on: April 20, 2016, 04:26:46 PM »
had a little play,google and check..

still  same..

Wiggi are you able to build for windows? (maybe on windows)

i'll try some more tomorrow or put out a request

fsb4000

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #8 on: April 20, 2016, 10:06:35 PM »
Quote
hi mate,

any ideas why i can't cross compile the new huntercore from ubuntu to windows?

will send 2k hucs if you can figure it out before someone else
Hi.
I fixed the issue.
https://github.com/domob1812/huntercore/pull/1
Let me know if this patch doesn't fix cross-compiling on ubuntu 12.04 ( I built on Linux Mint 17.3 and then I tested huntercoin-qt.exe on wine, it works)
« Last Edit: April 20, 2016, 10:12:42 PM by fsb4000 »

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #9 on: April 21, 2016, 11:12:16 AM »
Quote
hi mate,

any ideas why i can't cross compile the new huntercore from ubuntu to windows?

will send 2k hucs if you can figure it out before someone else
Hi.
I fixed the issue.
https://github.com/domob1812/huntercore/pull/1
Let me know if this patch doesn't fix cross-compiling on ubuntu 12.04 ( I built on Linux Mint 17.3 and then I tested huntercoin-qt.exe on wine, it works)

that's great fsb, i will check it later

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #10 on: April 21, 2016, 11:42:33 AM »
Quote
hi mate,

any ideas why i can't cross compile the new huntercore from ubuntu to windows?

will send 2k hucs if you can figure it out before someone else
Hi.
I fixed the issue.
https://github.com/domob1812/huntercore/pull/1
Let me know if this patch doesn't fix cross-compiling on ubuntu 12.04 ( I built on Linux Mint 17.3 and then I tested huntercoin-qt.exe on wine, it works)

thanks this seems to have worked.. at least i got no errors..
will get the results later..

note, i only modified the makefile
and src/game/db.cpp (although i did not check if i would get the error you did without it..)

i did not modify -  depends/packages/openssl.mk
does this need modifying?


i've not even attempted to run these yet so people should use with care - i'll try later


https://mega.nz/#!QFkEhBDL!Y0g8e5ffPQokU7Rf8VmofZ5hzn8OIkgF5UeUreH49-o

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #11 on: April 21, 2016, 11:58:13 AM »
couldn't resist...

syncing now with the qt on windows..

Mithril Man

  • Hero Member
  • *****
  • Posts: 589
    • View Profile
    • Mithril Man Web!
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #12 on: April 21, 2016, 12:17:38 PM »
I see 4 files in the zip, no dll or whatever, what should i do with that, are they self contained exe or i have to put on old huntercoin folder?
I will try to run a testnet session when i'll find time

and what about compatibility, is the old data folder compatible or did i have to resync from scratch? (of course i'll backup everything)
Alternative GUI client for Huntercoin http://www.mithrilman.com
HUC donation: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE
BTC donation: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #13 on: April 21, 2016, 01:21:50 PM »
I see 4 files in the zip, no dll or whatever, what should i do with that, are they self contained exe or i have to put on old huntercoin folder?
I will try to run a testnet session when i'll find time

and what about compatibility, is the old data folder compatible or did i have to resync from scratch? (of course i'll backup everything)

definitely use a fresh datadir (also should be incompatible - except wallet, but i'm testing without atm) (it may convert the old chain but i have started from fresh)
the dlls are integrated

just use qt or huntercoind
« Last Edit: April 21, 2016, 04:25:07 PM by Snailbrain »

Mithril Man

  • Hero Member
  • *****
  • Posts: 589
    • View Profile
    • Mithril Man Web!
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #14 on: April 21, 2016, 03:21:57 PM »
ah no wallet compatibility? so this would require users to transfer funds to another node, or to a single address and then export it and import on the new one, mmm are you sure it doesn't support wallet conversion? it sounds strange to me that bitcoin didn't handle that
Alternative GUI client for Huntercoin http://www.mithrilman.com
HUC donation: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE
BTC donation: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC