Errata

Mastering Bitcoin

Errata for Mastering Bitcoin

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
O'Reilly learning platform Page Example 3-6. Retrieving a block and adding all the transaction outputs
Line 7 of rpc_block.py

The blockheight = 775072 presented in the rpc_block.py return a different result. It is returning:
Total value in block: 10322.07722534

If I update the value to 277316 it returns the expected book value.

The value 277316 is the one used in the second edition.

João Thallis  Jan 06, 2024 
ePub Page Legacy Addresses for P2PKH
Example code above the third from last paragraph of the section

When combining the input:
"<Bob's signature> <Bob's public key>"

and output:
"OP_DUP OP_HASH160 <Bob's commitment> OP_EQUAL OP_CHECKSIG"

the text switches the OP_EQUAL to an OP_EQUALVERIFY
"<sig> <pubkey> OP_DUP OP_HASH160 <commitment> OP_EQUALVERIFY OP_CHECKSIG"

David Gumberg  Jan 21, 2024 
PDF Page Using Flow Control in Scripts
5rd paragraph

It is using "fist" instead of "first"

João Thallis  Feb 17, 2024 
Printed Page 13
Figure 1-2

In the example of "Sending and Receiving Bitcoin" Joe will sent 0.001 bitcoins to Alice's Bitcoin address. However in the Figure 1-2 the amount shown is 2,000 sats in stead of 0.001 bitcoins or 100,000 sats.

Jan Jansen  May 09, 2024 
Printed Page 50
Paragraph started with "Our example code..."

The paragraph "Our example code..." intends to show the results of the execution of Example 3.6. This paragraph comes verbatim from the second edition of the book (page 51), where the author used the code in Example 3.6 to query the block with height 277316. However, in the third edition, the block queued is the one with height 775072, and the output returned by the code for that block is 5863.00566521, including 6.25 BTC reward and 0,08799108 BTC in fees.

Thanks the authors for such an useful book. Best regards,

diego

Diego R. Llanos  Apr 24, 2024