Skip to content

Commit

Permalink
one more payload
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangfu committed Jul 10, 2012
1 parent 54359de commit df21fcc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions miner_software/scripts/payload.py
Expand Up @@ -20,17 +20,27 @@
rmid = midstate.decode('hex')[::-1] rmid = midstate.decode('hex')[::-1]
payload = rmid + rdata2 payload = rmid + rdata2


print("Push payload to icarus: " + binascii.hexlify(payload)) print("Push payload1 to icarus: " + binascii.hexlify(payload))
ser.write(payload) ser.write(payload)


b=ser.read(4) b=ser.read(4)
print("Result:(should be: 063c5e01): " + binascii.hexlify(b)) print("Result:(should be: 063c5e01): " + binascii.hexlify(b))


# Just another test # Just another test
payload2 = "ce92099c5a80bb81c52990d5c0924c625fd25a535640607d5a4bdf8174e2c8d500000000000000000000000080000000000000000b290c1a42313b4f21b5bcb8" payload2 = "ce92099c5a80bb81c52990d5c0924c625fd25a535640607d5a4bdf8174e2c8d500000000000000000000000080000000000000000b290c1a42313b4f21b5bcb8"
print("Push payload to icarus: " + payload2) print("Push payload2 to icarus: " + payload2)
ser.write(payload2.decode('hex')) ser.write(payload2.decode('hex'))


b=ser.read(4) b=ser.read(4)
print("Result:(should be: 8e0b31c5): " + binascii.hexlify(b)) print("Result:(should be: 8e0b31c5): " + binascii.hexlify(b))



# Just another test
# Block 171874 nonce = (0xa2870100) = 0x000187a2
payload3 = "4679ba4ec99876bf4bfe086082b400254df6c356451471139a3afa71e48f544a000000000000000000000000000000000000000087320b1a1426674f2fa722ce"
print("Push payload3 to icarus: " + payload3)
ser.write(payload3.decode('hex'))

b=ser.read(4)
print("Result:(should be: 000187a3): " + binascii.hexlify(b))

0 comments on commit df21fcc

Please sign in to comment.