Pages:
Author

Topic: j-Coin information thread - page 9. (Read 30886 times)

newbie
Activity: 53
Merit: 0
August 04, 2013, 04:10:26 AM
Just in case anybody needs it (or is to lazy to edit two lines from the YAC cpuminer). Here's a modified version of cpuminer that should work with j-coin. Note, I just started testing it and I haven't gotten any blocks yet.

https://mega.co.nz/#!VcRhhSYb!V-1OVB8nOWWd9NndKCLzZnWdZw0pwl1AqJQ-Xll8SNg

Modified from mikaelh's source here -> http://yacointalk.com/index.php/topic,264.0.html
member
Activity: 75
Merit: 10
August 04, 2013, 03:33:30 AM
45 j-coins in my breakfast, these bastards better be worth somfin
hero member
Activity: 686
Merit: 504
always the student, never the master.
August 04, 2013, 03:02:09 AM
Ok maybe it's just early here, but I'm still not following you. Are you saying I should use the original mehcoin source and modify that.  I tried modifying dogtownheros source but couldn't get it to run.

Why don't people just publish working code? The only reason I even want to use it is to try my modded GPU miner, which I can't without jcoind or a pool.



actually yes, if you modify mehcoin to the specifications of j-coin it should work, as long as everythings the same

ports
maxmint proof of work
maxmoney
targettimespan
pow target spacing
block rewards
genesis
merkle
nNonce
epoch
timestamp
etc.


. in fact DogtownHero should get on that asap....
hero member
Activity: 820
Merit: 1000
August 04, 2013, 02:55:31 AM
Ok maybe it's just early here, but I'm still not following you. Are you saying I should use the original mehcoin source and modify that.  I tried modifying dogtownheros source but couldn't get it to run.

Why don't people just publish working code? The only reason I even want to use it is to try my modded GPU miner, which I can't without jcoind or a pool.

