Author

Topic: [ANN][JPC]MAKE JACKPOTCOIN GREAT AGAIN! - page 338. (Read 470256 times)

sr. member
Activity: 308
Merit: 250
JackpotCoin, Allow people to fully functional stratum mining pools please, we are trying to do something, but all attempts to empty

All the coindev can do is change the algo that means a hardfork. Thats the problems with these new coins each day. They dont speak with us pool ops first.
member
Activity: 116
Merit: 10
JackpotCoin, Allow people to fully functional stratum mining pools please, we are trying to do something, but all attempts to empty




 Angry Angry Angry
sr. member
Activity: 396
Merit: 250
I speak: LT, RU, EN
Send me pm your setting in .bat file please

Just sent an PM message with my bat file contents.
member
Activity: 116
Merit: 10
Send me pm your setting in .bat file please
hero member
Activity: 868
Merit: 1003
We're almost there for the pool!

great... btw jackpot at 8.5 mil, wow!
sr. member
Activity: 396
Merit: 250
I speak: LT, RU, EN
Now getting normal "Accepted" shares on http://jack.mua2k.ru
Is it ready and can we use it? Smiley Or should I leave the pool for now? Smiley

tell me whats miner you use? and give link please

I'm using this miner:
http://public.bomijoa.com/gpuminer_v2s.zip

from this post by JackpotCoin.
member
Activity: 116
Merit: 10
Now getting normal "Accepted" shares on http://jack.mua2k.ru
Is it ready and can we use it? Smiley Or should I leave the pool for now? Smiley

tell me whats miner you use? and give link please
sr. member
Activity: 396
Merit: 250
I speak: LT, RU, EN
Now getting normal "Accepted" shares on http://jack.mua2k.ru
Is it ready and can we use it? Smiley Or should I leave the pool for now? Smiley

P.S. Hashrate is displayed wrong:
sgminer shows 19.33Mh/s, pool shows 2.22 MH/s Smiley
sr. member
Activity: 308
Merit: 250
We're almost there for the pool!

We will not make a pool until the diff for stratum / mpos is clear, to many cheaters sending with fake diff and get all the coins. sorry.
sr. member
Activity: 343
Merit: 250
We're almost there for the pool!
sr. member
Activity: 308
Merit: 250
wait for a pool, hope it will work soon. good job guys.

Waiting for a good xchange.......

WTS: A few mil coins ...... Wink
sr. member
Activity: 266
Merit: 250
DeepOnion - Advancing Privacy and Security
wait for a pool, hope it will work soon. good job guys.
member
Activity: 116
Merit: 10
newbie
Activity: 42
Merit: 0
Tried the pool with new miner (with s letter in the name of zip).
SGMiner starts with "Waiting for work to be available from pools." and after 30s it connects to pool.

Then I'm getting lots of "Share is above target":
Code:
[17:18:36] Rejected cacb7f14 Diff 1.262/1.000 GPU 0  (Share is above target)
[17:18:36] Rejected d46e0012 Diff 1.205/1.000 GPU 0  (Share is above target)
[17:18:37] Accepted 0705952e Diff 36/1.000 GPU 0
[17:18:37] Rejected a4fb7025 Diff 1.552/1.000 GPU 0  (Share is above target)
[17:18:37] Rejected 91953a5b Diff 1.758/1.000 GPU 0  (Share is above target)
[17:18:37] Rejected bef8679c Diff 1.341/1.000 GPU 0  (Share is above target)
[17:18:37] Accepted 1f8d0310 Diff 8.114/1.000 GPU 0
[17:18:37] Rejected 4d313f15 Diff 3.316/1.000 GPU 0  (Share is above target)
[17:18:37] Accepted 30a8aae3 Diff 5.261/1.000 GPU 0
[17:18:37] Rejected b31d0948 Diff 1.429/1.000 GPU 0  (Share is above target)
[17:18:37] Accepted 09ccceba Diff 26/1.000 GPU 0
[17:18:37] Accepted 1df8255b Diff 8.542/1.000 GPU 0
[17:18:37] Rejected 4c4e0352 Diff 3.355/1.000 GPU 0  (Share is above target)
[17:18:37] Accepted 15500557 Diff 12/1.000 GPU 0

I guess I'm trying to early - pool is not set up yet? Smiley

That means, The communication between Pool and Miner is running OK,
but, if Diff is not higher than 4x Diff target (0), it shows an error,
I guess it is related with Pool or Stratum Setting,

Let me tracking also



newbie
Activity: 42
Merit: 0
We are trying to deal with the problem
we need normal stratum-mining for this coin. and update for mpos

It is the codes from subscription.py, and it is broadcast the information to the miner,

