24.2 C
New York
Thursday, May 8, 2025

issue retargetting – Recalculating the goal and truncating

Share To Your Friends

[ad_1]

The goal on the block at peak 32,255 was:

0x00000000ffff0000000000000000000000000000000000000000000000000000

After the adjustment, the goal on the next block at peak 32,256 was:

0x00000000d86a0000000000000000000000000000000000000000000000000000

The time between block 30,240 and block 30,255 was 1022578 seconds. If we divide this by the anticipated time over 2016 blocks we get a ratio of:

1022578 / 1209600 = 0.84538525132275

If we multiply the earlier goal by this ratio to get the brand new goal, we get:

0x00000000ffff0000000000000000000000000000000000000000000000000000 * 0.84538525132275 =
0x00000000d86a528bc8bc90000000000000000000000000000000000000000000

What are the foundations for truncating this outcome to get the goal as saved the within the block header?

I perceive that the goal is transformed to bits and loses some precision, however why is it that we’re solely together with the primary two important bytes of d86a once we may embody the three bytes of d86a52 within the bits discipline?

[ad_2]


Share To Your Friends

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles