Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

one more payload

  • Loading branch information...
commit df21fcc10f81c9949fc8c3837a1fe7bbd3062ace 1 parent 54359de
@xiangfu xiangfu authored
Showing with 12 additions and 2 deletions.
  1. +12 −2 miner_software/scripts/payload.py
View
14 miner_software/scripts/payload.py
@@ -20,7 +20,7 @@
rmid = midstate.decode('hex')[::-1]
payload = rmid + rdata2
-print("Push payload to icarus: " + binascii.hexlify(payload))
+print("Push payload1 to icarus: " + binascii.hexlify(payload))
ser.write(payload)
b=ser.read(4)
@@ -28,9 +28,19 @@
# Just another test
payload2 = "ce92099c5a80bb81c52990d5c0924c625fd25a535640607d5a4bdf8174e2c8d500000000000000000000000080000000000000000b290c1a42313b4f21b5bcb8"
-print("Push payload to icarus: " + payload2)
+print("Push payload2 to icarus: " + payload2)
ser.write(payload2.decode('hex'))
b=ser.read(4)
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))
+
Please sign in to comment.
Something went wrong with that request. Please try again.