Quote

    def on_template(cls, is_new_block):
        '''This is called when TemplateRegistry registers
           new block which we have to broadcast clients.'''
        
        start = Interfaces.timestamper.time()
        clean_jobs = is_new_block
        
        (job_id, prevhash, coinb1, coinb2, merkle_branch, version, nbits, ntime, _, nsuperblock, nroundmask) = \
            Interfaces.template_registry.get_last_broadcast_args()

        # Push new job to subscribed clients
        for subscription in Pubsub.iterate_subscribers(cls.event):
            try:
                if subscription != None:
                    session = subscription.connection_ref().get_session()
                    session.setdefault('authorized', {})
                    if session['authorized'].keys():
                        worker_name = session['authorized'].keys()[0]
                        difficulty = session['difficulty']
                        work_id = Interfaces.worker_manager.register_work(worker_name, job_id, difficulty)            
                        subscription.emit_single(work_id, prevhash, coinb1, coinb2, merkle_branch, version, nbits, ntime, clean_jobs, nsuperblock, nroundmask)
                    else:
                        subscription.emit_single(job_id, prevhash, coinb1, coinb2, merkle_branch, version, nbits, ntime, clean_jobs, nsuperblock, nroundmask)
            except Exception as e:
                log.exception("Error broadcasting work to client %s" % str(e))
                pass
        
        cnt = Pubsub.get_subscription_count(cls.event)
        log.info("BROADCASTED to %d connections in %.03f sec" % (cnt, (Interfaces.timestamper.time() - start)))

To keep the compatibility with the other coin, two fields (nsuperblock, nroundmask) are added on the last parameter array,

it is the generated stratum message

Quote

{"params": ["3ea", "7fa9003135c9c5a9f28a16e43d7e59cd3c972ac7b6edcf71af36788fe6218d63", "0100000044b35f53010000000000000000000000000000000000000000000000000000000000000 000ffffffff26027f0e062f503253482f0444b35f5308", "0d2f7374726174756d506f6f6c2f000000000100e876481700000023210352c7246a18044e7850f 0b90c97c3bd19a0a5f36134795e435f20d8df73eadc76ac00000000", [], "00000004", "1c060264", "535fb344", true, "00000000", "00000007"], "id": null, "method": "mining.notify"}

"params" is an array format, generally, using 8 items, and, old SGMINER/CGMINER just read those 8 parameters only.
with 8 items, 80 bytes headers will be assembled,

and, extra two 4 bytes variables are superblock and roundmask,
with those addtional, 88 bytes header can be completed,

ex) parse_notify function in UTIL.C(sgminer/cgminer), please check this function from the latest sgminer source code
in our repo.

It is the example of BlockHeader

000000047fa9003135c9c5a9f28a16e43d7e59cd3c972ac7b6edcf71af36788fe6218d6344fd219 06f829a5526ccb7420becc82f9441ece5cf80434844bb683311d789fe535fb3441c060264 00000000 00000000 00000007 000000800000000000000000000000000000000000000000000000000000000000000000c002000 0

If parse_notify function has updated correctly, input block header will be assembled like it,
and, Hashing Function will check the 00000007 to decide the hashing method.
and, Hashing Function will use from 88 bytes for the hashing input.
sr. member
Activity: 396
Merit: 250
I speak: LT, RU, EN
Tried the pool with new miner (with s letter in the name of zip).
SGMiner starts with "Waiting for work to be available from pools." and after 30s it connects to pool.

Then I'm getting lots of "Share is above target":
Code:
[17:18:36] Rejected cacb7f14 Diff 1.262/1.000 GPU 0  (Share is above target)
[17:18:36] Rejected d46e0012 Diff 1.205/1.000 GPU 0  (Share is above target)
[17:18:37] Accepted 0705952e Diff 36/1.000 GPU 0
[17:18:37] Rejected a4fb7025 Diff 1.552/1.000 GPU 0  (Share is above target)
[17:18:37] Rejected 91953a5b Diff 1.758/1.000 GPU 0  (Share is above target)
[17:18:37] Rejected bef8679c Diff 1.341/1.000 GPU 0  (Share is above target)
[17:18:37] Accepted 1f8d0310 Diff 8.114/1.000 GPU 0
[17:18:37] Rejected 4d313f15 Diff 3.316/1.000 GPU 0  (Share is above target)
[17:18:37] Accepted 30a8aae3 Diff 5.261/1.000 GPU 0
[17:18:37] Rejected b31d0948 Diff 1.429/1.000 GPU 0  (Share is above target)
[17:18:37] Accepted 09ccceba Diff 26/1.000 GPU 0
[17:18:37] Accepted 1df8255b Diff 8.542/1.000 GPU 0
[17:18:37] Rejected 4c4e0352 Diff 3.355/1.000 GPU 0  (Share is above target)
[17:18:37] Accepted 15500557 Diff 12/1.000 GPU 0

I guess I'm trying to early - pool is not set up yet? Smiley
member
Activity: 116
Merit: 10
Did you fix the 88 byte block header in stratum ?

in coin_jackpotcoin.class.php

Quote
 protected $target_bits = 88;

this?

