Skip to content

Commit

Permalink
made code-ch05 to code-ch12 consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmysong committed Oct 5, 2018
1 parent f609379 commit 70841df
Show file tree
Hide file tree
Showing 25 changed files with 1,140 additions and 1,501 deletions.
6 changes: 0 additions & 6 deletions code-ch04/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ def decode_base58(s):

class HelperTest(TestCase):

def test_bytes(self):
b = b'hello world'
s = 'hello world'
self.assertEqual(b, str_to_bytes(s))
self.assertEqual(s, bytes_to_str(b))

def test_little_endian_to_int(self):
h = bytes.fromhex('99c3980000000000')
want = 10011545
Expand Down
2 changes: 1 addition & 1 deletion code-ch05/Programming Bitcoin Chapter 5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.5.2"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 70841df

Please sign in to comment.