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

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 990
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #15 on: April 21, 2016, 04:24:40 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

i made a typo

it should be incompatible with the chain but might convert it

the wallet should work afaik

please test, i'm syncing from scratch atm to make sure it goes all the way through (without a wallet)

fsb4000

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #16 on: April 21, 2016, 05:40:17 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)

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
Maybe changing openssl.mk is not needed. That was my first thought why wallet does not build, I have not tested without it. If it works without it, I will remove the openssl.mk changes.

domob

  • Developer
  • Sr. Member
  • *****
  • Posts: 285
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #17 on: April 21, 2016, 06:25:03 PM »
I can confirm what snailbrain wrote - the chain is incompatible (and even if legacy Bitcoin might be able to convert the chain format (not sure), it most probably won't work for the game-related stuff, so you have to sync fresh).  The wallet should work, and did for me in my own tests (and with my own real wallet.)
Use your Namecoin-ID as OpenID: https://nameid.org/
Donations: 1domobKsPZ5cWk2kXssD8p8ES1qffGUCm | HBkxA5QmYSATFoPN1wFk8eBkgwPpY97Mfu

domob

  • Developer
  • Sr. Member
  • *****
  • Posts: 285
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #18 on: April 21, 2016, 06:27:52 PM »
Also, thanks all for testing!  If you are syncing from scratch, be aware that there is an "issue" with headers-first sync that should be fixed in upstream Bitcoin: https://github.com/bitcoin/bitcoin/pull/6821  It rarely shows up for Bitcoin, but is much more severe for merge-mined coins and/or coins with short block times - Huntercoin is both.  If your headers sync seems to be getting slower and slower, you can restart the daemon from time to time to clear up the queue of duplicate headers.  Once you have all headers (run getblockchaininfo), this is no longer a problem and blocks should be processed as quickly as your CPU allows.
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 #19 on: April 21, 2016, 09:51:24 PM »
then correct me if i'm wrong, but actually can we wait someone like snailbrain do a sync from scratch, then put a pruned blockchain online so that anyone can start from there?

Is it enough and is then possible that any wallet can update using the pruned chain, to just have the list of unspent tx, that is the most important thing in order to send coins?
Of course no one can rescan the wallet to list older transactions then the one present in the pruned chain, but if someone doesn't care about his tx history than this would be a nice compromise I'd say
Alternative GUI client for Huntercoin http://www.mithrilman.com
HUC donation: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE
BTC donation: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 990
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #20 on: April 21, 2016, 11:02:57 PM »
at block 900k atm, no stoppages... good news for windows users..

probably fully synced in 10 hours (on an ssd).

the qt is very responsive (albeit no game part).

i'll play with some pruning tomorrow

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 990
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #21 on: April 22, 2016, 09:22:03 AM »
fully synced using the windows qt from scratch without interruption.

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 990
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #22 on: April 22, 2016, 09:52:56 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
Maybe changing openssl.mk is not needed. That was my first thought why wallet does not build, I have not tested without it. If it works without it, I will remove the openssl.mk changes.

thanks,

yes it seems this is not needed.

send me your address, maybe change the PR if you haven't  already... note, i've not checked if it affects compiling for linux..

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 990
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #23 on: April 22, 2016, 02:14:59 PM »
not sure if issue :

there was an improper shutdown. ... my PC froze.

I rebooted and restarted the client

before the crash it was synced up to 1192319 blocks

after reboot it's been stuck on activating best chain.. checking the debug log, it's seems to be re-syncing from block 941343 although the qt client just shows the splash screen.

not sure if this is by design due to the imprper shutdown, or if it just needs some parameter changing to prevent it going back so far? .. also not sure what would happen if the chain was pruned?
any ideas domob?
« Last Edit: April 23, 2016, 10:46:08 AM by Snailbrain »

domob

  • Developer
  • Sr. Member
  • *****
  • Posts: 285
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #24 on: April 22, 2016, 05:41:04 PM »
there was an improper shutdown. I over-clocked my miners too much and my PC froze.

I rebooted and restarted the client

before the crash it was synced up to 1192319 blocks

after reboot it's been stuck on activating best chain.. checking the debug log, it's seems to be re-syncing from block 941343 although the qt client just shows the splash screen.

In general, crashing the daemon may corrupt your chain directory - I don't think there's anything specific we can do about that, and it is not Huntercoin-related.  There are regular complaints for Bitcoin as well, and it also happened to me in Bitcoin.  So if anything, we should try to persuade the upstream Bitcoin developers to fix the issue.  The best advice, however, is to keep backups of the chain directory.
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 #25 on: April 22, 2016, 05:48:44 PM »
in order for having a nice entry point for any new players, and even a kind of backup, having a server with a daily updated pruned chain would be maybe the best option at the moment.
Afaik the server is ready, what's missing is the automating of the process of blockchain pruning and its upload on the server

This would be a nice improvement and a safe spot too
Alternative GUI client for Huntercoin http://www.mithrilman.com
HUC donation: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE
BTC donation: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC

Mithril Man

  • Hero Member
  • *****
  • Posts: 589
    • View Profile
    • Mithril Man Web!
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #26 on: April 23, 2016, 12:36:37 AM »
i wanted to test the qt and tried to setup a testnet environment but on QT console i can't find setgenerate command !? how am i supposed to mine?
Alternative GUI client for Huntercoin http://www.mithrilman.com
HUC donation: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE
BTC donation: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 990
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #27 on: April 23, 2016, 10:45:40 AM »
but do not use it for mining. [/b].


i wanted to test the qt and tried to setup a testnet environment but on QT console i can't find setgenerate command !? how am i supposed to mine?


in OP

you can mine with another old client at the same time in a vm or on another pc, or probably you can run the old client on the same computer by changing the default port and rpcport..

domob

  • Developer
  • Sr. Member
  • *****
  • Posts: 285
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #28 on: April 23, 2016, 01:23:08 PM »
You can use "generate" instead of "setgenerate" to mine.  Even better, use the -regtest mode - there you need only a single daemon (not two connected to each other) and can say "generate 10" to almost immediately mine 10 blocks.
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 #29 on: April 23, 2016, 01:38:30 PM »
actually i'm resynching my new testnet huntercoin-qt connecting it to other old peers so it's rebuilding the blockchain

I've read a bit about regtest and seems useful, anyway I'm already noticing some differences in RPC commands, in my client I already had an integrated mining command to start mining and it was calling setgenerate, but since i was the only one using it for debug purpose it's fine to remap that call, even because what i needed was really the ability to mine the amount i need.
I already tried to use -regtest but it gave me an error "can't connect to server" ?? will try again

i fear about discovering worse RPC incompatibility, crossing fingers :D
« Last Edit: April 23, 2016, 02:52:17 PM by Mithril Man »
Alternative GUI client for Huntercoin http://www.mithrilman.com
HUC donation: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE
BTC donation: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC