Bitcoin Forum
August 06, 2024, 07:42:03 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [23] 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 ... 360 »
  Print  
Author Topic: [ANN][JPC]MAKE JACKPOTCOIN GREAT AGAIN!  (Read 470231 times)
Mikellev
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
April 29, 2014, 01:26:59 PM
 #441

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"
mamaspaliLa
Member
**
Offline Offline

Activity: 116
Merit: 10


View Profile
April 29, 2014, 01:45:26 PM
 #442

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?
jpcsupport
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
April 29, 2014, 01:52:46 PM
 #443

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
mamaspaliLa
Member
**
Offline Offline

Activity: 116
Merit: 10


View Profile
April 29, 2014, 02:06:02 PM
 #444

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
zuludrag
Sr. Member
****
Offline Offline

Activity: 396
Merit: 250

I speak: LT, RU, EN


View Profile WWW
April 29, 2014, 02:21:36 PM
 #445

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

jpcsupport
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
April 29, 2014, 02:22:11 PM
 #446

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.
jpcsupport
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
April 29, 2014, 02:28:35 PM
 #447

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



mamaspaliLa
Member
**
Offline Offline

Activity: 116
Merit: 10


View Profile
April 29, 2014, 02:52:55 PM
 #448

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.


i have this file subscription.py but my miner have HW or rejected...
crypto-rainbow
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


DeepOnion - Advancing Privacy and Security


View Profile WWW
April 29, 2014, 03:53:49 PM
 #449

wait for a pool, hope it will work soon. good job guys.

         ▄███████████████▄
       ▄██▀             ▀██▄
    ▄▄██▀                 ▀██▄▄
█████▀▀       ▄▀▀▀▀▀▀▀▄▄    ▀▀█████
██          ▄▀ ▄▄▄▀▀▀▀▄▀█▄▄      ██
▐█▌       ▄▀ ▄▀ ▄▄▄▀▀▀▄▀▀▀███   ▐█▌
 ██      ▄▀▄▀▄▀▀▄▄▄▀▀▀▀▀█ ▄█▀   ██
 ▐█▌    █▄▀▄▀▄█▀▀▀ ▀█▀ ▄▀▄▀█   ▐█▌
  ██    █▄▀▄▀▄▄█▀ ▄▀ ▄▀▄▀▄▀█   ██
  ▐█▌ ▀▄█████▀▄▄▀▀▄▄▀▄▀▄▀▄▀█  ▐█▌
   ██▌▀████▀██▄▄▀▀▄▄▀▄▀▄▀▄█▀ ▐██
    ██▌▀█▀▀█▄▀▀▄▀▀▄▄▀▄█▄▄█▀ ▐██
     ██▌ ▀  ▀███▄▄▄█████▀  ▐██
      ██▄      ▀▀▀▀▀      ▄██
       ▀██▄             ▄██▀
         ▀██▄         ▄██▀
           ▀██▄     ▄██▀
             ▀███▄███▀
               ▀███▀
DeepOnion 
★ ★ ★ ★ ★   ❱❱❱ JOIN AIRDROP NOW!
TOR INTEGRATED & SECURED
★  Your Anonymity Guaranteed
★  Your Assets Secured by TOR
★  Guard Your Privacy!
|Bitcointalk
Reddit
Telegram
|                        ▄▄▀▄▄▀▄▄▀▄▀▀
                    ▄▄██▀█▀▄▀▀▀
                  ▄██▄█▄██▀
                ▄██████▀
              ▄██████▀
  ▄█▄▄▄▄▄▄▄▄▄██████▀
██████▀▀▀▀▀██████▀
 ▀█████  ▄███████
  ████████████▀██
  ██▀███████▀  ██
  ██ ▀████▀    ██
  ██   ▀▀      ██
  ▀█████████████▀
Mikellev
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
April 29, 2014, 03:54:59 PM
 #450

wait for a pool, hope it will work soon. good job guys.

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

WTS: A few mil coins ...... Wink
JackpotCoin (OP)
Sr. Member
****
Offline Offline

Activity: 343
Merit: 250


View Profile
April 29, 2014, 04:13:26 PM
 #451

We're almost there for the pool!
Mikellev
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
April 29, 2014, 04:15:58 PM
 #452

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.
zuludrag
Sr. Member
****
Offline Offline

Activity: 396
Merit: 250

I speak: LT, RU, EN


View Profile WWW
April 29, 2014, 04:33:46 PM
 #453

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

mamaspaliLa
Member
**
Offline Offline

Activity: 116
Merit: 10


View Profile
April 29, 2014, 04:37:16 PM
 #454

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
zuludrag
Sr. Member
****
Offline Offline

Activity: 396
Merit: 250

I speak: LT, RU, EN


View Profile WWW
April 29, 2014, 04:40:17 PM
 #455

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.

valley365
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1003


View Profile
April 29, 2014, 04:41:25 PM
 #456

We're almost there for the pool!

great... btw jackpot at 8.5 mil, wow!
mamaspaliLa
Member
**
Offline Offline

Activity: 116
Merit: 10


View Profile
April 29, 2014, 04:45:25 PM
 #457

Send me pm your setting in .bat file please
zuludrag
Sr. Member
****
Offline Offline

Activity: 396
Merit: 250

I speak: LT, RU, EN


View Profile WWW
April 29, 2014, 04:49:18 PM
 #458

Send me pm your setting in .bat file please

Just sent an PM message with my bat file contents.

mamaspaliLa
Member
**
Offline Offline

Activity: 116
Merit: 10


View Profile
April 29, 2014, 05:12:33 PM
Last edit: April 29, 2014, 05:23:02 PM by mamaspaliLa
 #459

JackpotCoin, Allow people to fully functional stratum mining pools please, we are trying to do something, but all attempts to empty




 Angry Angry Angry
Mikellev
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
April 29, 2014, 05:17:46 PM
 #460

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.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [23] 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 ... 360 »
  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!