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

Mithril Man

  • Hero Member
  • *****
  • Posts: 589
    • View Profile
    • Mithril Man Web!
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #30 on: April 23, 2016, 01:46:25 PM »
error found during testnet sync
snailbrain said the succesfully synched the main chain, but in my case testnet gave this error and stopped synching my testnet chain

2016-04-23 12:31:36 ERROR: ConnectBlock(): coinbase pays too much (actual=358500000 vs limit=100000000)
2016-04-23 12:31:36 Misbehaving: 127.0.0.1:12346 (0 -> 100) BAN THRESHOLD EXCEEDED
2016-04-23 12:31:36 InvalidChainFound: invalid block=f262d9273b9f238d0c7c670f6b9af5dc1151728aeb6f409719f271b65fa7e852  height=2856  log2_work=36.847014  date=2015-06-27 00:54:17
2016-04-23 12:31:36 InvalidChainFound:  current best=fadf683f0babf10eeb75968f47b165d7a8f0633cb19c6768555ce3d155f275aa  height=2855  log2_work=36.846811  date=2015-06-27 00:53:49
2016-04-23 12:31:36 ERROR: ConnectTip(): ConnectBlock f262d9273b9f238d0c7c670f6b9af5dc1151728aeb6f409719f271b65fa7e852 failed
2016-04-23 12:31:36 InvalidChainFound: invalid block=f262d9273b9f238d0c7c670f6b9af5dc1151728aeb6f409719f271b65fa7e852  height=2856  log2_work=36.847014  date=2015-06-27 00:54:17
2016-04-23 12:31:36 InvalidChainFound:  current best=fadf683f0babf10eeb75968f47b165d7a8f0633cb19c6768555ce3d155f275aa  height=2855  log2_work=36.846811  date=2015-06-27 00:53:49
2016-04-23 12:31:36 Warning: not banning local peer 127.0.0.1:12346!
2016-04-23 12:31:36 receive version message: : version 1030000, blocks=3768, us=127.0.0.1:3035, peer=5
2016-04-23 12:31:40 receive version message: : version 1030000, blocks=3768, us=127.0.0.1:3036, peer=6
2016-04-23 12:39:36 GUI: setGeometryDp: Unable to set geometry 740x440+976+525 on QWidgetWindow/'RPCConsoleWindow'. Resulting geometry:  740x480+976+525 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 423x440, maximum size: 16777215x16777215).


not a big issue because it's testnet and i want to try regmode but i think could be something to investigate, let me know if you need something




EDIT
talking with snailbrain, it seems my "test in a box" environment i was using had some custom rules put in, so don't pay attention to this message atm
« Last Edit: April 23, 2016, 02:48:43 PM by Mithril Man »
Alternative GUI client for Huntercoin http://www.mithrilman.com
HUC donation: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE
BTC donation: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC

domob

  • Developer
  • Sr. Member
  • *****
  • Posts: 285
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #31 on: April 23, 2016, 06:31:51 PM »
For -regtest, the RPC port changes.  You can set it with -rpcport as well when starting the daemon, if you want.  The default is 18499.
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 #32 on: April 23, 2016, 11:21:19 PM »
For -regtest, the RPC port changes.  You can set it with -rpcport as well when starting the daemon, if you want.  The default is 18499.

i already had that, anyway i managed to fix.
the -connect parameter failed, so i just used addnode in config and now i've two running QT in -regtest and i can use one of them as a daemon to test my stuff

but now another problem arises, much worse... i managed to generate 1049 blocks, but at the next i receive this error



and i can't proceed generating other blocks


on top of that, I've to say that it's hard to test current rules because i've to go past last hardfork, so i should generate thousands of blocks (1 milion?), so it's important i can go past that block very fast (or that the rules on regtest are already the new ones from block 0?)
« Last Edit: April 23, 2016, 11:25:17 PM by Mithril Man »
Alternative GUI client for Huntercoin http://www.mithrilman.com
HUC donation: HMSCYGYJ5wo9FiniVU4pXWGUu8E8PSmoHE
BTC donation: 1DKLf1QKAZ5njucq37pZhMRG67qXDP3vPC

domob

  • Developer
  • Sr. Member
  • *****
  • Posts: 285
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #33 on: April 24, 2016, 09:48:00 AM »
Regtest mode is not supposed to be used for that many blocks (from upstream Bitcoin), I guess that's what causes the issues.  But I can look into that, although I think it is not top priority right now.

I agree that we need a way to test the forks.  For now I did not yet work on that, as I mainly use regtest mode for testing basic game transaction integration; the game logic itself is mainly copied and tested by syncing the chain anyway.  But at least when we add new changes, it will be important to add regtests for them.  I think that the best way forward is to introduce regtest-only RPC commands that can be used to set the desired fork heights.  This is more flexible than just hardcoding lower heights, for instance, so that tests can decide for themselves how many blocks they need with each fork active.

