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

Commit bc137bf

Browse files
committed
Merge branch 'develop' of github.com:BlockchainSociety/pyethereum into develop
2 parents 01a3afd + 48e141e commit bc137bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethereum/blocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def __init__(self, header, transaction_list=[], uncles=[], db=None,
492492
state_unknown = (header.prevhash != GENESIS_PREVHASH and
493493
header.state_root != trie.BLANK_ROOT and
494494
(len(header.state_root) != 32 or
495-
'validated:' + self.hash not in db) and
495+
b'validated:' + self.hash not in db) and
496496
not making)
497497
if state_unknown:
498498
assert transaction_list is not None
@@ -566,7 +566,7 @@ def must_le(what, a, b):
566566
"database" % self)
567567
if (not self.is_genesis() and self.nonce and not self.header.check_pow()):
568568
raise ValueError("PoW check failed")
569-
self.db.put('validated:' + self.hash, '1')
569+
self.db.put(b'validated:' + self.hash, '1')
570570

571571
@classmethod
572572
def init_from_header(cls, header_rlp, db):

0 commit comments

Comments
 (0)