this:
elif settings.COINDAEMON_ALGO == 'jackpotcoin':
     header_hex = header_hex + "0000000000000007000000800000000000000000000000000000000000000000000000000000000 000000000c0020000"


Quote
if settings.COINDAEMON_ALGO == 'scrypt':
            header_hex = header_hex+"0000008000000000000000000000000000000000000000000000000000000000000000000000000 00000000080020000"
        elif settings.COINDAEMON_ALGO == 'jackpotcoin':
            header_hex = header_hex+"0000000000000007000000800000000000000000000000000000000000000000000000000000000 000000000c0020000"
        else: pass

Do I understand correctly?


Quote


        # 4. Reverse header and compare it with target of the user
        if settings.COINDAEMON_ALGO == 'scrypt':
            hash_bin = ltc_scrypt.getPoWHash(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ]))
        elif settings.COINDAEMON_ALGO == 'jackpotcoin':
            hash_bin = jackpotcoin_hash.gethash(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 22) ]))
        else:
            hash_bin = util.doublesha(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ]))

        hash_int = util.uint256_from_str(hash_bin)
        scrypt_hash_hex = "%064x" % hash_int
        header_hex = binascii.hexlify(header_bin)
        if settings.COINDAEMON_ALGO == 'scrypt':
            header_hex = header_hex+"0000008000000000000000000000000000000000000000000000000000000000000000000000000 00000000080020000"
        elif settings.COINDAEMON_ALGO == 'jackpotcoin':
            header_hex = header_hex+"000000800000000000000000000000000000000000000000000000000000000000000000c002000 0"
        else: pass

two check points

      88bytes are used to get hash into hash_bin,
      so, padding size is 40 bytes,
      and, block length is 88 x 8 = 0x02c0
      it will complete the header_hex



U have complate edit this file? please upload on sendspace.com
newbie
Activity: 42
Merit: 0
Did you fix the 88 byte block header in stratum ?

in coin_jackpotcoin.class.php

Quote
 protected $target_bits = 88;

this?

this:
elif settings.COINDAEMON_ALGO == 'jackpotcoin':
     header_hex = header_hex + "0000000000000007000000800000000000000000000000000000000000000000000000000000000 000000000c0020000"


Quote
if settings.COINDAEMON_ALGO == 'scrypt':
            header_hex = header_hex+"0000008000000000000000000000000000000000000000000000000000000000000000000000000 00000000080020000"
        elif settings.COINDAEMON_ALGO == 'jackpotcoin':
            header_hex = header_hex+"0000000000000007000000800000000000000000000000000000000000000000000000000000000 000000000c0020000"
        else: pass

Do I understand correctly?


Quote


        # 4. Reverse header and compare it with target of the user
        if settings.COINDAEMON_ALGO == 'scrypt':
            hash_bin = ltc_scrypt.getPoWHash(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ]))
        elif settings.COINDAEMON_ALGO == 'jackpotcoin':
            hash_bin = jackpotcoin_hash.gethash(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 22) ]))
        else:
            hash_bin = util.doublesha(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ]))

        hash_int = util.uint256_from_str(hash_bin)
        scrypt_hash_hex = "%064x" % hash_int
        header_hex = binascii.hexlify(header_bin)
        if settings.COINDAEMON_ALGO == 'scrypt':
            header_hex = header_hex+"0000008000000000000000000000000000000000000000000000000000000000000000000000000 00000000080020000"
        elif settings.COINDAEMON_ALGO == 'jackpotcoin':
            header_hex = header_hex+"000000800000000000000000000000000000000000000000000000000000000000000000c002000 0"
        else: pass

two check points

      88bytes are used to get hash into hash_bin,
      so, padding size is 40 bytes,
      and, block length is 88 x 8 = 0x02c0
      it will complete the header_hex
member
Activity: 116
Merit: 10
Did you fix the 88 byte block header in stratum ?

in coin_jackpotcoin.class.php

Quote
  protected $target_bits = 88;

this?

this:
elif settings.COINDAEMON_ALGO == 'jackpotcoin':
     header_hex = header_hex + "0000000000000007000000800000000000000000000000000000000000000000000000000000000 000000000c0020000"



Quote
if settings.COINDAEMON_ALGO == 'scrypt':
            header_hex = header_hex+"0000008000000000000000000000000000000000000000000000000000000000000000000000000 00000000080020000"
        elif settings.COINDAEMON_ALGO == 'jackpotcoin':
            header_hex = header_hex+"0000000000000007000000800000000000000000000000000000000000000000000000000000000 000000000c0020000"
        else: pass

Do I understand correctly?
sr. member
Activity: 308
Merit: 250
Did you fix the 88 byte block header in stratum ?

in coin_jackpotcoin.class.php

Quote
  protected $target_bits = 88;

this?

this:
elif settings.COINDAEMON_ALGO == 'jackpotcoin':
     header_hex = header_hex + "0000000000000007000000800000000000000000000000000000000000000000000000000000000 000000000c0020000"
Jump to: