Questions tagged [midstate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
292 views

What is the duration of a ban?

I read somewhere that a node is banned for 24 hours. However I found the Misbehaving() function which makes state->fShouldBan = true;. But I could not find any other function that makes state->...
10
votes
1answer
743 views

Did Satoshi intend to allow midstate computation to speed up hashing?

The design of Bitcoin allows computers to compute a hash with 2 iterations of the SHA256 compression function instead of 3 on all but 1 out of every 2^32 attempts. When Satoshi chose SHA256d for ...
4
votes
2answers
1k views

What is a midstate? How does using a midstate speed up hashing?

This defines "midstate" as the "precomputed hash state after hashing the first half of the data." I've heard "midstate" used in the context of speeding up hashing. How does using a midstate speed up ...