hero member
Activity: 686
Merit: 504
always the student, never the master.
August 04, 2013, 02:39:55 AM
It compiles but assert (see my post above where I talk about the suggested fix and how this fix doesn't work in many ways).

Also the source .7z contains the mehcoind binary in src/.

ok i will give you the correct variables. its up to you to plug them in

Code:
block.GetHash() == 00000d2ce10281089f47d707942122e011925e22a33aa06dd13959b12c1b80db
block.hashMerkleRoot == 0e7abe3621183101283aa99a5b1fa9d345a1a6f56d90faa8b384b3af6e0d69bb
block.nTime = 1375158531
block.nNonce = 829036
CBlock(hash=00000d2ce10281089f47, ver=1, hashPrevBlock=00000000000000000000, hashMerkleRoot=0e7abe3621, nTime=1375158531, nBits=1e0fffff, nNonce=829036, vtx=1, vchBlockSig=)
  Coinbase(hash=0e7abe3621, nTime=1375158511, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 04ffff001d020f271d5475652c203330204a756c20323031332030343a32383a303620474d54)
    CTxOut(empty)
  vMerkleTree: 0e7abe3621
SetBestChain: new best=00000d2ce10281089f47  height=0  trust=1  date=07/30/13 04:28:51




That breaks down to:

merkle = 0x0e7abe3621183101283aa99a5b1fa9d345a1a6f56d90faa8b384b3af6e0d69bb

genblock = 0x00000d2ce10281089f47d707942122e011925e22a33aa06dd13959b12c1b80db

nTime = 1375158531

nNonce = 829036

please let me know if that fixes it.

Umm the version of main.cpp in the source is different to this.  The genesis block line is commented out.  WTF is going on?

thats the old genesis block. this was built on mehcoin, shakezula likes to comment everything out to give you an idea of what all has been changed.
hero member
Activity: 820
Merit: 1000
August 04, 2013, 01:58:50 AM
It compiles but assert (see my post above where I talk about the suggested fix and how this fix doesn't work in many ways).

Also the source .7z contains the mehcoind binary in src/.

ok i will give you the correct variables. its up to you to plug them in

Code:
block.GetHash() == 00000d2ce10281089f47d707942122e011925e22a33aa06dd13959b12c1b80db
block.hashMerkleRoot == 0e7abe3621183101283aa99a5b1fa9d345a1a6f56d90faa8b384b3af6e0d69bb
block.nTime = 1375158531
block.nNonce = 829036
CBlock(hash=00000d2ce10281089f47, ver=1, hashPrevBlock=00000000000000000000, hashMerkleRoot=0e7abe3621, nTime=1375158531, nBits=1e0fffff, nNonce=829036, vtx=1, vchBlockSig=)
  Coinbase(hash=0e7abe3621, nTime=1375158511, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 04ffff001d020f271d5475652c203330204a756c20323031332030343a32383a303620474d54)
    CTxOut(empty)
  vMerkleTree: 0e7abe3621
SetBestChain: new best=00000d2ce10281089f47  height=0  trust=1  date=07/30/13 04:28:51




That breaks down to:

merkle = 0x0e7abe3621183101283aa99a5b1fa9d345a1a6f56d90faa8b384b3af6e0d69bb

genblock = 0x00000d2ce10281089f47d707942122e011925e22a33aa06dd13959b12c1b80db

nTime = 1375158531

nNonce = 829036

please let me know if that fixes it.

Umm the version of main.cpp in the source is different to this.  The genesis block line is commented out.  WTF is going on?
hero member
Activity: 686
Merit: 504
always the student, never the master.
August 04, 2013, 12:18:39 AM
Can't run with win7 64bit ,how to do it?


if you installed with Jinstaller:

1. right click the program icon on your desktop
 
2. click properties in the drop down menu.
 
3. then click on the "Compatibility" tab.

4. select the checkbox that says "run this program in compatibility for..." "Windows XP Service Pack 3"  should be the first option. if its not, select it from the drop down menu.

5. click apply.

6. run the program.
newbie
Activity: 46
Merit: 0
August 04, 2013, 12:13:40 AM
Can't run with win7 64bit ,how to do it?
hero member
Activity: 686
Merit: 504
always the student, never the master.
August 03, 2013, 10:50:19 PM
It compiles but assert (see my post above where I talk about the suggested fix and how this fix doesn't work in many ways).

Also the source .7z contains the mehcoind binary in src/.

ok i will give you the correct variables. its up to you to plug them in

Code:
block.GetHash() == 00000d2ce10281089f47d707942122e011925e22a33aa06dd13959b12c1b80db
block.hashMerkleRoot == 0e7abe3621183101283aa99a5b1fa9d345a1a6f56d90faa8b384b3af6e0d69bb
block.nTime = 1375158531
block.nNonce = 829036
CBlock(hash=00000d2ce10281089f47, ver=1, hashPrevBlock=00000000000000000000, hashMerkleRoot=0e7abe3621, nTime=1375158531, nBits=1e0fffff, nNonce=829036, vtx=1, vchBlockSig=)
  Coinbase(hash=0e7abe3621, nTime=1375158511, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 04ffff001d020f271d5475652c203330204a756c20323031332030343a32383a303620474d54)
    CTxOut(empty)
  vMerkleTree: 0e7abe3621
SetBestChain: new best=00000d2ce10281089f47  height=0  trust=1  date=07/30/13 04:28:51




That breaks down to:

merkle = 0x0e7abe3621183101283aa99a5b1fa9d345a1a6f56d90faa8b384b3af6e0d69bb

genblock = 0x00000d2ce10281089f47d707942122e011925e22a33aa06dd13959b12c1b80db

nTime = 1375158531

nNonce = 829036

please let me know if that fixes it.
member
Activity: 63
Merit: 10
August 03, 2013, 09:59:23 PM
I cann't get block anymore!
legendary
Activity: 1937
Merit: 1001
August 03, 2013, 05:30:06 PM
*watching*
*rolling out botnet*
member
Activity: 105
Merit: 10
August 03, 2013, 05:26:29 PM
It compiles but assert (see my post above where I talk about the suggested fix and how this fix doesn't work in many ways).

Also the source .7z contains the mehcoind binary in src/.
hero member
Activity: 820
Merit: 1000
August 03, 2013, 05:23:05 PM
Seriously has anyone managed to compile this for Linux? I can't even get the zip file to unzip into the right paths so the makefile doesn't work.

Also where are the pool details?
sr. member
Activity: 252
Merit: 250
August 03, 2013, 01:54:02 PM
Is it possible to make some changes in YAC GPUminer to make it work with J-coin?
not sure any changes are needed but i found the hashrate 10 times lower than with CPU
member
Activity: 105
Merit: 10
August 03, 2013, 01:49:46 PM
Actually this coin is already DEAD, because of '1 coin per block'

But little bit interest, how this coin works.....

K.

The genisblock line fixed? Thanks

replace line 2588

with

Code:
assert(block.GetHash("0x000000c249386a215da8af52ccf04a8d8b175146844a73f0b6bfb25aa5081e50") == hashGenesisBlock);


2588? That's

        if (!block.AddToBlockIndex(nFile, nBlockPos))

maybe 2580?

edit, yep, you're right.

then

Code:
main.cpp: In function âbool LoadBlockIndex(bool)â:
main.cpp:2580:9: error: no matching function for call to âCBlock::GetHash(const char [67])â
main.cpp:2580:9: note: candidate is:
main.h:908:13: note: uint256 CBlock::GetHash() const
main.h:908:13: note:   candidate expects 0 arguments, 1 provided
make: *** [obj/main.o] Error 1


uploaded a fix for main.cpp

try it

https://docs.google.com/file/d/0B5V5vln-sS3EUllBZE9yZkh3VTA/edit?usp=sharing

The main.cpp from this link is totally different from the one of the 7z source package. It has the assert line fix mentionned earlier but also a lot of other changes, and anyway it doesn't compile (getHash is expecting 0 arguments and lots of other errors).

Here is the diff on main.cpp:
Code:
43c43
< int64 nChainStartTime = 1374863975;
---
> int64 nChainStartTime = 1375158511;
980a981,984
> static const int64 nMin = .777 * COIN;
> static const int nA = 777;
> static const int nB = 228.7992277992278;
> static const int nMult = 1.5;
984c988
<     int64 nSubsidy = 1 * COIN;
---
>     int64 nSubsidy = (nMult * 5.18) * COIN;
986c990
< if (nHeight == 1)
---
> if (nHeight == 1) //giveaway *777 coins
988c992
<     nSubsidy= 777 * COIN;
---
>     nSubsidy= (518 * nMult) * COIN;
990c994
< else if (nHeight == 2)
---
> else if (nHeight == 7)
992c996
< nSubsidy = 210000 * COIN;
---
> nSubsidy = (nA * nB) * COIN;
994c998
< else if (nHeight < 2000 && nHeight > 2)
---
> else if (nHeight < 2000 && nHeight > 8)
1019c1023
< else {nSubsidy = 10 * COIN;}
---
> else {nSubsidy = (nMult * 5.18) * COIN;}
1023a1028,1032
> //prevent subsidy from dropping under 1 coin due to the subsidy halving
> if (nSubsidy < nMin)
>     {
>         nSubsidy = nMin;
>     }
1038c1047
< static const int64 nTargetTimespan = 1 * 30;  // 30 second blocks
---
> static const int64 nTargetTimespan = 12 * 60;  // every 12 minutes
2532,2537c2541,2545
<         // Genesis Block:
<         // CBlock(hash=000000000019d6, ver=1, hashPrevBlock=00000000000000, hashMerkleRoot=4a5e1e, nTime=1231006505, nBits=1d00ffff, nNonce=2083236893, vtx=1)
<         //   CTransaction(hash=4a5e1e, ver=1, vin.size=1, vout.size=1, nLockTime=0)
<         //     CTxIn(COutPoint(000000, -1), coinbase 04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73)
<         //     CTxOut(nValue=50.00000000, scriptPubKey=0x5F1DF16B2B704C8A578D0B)
<         //   vMerkleTree: 4a5e1e
---
>         CBlock(hash=000000c249386a215da8, ver=1, hashPrevBlock=00000000000000000000, hashMerkleRoot=7a550e40fe, nTime=1375158511, nBits=1e0fffff, nNonce=3716373, vtx=1, vchBlockSig=)
>         Coinbase(hash=7a550e40fe, nTime=1375158491, ver=1, vin.size=1, vout.size=1, nLockTime=0)
>         CTxIn(COutPoint(0000000000, 4294967295), coinbase 04ffff001d020f271d5475652c203330204a756c20323031332030343a32383a303620474d54)
>         CTxOut(empty)
>         vMerkleTree: 7a550e40fe
2540c2548
<         const char* pszTimestamp = "MehCoin? Really? How damn easy can one person make this??";
---
>         const char* pszTimestamp = "Tue, 30 Jul 2013 04:28:06 GMT";
2554c2562
<         block.nNonce   = 3444140;
---
>         block.nNonce   = 3716373
2556c2564
   if (true  && (block.GetHash() != hashGenesisBlock)) {
---
   if (false  && (block.GetHash() != hashGenesisBlock)) {
2577c2585
<         assert(block.hashMerkleRoot == uint256("0x6200a3522fa96dfa4309ddf105c0009ea3e6487ecbded73bcdee0fe664ff3df0"));
---
>         assert(block.hashMerkleRoot == uint256("0x7a550e40fea56322b3d4e9a1cf7d5d8a5d1a7d26f18645cc0d3c0635bbdc80e7"));
2580c2588
<         assert(block.GetHash() == hashGenesisBlock);
---
>         assert(block.GetHash(0x000000c249386a215da8af52ccf04a8d8b175146844a73f0b6bfb25aa5081e50) == hashGenesisBlock);
4193a4202
>     //thanks adam m for this fix to override nBits.
4195c4204
<             pblock->vtx[0].vout[0].nValue = GetProofOfWorkReward(pblock->nBits);
---
>             pblock->vtx[0].vout[0].nValue = GetProofOfWorkReward(pindexPrev->nHeight+1, nFees, pindexPrev->GetBlockHash());

So what's going on? Can the sources be re-released with the fix? Thanks.
member
Activity: 70
Merit: 10
j-coin//just 4 cpu's
August 03, 2013, 08:56:24 AM
what exact nChainStartTime???
in source is 1374863975 but more later on this message
https://bitcointalksearch.org/topic/m.2858033 is 1375158511

the second one is correct
legendary
Activity: 1246
Merit: 1000
August 03, 2013, 08:52:37 AM
what exact nChainStartTime???
in source is 1374863975 but more later on this message
https://bitcointalksearch.org/topic/m.2858033 is 1375158511
full member
Activity: 182
Merit: 100
August 03, 2013, 08:36:41 AM
Well that's a good sign... when it lasts a few hours. Should be on Cryptsy by this afternoon.
hero member
Activity: 686
Merit: 504
always the student, never the master.
August 03, 2013, 07:42:50 AM
this coin survived through the night with all the bigboys throwing as much hash at it as they could, trying to drop it off at high diff. its still standing and going strong, retargeting like a beast.
hero member
Activity: 686
Merit: 504
always the student, never the master.
August 03, 2013, 06:22:41 AM
With such complexity is sourced it should cost 1jcoin/0.5BTC  Grin

no 10 btc per j-coin! gah!
Pages:
Jump to: