Author

Topic: In mining are the rest of target bytes 0 or 255? (Read 176 times)

legendary
Activity: 990
Merit: 1108
legendary
Activity: 1042
Merit: 2805
Bitcoin and C♯ Enthusiast
If nBits is 0x1b0404cb the target according to wiki is calculated as
Code:
0x00000000000404CB000000000000000000000000000000000000000000000000

so does this mean if the block hash was the following it would be rejected?
Code:
0x00000000000404CB000000000000000000000000000000000000000000000001

or do we set the remaining bytes in target to 0xff and then compare it with hash result? (Which means the above block hash could be accepted)
Code:
0x00000000000404CBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Jump to: