Bitcoin Forum
June 20, 2024, 10:44:28 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Experienced Developer with POS and hardfork chain fixing needed ASAP  (Read 736 times)
EinaiOraCoinDev (OP)
Full Member
***
Offline Offline

Activity: 336
Merit: 100



View Profile
July 16, 2015, 02:11:13 PM
 #1

Hello I am the developer of EinaiOraCoin and I'm just a very rookie developer who has run into a slight problem.  My coin at first didn't have the POS working like I was to believe that it would so I had to extend the POW to keep the chain moving.  Then the POS magically started kicking in for everyone and the coin was running full speed POW/POS and everyone was content.

Now the problem that I am facing is that all of a sudden about 2 weeks ago the chain stopped moving at block 20987 and myself and another developer looked through the code and couldn't figure out why out of nowhere the chain just stopped moving?  I am looking to hire a good experienced developer who would be able to look through the code and change the code to make EinaiOraCoin strictly POS with 365% P.A at a min stake age of 24 hours and a max stake age of 30 days and also fix the chain so that it will start moving again.

If you are interested in the job please look over the code first on Github at https://github.com/EiniaOraDev/EiniaOraNewSourceCode and if you feel that you are more than experienced enough to fix the things that need to be fixed and you are reasonably fair priced then just PM and let me know all the details.

Thanks,
Have a Great Day
EinaiOraCoinDev
EinaiOraCoinDev (OP)
Full Member
***
Offline Offline

Activity: 336
Merit: 100



View Profile
July 22, 2015, 10:54:06 PM
 #2

Still looking for someone to help with the fixing of EinaiOraCoin so that I can have the coin be strictly POS and the chain fixed and am willing to pay the person who can help fix this problem with BTC.
muddafudda
Legendary
*
Offline Offline

Activity: 1008
Merit: 1022



View Profile
July 23, 2015, 05:24:20 PM
 #3

https://github.com/EiniaOraDev/EiniaOraNewSourceCode/blob/master/src/main.cpp#L1139

Code:
int64_t nActualSpacing = pindexPrev->GetBlockTime() - pindexPrevPrev->GetBlockTime();

change to


Code:
 int64 nActualSpacing = pindexPrev->GetBlockTime() - pindexPrevPrev->GetBlockTime();
int64 nCheckTime=GetTime();
     if(nCheckTime > 1437789600) //Human time (GMT): Sat, 25 July 2015 02:00:00 GMT
     {
         int nHeight = pindexPrev->nHeight+1;
            if (nHeight >= 20987 & nActualSpacing < 0) nActualSpacing = 0;  //Sanity Check on nActualSpacing, corrects negative block values
     }

You can use any epoochtime, I just used that as an example.

Try that.
limar
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
July 24, 2015, 02:11:30 AM
 #4

seem despite of all efforts dev is not entertaining any of efforts, muddafudda thanks for your reply here though

Go to Hell
psycodad
Legendary
*
Offline Offline

Activity: 1615
Merit: 1635


精神分析的爸


View Profile
July 27, 2015, 01:43:59 PM
Last edit: July 28, 2015, 02:05:36 PM by psycodad
 #5

Much appreciated muddafudda, can confirm your proposed fix seems to work:

{  
    "version" : "nvc-v1.1.1.build-g32a928e-bdb-gcc",
    "protocolversion" : 70018,
    "walletversion" : 60000,
    "balance" : X,
    "unspendable" : 0.00000000,
    "newmint" : 9.00000000,
    "stake" : 0.00000000,
    "blocks" : 20991,
    "timeoffset" : 0,
    "moneysupply" : 1258153.89093600,
    "connections" : 0,
    "proxy" : "",
    "ip" : "x.x.x.x",
    "difficulty" : {
        "proof-of-work" : 0.00025390,
        "proof-of-stake" : 0.03124954
    },
    "testnet" : false,
    "keypoololdest" : 1434032778,
    "keypoolsize" : 101,
    "paytxfee" : 0.00010000,
    "mininput" : 0.00010000,
    "errors" : ""
}


kevin1234a
Legendary
*
Offline Offline

Activity: 1162
Merit: 1000


Decentralizing Jesus on the Blockchain


View Profile WWW
July 28, 2015, 01:47:56 PM
 #6

seem there was a commit 3days back on github but when compile on linux getting following error


main.cpp: In function 'unsigned int GetNextTargetRequired(const CBlockIndex*, bool)':
main.cpp:1139:2: error: 'int64' was not declared in this scope
main.cpp:1139:8: error: expected ';' before 'nCheckTime'
main.cpp:1140:6: error: 'nCheckTime' was not declared in this scope
main.cpp:1143:26: error: 'nActualSpacing' was not declared in this scope
main.cpp:1152:50: error: 'nActualSpacing' was not declared in this scope
make: *** [obj/main.o] Error 1

psycodad
Legendary
*
Offline Offline

Activity: 1615
Merit: 1635


精神分析的爸


View Profile
July 28, 2015, 02:04:35 PM
 #7

Quote
main.cpp: In function 'unsigned int GetNextTargetRequired(const CBlockIndex*, bool)':
main.cpp:1139:2: error: 'int64' was not declared in this scope
main.cpp:1139:8: error: expected ';' before 'nCheckTime'
main.cpp:1140:6: error: 'nCheckTime' was not declared in this scope
main.cpp:1143:26: error: 'nActualSpacing' was not declared in this scope
main.cpp:1152:50: error: 'nActualSpacing' was not declared in this scope
make: *** [obj/main.o] Error 1
First line from muddafudda's proposed change is missing in the commit and int64 needs to be int64_t, then it should compile.

EinaiOraCoinDev (OP)
Full Member
***
Offline Offline

Activity: 336
Merit: 100



View Profile
July 28, 2015, 05:11:55 PM
 #8

Hello Everyone,

I would like to thank MuddaFudda for giving me the solution to the fix and I have made the changes to the code now with those changes.  I however haven't had the time to get around to compiling new wallets yet for the coin and if anyone can do that feel free to do so and share them with the community.

Thanks,
Have a Great Day
EinaiOraCoinDev
kevin1234a
Legendary
*
Offline Offline

Activity: 1162
Merit: 1000


Decentralizing Jesus on the Blockchain


View Profile WWW
July 28, 2015, 06:04:00 PM
 #9

thanks guys for all your efforts we are gathering our tools and coming back to the right chain and once things will be sorted out and confirmed by community i would request you to send us your EOC addresses in order to send you bounties (gifts Smiley for your support. further details you can see here in the main thread.

https://bitcointalk.org/index.php?topic=1065954.msg11993437#msg11993437


once again a huge thanks to Limar, Muddafudda, Physcodad, barrysty1e for their efforts

kevin1234a
Legendary
*
Offline Offline

Activity: 1162
Merit: 1000


Decentralizing Jesus on the Blockchain


View Profile WWW
July 30, 2015, 08:20:35 AM
 #10

hello guys i would appreciate if you post your EOC wallet addresses in the main thread of EOC community has some gift for you guys for your assistance.
i am sending individual PM to you guys as well with regards to same request.

main thread https://bitcointalk.org/index.php?topic=1065954.msg11993437#msg11993437

thanks,

Pages: [1]
  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!