Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/proof-of-work-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def proof_of_work(header, difficulty_bits):

# difficulty from 0 to 31 bits
for difficulty_bits in xrange(32):
difficulty = 2 ** difficulty_bits

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

40

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Start time

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

40

difficulty = 10 ** difficulty_bits

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

40

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

40

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

40

print("Difficulty: %ld (%d bits)" % (difficulty, difficulty_bits))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Star time

print("Starting search...")

Expand Down