If nBits is 0x1b0404cb the target according to wiki is calculated as
0x00000000000404CB000000000000000000000000000000000000000000000000
so does this mean if the block hash was the following it would be rejected?
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)
0x00000000000404CBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF