Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit cefa2af

Browse files
committed
fix byte/str type mismatch
1 parent b5e8fa7 commit cefa2af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/pow/chain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def add_block(self, block):
365365
self.add_child(block)
366366
self.db.put('head_hash', self.head_hash)
367367
self.db.put(block.hash, rlp.encode(block))
368-
self.db.put(b'changed:'+block.hash, b''.join(list(changed.keys())))
368+
self.db.put(b'changed:'+block.hash, b''.join([k.encode() for k in list(changed.keys())]))
369369
print('Saved %d address change logs' % len(changed.keys()))
370370
self.db.put(b'deletes:'+block.hash, b''.join(deletes))
371371
print('Saved %d trie node deletes for block %d (%s)' % (len(deletes), block.number, utils.encode_hex(block.hash)))

0 commit comments

Comments
 (0)