Skip to content

Instantly share code, notes, and snippets.

@s0kil
Last active February 22, 2024 20:02
Show Gist options
  • Save s0kil/b35e2982cddc6a2bf822f5952ee4a942 to your computer and use it in GitHub Desktop.
Save s0kil/b35e2982cddc6a2bf822f5952ee4a942 to your computer and use it in GitHub Desktop.
Antminer !!! REG_TYPE = 1

Antminer !!! REG_TYPE = 1

Find The Chain

With the error of 2024-02-22 19:18:10 !!! REG_TYPE = 1. 539042562, take the last value: 539042562, do an and operation with 0xF to get the chain number the reg error is from:

python3 -c "import sys; print(int(sys.argv[1]) & 0xF)" 539042562

Outputs: 2

Error Log Context

2024-02-19 20:52:48 Work job_id 1 nonce2 7041 ntime 65d3bf97
2024-02-19 20:52:48 Generated target 000000000000000000000000000000000000000000000000fcff030000000000
2024-02-19 20:52:48 hashtest_submit: chain 2 which_asic_nonce 101 which_core_nonce 81
2024-02-19 20:52:48 !!! REG_TYPE = 1. 1442621952
2024-02-19 20:52:48 bitmain_c5_scanhash: hashes 1099511627520 ...
2024-02-19 20:52:51 bitmain_c5_scanhash: job_id:0x4   work_id:0x738f   nonce2:0x5e49 nonce3:0x21044e7   version:0x20e00004
2024-02-19 20:52:51 bitmain_c5_scanhash: Chain ID J2 ...
2024-02-19 20:52:51 bitmain_c5_scanhash: given_id:4 job_id:4 switch:0  ...
2024-02-19 20:52:51 Generated stratum merkle bc6599cc83350daec76c9dbc08edaacb098e70db3b970e869b7663c83ff433a4
2024-02-19 20:52:51 Generated stratum header 20e00004927b1f7701de42ebad2df5a2ef418cb116d56cbd00015cde0000000000000000bc6599cc83350daec76c9dbc08edaacb098e70db3b970e869b7663c83ff433a465d3bf97170371b1000000000000008000000000000000000000000000000000000000000000000000000000
2024-02-19 20:52:51 Work job_id 1 nonce2 24137 ntime 65d3bf97
2024-02-19 20:52:51 Generated target 000000000000000000000000000000000000000000000000fcff030000000000
2024-02-19 20:52:51 hash2_32 error
2024-02-19 20:52:51 (null) 0: invalid nonce - HW error
2024-02-19 20:52:51 hashtest_submit: HASH2_32[7] != 0
@s0kil
Copy link
Author

s0kil commented Feb 19, 2024

Outliers

2024-02-19 20:52:48 !!! REG_TYPE = 1. 1442621952
2024-02-19 20:52:51 hash2_32 error
2024-02-19 20:52:51 (null) 0: invalid nonce - HW error

@s0kil
Copy link
Author

s0kil commented Feb 19, 2024

2024-02-19 20:52:45 Work job_id 0 nonce2 3455 ntime 65d3bf83
2024-02-19 20:52:45 Generated target 000000000000000000000000000000000000000000000000fcff030000000000
2024-02-19 20:52:45 hashtest_submit: chain 2 which_asic_nonce 45 which_core_nonce 138
2024-02-19 20:52:45 need data size:476, actual size:476
2024-02-19 20:52:45 bitmain_c5_scanhash: hashes 1099511627520 ...
2024-02-19 20:52:45 bitmain_c5_scanhash: job_id:0x3   work_id:0x6216   nonce2:0xd8e nonce3:0x198b30d4   version:0x20c00004
2024-02-19 20:52:45 bitmain_c5_scanhash: Chain ID J2 ...
2024-02-19 20:52:45 bitmain_c5_scanhash: given_id:3 job_id:3 switch:0  ...
2024-02-19 20:52:45 Generated stratum merkle d760ea56dab5ece6b14ac67781beca45dede113a64f23267d11ba44536708c68
2024-02-19 20:52:45 Generated stratum header 20c00004927b1f7701de42ebad2df5a2ef418cb116d56cbd00015cde0000000000000000d760ea56dab5ece6b14ac67781beca45dede113a64f23267d11ba44536708c6865d3bf83170371b1000000000000008000000000000000000000000000000000000000000000000000000000

@s0kil
Copy link
Author

s0kil commented Feb 19, 2024

2024-02-19 20:52:48 Work job_id 1 nonce2 6539 ntime 65d3bf97
2024-02-19 20:52:48 Generated target 000000000000000000000000000000000000000000000000fcff030000000000
2024-02-19 20:52:48 hashtest_submit: chain 1 which_asic_nonce 102 which_core_nonce 90
2024-02-19 20:52:48 need data size:476, actual size:476
2024-02-19 20:52:48 bitmain_c5_scanhash: hashes 3298534882560 ...
2024-02-19 20:52:48 bitmain_c5_scanhash: job_id:0x4   work_id:0x52cc   nonce2:0x1a31 nonce3:0x5a531bc3   version:0x20600004
2024-02-19 20:52:48 bitmain_c5_scanhash: Chain ID J3 ...
2024-02-19 20:52:48 bitmain_c5_scanhash: given_id:4 job_id:4 switch:0  ...
2024-02-19 20:52:48 Generated stratum merkle ba07830b713de7c06fa4c3ba64404f24dde1fec04a822e345c005aef8df09ea0
2024-02-19 20:52:48 Generated stratum header 20600004927b1f7701de42ebad2df5a2ef418cb116d56cbd00015cde0000000000000000ba07830b713de7c06fa4c3ba64404f24dde1fec04a822e345c005aef8df09ea065d3bf97170371b1000000000000008000000000000000000000000000000000000000000000000000000000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment