Bitcoin Forum
April 16, 2024, 03:50:06 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 »  All
  Print  
Author Topic: [GRP] GRouPcoin  (Read 28407 times)
RoadTrain
Legendary
*
Offline Offline

Activity: 1386
Merit: 1009


View Profile
October 20, 2013, 03:42:52 PM
 #161

Actually, KrLos, if you read THIS VERY PAGE, you'll see that there is now an updated version (though experimental) with a more recent bitcoind/bitcoin-qt base.
And it seems to work well, though I'd appreciate some feedback  Smiley
After all I could move on to other merge mined coins to update their clients.

Had floating point exceptions when downloading full blockchain.  Can't be bothered forking in github but here's a patch:
Code:
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1115,8 +1115,8 @@ unsigned int static GetNextWorkRequired(const CBlockIndex* pindexLast, const CBl
     if (pindexLast == NULL)
         return nProofOfWorkLimit;

-    if (pindexLast->nHeight < 9500)
-        nTargetTimespan *= 14; // two weeks
+    // prior to block 9500 2 weeks.. daily after
+    nTargetTimespan = (pindexLast->nHeight < 9500) ? 1209600 : 86400;
     int64 nInterval = nTargetTimespan / nTargetSpacing;

Only quickly tested daemon on ubuntu 12.04 x64 but seems to work.
Well it should be equal, there's no floating point math used.
Do you have any logs?

Original version increases nTargetTimespan for every GetNextWorkRequired with block < 9500.  
This is used in some modulo operations later which I'm guessing eventually result in a div 0 after it overflows.
Also, couldn't see where it would be set back to 1 day on block 9500, without restart?

For any block earlier than 9500 nTargetTimespan is 14 days, 1 day thereafter.
It's exactly what my code does, the same code is used in old client.
Code:
unsigned int static GetNextWorkRequired(const CBlockIndex* pindexLast)
{
    const int nSmoothBlock = 9500;
    const int64 nTargetSpacing = 10 * 60;
    int64 nTargetTimespan = 24 * 60 * 60; // one day

    if (pindexLast->nHeight < nSmoothBlock)
        nTargetTimespan *= 14; // two weeks
    int64 nInterval = nTargetTimespan / nTargetSpacing;
1713239406
Hero Member
*
Offline Offline

Posts: 1713239406

View Profile Personal Message (Offline)

Ignore
1713239406
Reply with quote  #2

1713239406
Report to moderator
1713239406
Hero Member
*
Offline Offline

Posts: 1713239406

View Profile Personal Message (Offline)

Ignore
1713239406
Reply with quote  #2

1713239406
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713239406
Hero Member
*
Offline Offline

Posts: 1713239406

View Profile Personal Message (Offline)

Ignore
1713239406
Reply with quote  #2

1713239406
Report to moderator
hendo
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
October 21, 2013, 06:19:03 AM
 #162

Actually, KrLos, if you read THIS VERY PAGE, you'll see that there is now an updated version (though experimental) with a more recent bitcoind/bitcoin-qt base.
And it seems to work well, though I'd appreciate some feedback  Smiley
After all I could move on to other merge mined coins to update their clients.

Had floating point exceptions when downloading full blockchain.  Can't be bothered forking in github but here's a patch:
Code:
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1115,8 +1115,8 @@ unsigned int static GetNextWorkRequired(const CBlockIndex* pindexLast, const CBl
     if (pindexLast == NULL)
         return nProofOfWorkLimit;

-    if (pindexLast->nHeight < 9500)
-        nTargetTimespan *= 14; // two weeks
+    // prior to block 9500 2 weeks.. daily after
+    nTargetTimespan = (pindexLast->nHeight < 9500) ? 1209600 : 86400;
     int64 nInterval = nTargetTimespan / nTargetSpacing;

Only quickly tested daemon on ubuntu 12.04 x64 but seems to work.
Well it should be equal, there's no floating point math used.
Do you have any logs?

Original version increases nTargetTimespan for every GetNextWorkRequired with block < 9500.  
This is used in some modulo operations later which I'm guessing eventually result in a div 0 after it overflows.
Also, couldn't see where it would be set back to 1 day on block 9500, without restart?

For any block earlier than 9500 nTargetTimespan is 14 days, 1 day thereafter.
It's exactly what my code does, the same code is used in old client.
Code:
unsigned int static GetNextWorkRequired(const CBlockIndex* pindexLast)
{
    const int nSmoothBlock = 9500;
    const int64 nTargetSpacing = 10 * 60;
    int64 nTargetTimespan = 24 * 60 * 60; // one day

    if (pindexLast->nHeight < nSmoothBlock)
        nTargetTimespan *= 14; // two weeks
    int64 nInterval = nTargetTimespan / nTargetSpacing;

Sorry for flogging a dead horse but not quite...   

In the new fork, nTargetTimespan is global (i.e. will be multiplied by 14 every call, and eventually overflow).  If the above snippet is original client, it is local and so will behave as expected.
Am guessing it is global now as was referenced in some other function/s, otherwise making it local would have been the better fix. 
You might want to check if mutating the value on the fly will affect any other usages of it too.

I'm assuming we are both looking at the same code, branch i0coin-0.8.x was default in git?  If not my humble apologies.
RoadTrain
Legendary
*
Offline Offline

Activity: 1386
Merit: 1009


View Profile
October 21, 2013, 02:33:50 PM
 #163


Sorry for flogging a dead horse but not quite...   

In the new fork, nTargetTimespan is global (i.e. will be multiplied by 14 every call, and eventually overflow).  If the above snippet is original client, it is local and so will behave as expected.
Am guessing it is global now as was referenced in some other function/s, otherwise making it local would have been the better fix. 
You might want to check if mutating the value on the fly will affect any other usages of it too.

I'm assuming we are both looking at the same code, branch i0coin-0.8.x was default in git?  If not my humble apologies.
Well I think I'm starting to understand Tongue Forgot about it being global. I'll try to resync from scratch to check and update code if needed. Thanks. Smiley
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
October 21, 2013, 02:38:10 PM
 #164

What's going on here

RoadTrain
Legendary
*
Offline Offline

Activity: 1386
Merit: 1009


View Profile
October 21, 2013, 04:25:49 PM
 #165

Fixed retarget issue, added a checkpoint and a couple of nodes.
https://github.com/RoadTrain/groupcoin

markm (OP)
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
November 01, 2013, 07:28:03 PM
 #166

I grabbed RoadTrain's version from github, it seems to be working fine for me so far...

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
RoadTrain
Legendary
*
Offline Offline

Activity: 1386
Merit: 1009


View Profile
November 02, 2013, 04:12:55 PM
 #167

I grabbed RoadTrain's version from github, it seems to be working fine for me so far...

-MarkM-

Just in case you have GRP logo or icon, I'd be glad to update the repo.
Cause GRP with I0C logo looks a bit... Grin
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
November 03, 2013, 01:02:58 AM
 #168

I grabbed RoadTrain's version from github, it seems to be working fine for me so far...

-MarkM-

Just in case you have GRP logo or icon, I'd be glad to update the repo.
Cause GRP with I0C logo looks a bit... Grin

most ppl dont use qt anyway

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
IYFTech
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


WANTED: Active dev to fix & re-write p2pool in C


View Profile
November 03, 2013, 09:58:02 AM
 #169

A logo would be nice though....... Cool

-- Smiley  Thank you for smoking  Smiley --  If you paid VAT to dogie for items you should read this thread:  https://bitcointalk.org/index.php?topic=1018906.0
Asphyxiated
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
November 21, 2013, 01:39:05 AM
 #170

I just recently started merged mining on bitparking so I had to get a groupcoin wallet, I did get the GUI version to compile. Although it seems that it was been switched to Qt4 instead of wxwidgets because that is what it linked against in the make file.

My question though is that the groupcoin wallet has downloaded all the blocks it says are on the chain but its still 44 hours behind.... so does this mean that a block hasnt been created for over 44 hours on the groupcoin chain?
'
thehulkk
Member
**
Offline Offline

Activity: 442
Merit: 10



View Profile
December 06, 2013, 02:05:09 AM
 #171

is there a market where groupcoins are traded?

▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Cannacor.io [/b]║Cannacor:Cannabis Cultivation║
▄▄▄▄▄▄▄
IYFTech
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


WANTED: Active dev to fix & re-write p2pool in C


View Profile
December 06, 2013, 02:42:12 PM
 #172

is there a market where groupcoins are traded?

Not that I'm aware of........yet.

-- Smiley  Thank you for smoking  Smiley --  If you paid VAT to dogie for items you should read this thread:  https://bitcointalk.org/index.php?topic=1018906.0
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
December 06, 2013, 07:57:56 PM
 #173

I think at the Digitalis Server of Open Transactions. Unfortunately i never was able to install the client software. Even with help for weeks. There are problems of some kind i cant solve.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
January 15, 2014, 11:45:03 PM
 #174

Use the Linux vm inside Linux Roll Eyes

almightyruler
Legendary
*
Offline Offline

Activity: 2268
Merit: 1092


View Profile
January 16, 2014, 04:11:07 AM
 #175

Even with RoadTrain version I get compiler error on ubuntu 13.x

Quote
SOURCE=2  -MMD -MF obj/db.d -o obj/db.o db.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/groupcoin/src -I/root/groupcoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/groupcoin/src/leveldb/include -I/root/groupcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/init.d -o obj/init.o init.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make: *** [obj/init.o] Error 4



Are you on a memory limited VPS? Try adding more (or any) swap.

https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
nibyokwy
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
February 01, 2014, 04:05:31 AM
 #176

where can I sell or buy these?
nibyokwy
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
February 01, 2014, 04:22:57 AM
 #177

i've come across what looks like a discrepancy between the old client and the new client. if I use vanitygen to generate the address (using vanitygen -X 3 2) I sometimes get an address that is valid in the old client but not in the new one. i use 'groupcoind validateaddress' to check if it is valid. any thoughts on what the problem could be?
markm (OP)
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
February 01, 2014, 09:13:51 AM
 #178

Does this apply to the daemons?

As I recall there is an input verification in the GUI that one needs to change to make address in the GUI work right, when we first made GRPcoin and DVCcoin we discovered that.

Other than that well maybe compare the code of the two versions see if they treat addresses differently?

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
nibyokwy
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
February 01, 2014, 11:57:21 AM
 #179

Does this apply to the daemons?
it's the daemons, yes. unfortunately I'm not a programmer so can't tell what might be wrong.
nibyokwy
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
February 23, 2014, 10:49:46 PM
 #180

difficulty seems to have jumped hugely the last day or two. it's now larger than i0coin. has it been picked up by other big pools or is it being traded on an exchange?
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!