I'll work on that at some point in the future, but that's also low priority for me right now - but pull requests are welcome if someone wants to do it.  Otherwise you can just edit src/consensus/params.h and hardcode your own fork heights in regtest mode as you need them.
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 #34 on: April 25, 2016, 08:38:47 PM »
I've now also hacked together "game_waitforchange" for the new client - I still believe that the technically better solution for the future is using ZeroMQ, but that should allow existing clients to better work with the new daemon.  Together with some work I did over the weekend, I have now everything implemented that was on my todo list for using the client as gaming daemon and wallet.  Finishing the last remaining pieces for it to be used as miner is next.
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 #35 on: April 26, 2016, 12:23:34 AM »
I've now also hacked together "game_waitforchange" for the new client - I still believe that the technically better solution for the future is using ZeroMQ, but that should allow existing clients to better work with the new daemon.  Together with some work I did over the weekend, I have now everything implemented that was on my todo list for using the client as gaming daemon and wallet.  Finishing the last remaining pieces for it to be used as miner is next.

brilliant work Domob and thank you.

i'll test this, this week.

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #36 on: April 26, 2016, 12:11:39 PM »
https://mega.nz/#!NMtERDQa!Ihj7Aq_dz_ZWWwr6rbLmKSg6NdNoMd5rqbvqh-BdDzM

this should be the latest changes with game_Waitforchange

once i'm fully synced again (due to improper shutdown), i'll backup the chain and upload (for people that want to rescan their old wallets and don't want to sync themselves)
and i'll also prune and keep the last 500mb of blocks and upload that for testing (will need to use a fresh wallet i guess).

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #37 on: April 26, 2016, 05:52:28 PM »
pruned with the 550mb minimum set, i get 1GB chain datadir (edit)..

this is after i had already fully synced and then enabled the prune..

if i enable the prune from scratch and sync from there, maybe it will be smaller or maybe there is some more files i can delete from the datadir above.
i'll have a play some more tomorrow.

i think domob said the game.dat is ~ 200mb, so maybe we can shave some of that off later as this is not pruned.
« Last Edit: April 27, 2016, 02:27:50 PM by Snailbrain »

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #38 on: April 27, 2016, 06:59:48 PM »
i've not had much time to test today but , running the qt from scratch i've not been able to sync(just today) (not tried for long) :

a load of "misbehaving peers" in the log though

will try some more tomorrow

anyone else had chance to test?
« Last Edit: April 27, 2016, 07:04:56 PM by Snailbrain »

wiggi

  • Global Moderator
  • Full Member
  • *****
  • Posts: 150
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #39 on: April 27, 2016, 09:58:14 PM »

i think domob said the game.dat is ~ 200mb, so maybe we can shave some of that off later as this is not pruned.

I haven't tried this with Huntercore, but you could cut it
to almost nothing (<1mb) with the old Qt/daemon's "prune_gamedb" command.
(even my hulked out one from 380mb to 0.6mb with no ill effect)


Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #40 on: April 29, 2016, 03:46:35 PM »
still an issue atm..

anyone else able to sync from scratch recently?

on my first try it was fine..

now, even with the new and older versions, i cannot get it to start syncing from scratch..

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #41 on: May 03, 2016, 04:54:00 PM »
anyone else attempted huntercore qt on windows yet?


Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #42 on: May 03, 2016, 05:39:47 PM »
managed to get it to start getting the headers from a lan connected daemon (using "-connect")

-

without connect i left the huntercore-qt runnig for 24hours and it did not get any headers.. yet it had some connections

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #43 on: May 05, 2016, 03:28:38 PM »
is there no one else able to do some testing???

Snailbrain

  • Developer
  • Hero Member
  • *****
  • Posts: 1001
    • View Profile
Re: [ANN] Huntercoin Core - ready for first testing
« Reply #44 on: May 27, 2016, 10:18:26 AM »
I've built the latest version which could fix the issues i was experiencing :

Windows :
https://mega.nz/#!YN8nARqD!DsbTEOpEAptOtSp1YNWTSiacBsRvx3k0fCTNGPhqAMs

Let me know how it goes..

i'm full syncing now and seems working.. although, without adding a node i got zero connections and it wouldn't sync.
not sure if related to not having dns seeds? does it still use IRC domob or has this been removed?

I also had 8 connections but I keep seeing it drop to 3 or 4, - am i getting banned(?) (can't see anything in the log atm).

« Last Edit: May 27, 2016, 03:15:05 PM by Snailbrain »