Post
Topic
Board Announcements (Altcoins)
Re: [ANN][SYNC]X11 | POS| 1,000 Coins | Multi-Pool |More Features Coming
by
rfcdejong
on 30/05/2014, 21:28:05 UTC

Thank you! Think this guy deserves some sort of donation...

Donations are allways wellcome, but you can send them *after* you see the fix works. I would feel embarrassed if something goes wrong Undecided

And, if you are a coder, please review it. We can make this safer together.

I checked your changeset, it seems oke as far as i can read it

https://github.com/MsCollec/sync/commit/150f9518586c6cd82d316e85ae0928abc71189e8#diff-fa018f4d28b5116a35b36b72fc9f4e51


CheckStakeKernelHash is changed, will do

bnCoinDayWeight = CBigNum(nValueIn) * GetWeight((int64_t)txPrev.nTime, (int64_t)nTimeTx) / 100000000 / (24 * 60 * 60);
instead of
bnCoinDayWeight = CBigNum(nValueIn) * GetWeight((int64_t)txPrev.nTime, (int64_t)nTimeTx) / 100000 / (24 * 60 * 60);


and the weight is balanced, in GetStakeWeight it will do

bnCoinDayWeight = CBigNum(pcoin.first->vout[pcoin.second].nValue) * nTimeWeight / 100000 / (24 * 60 * 60);
instead of
bnCoinDayWeight = CBigNum(pcoin.first->vout[pcoin.second].nValue) * nTimeWeight / 100000000 / (24 * 60 * 60);



oh you left over some debug print messages Wink