@@ -108,22 +108,22 @@ def __init__(self,
108
108
nonce : bytes = GENESIS_NONCE ) -> None :
109
109
...
110
110
111
- def __init__ (self , # noqa: F811
112
- difficulty ,
113
- block_number ,
114
- gas_limit ,
115
- timestamp = None ,
116
- coinbase = ZERO_ADDRESS ,
117
- parent_hash = ZERO_HASH32 ,
118
- uncles_hash = EMPTY_UNCLE_HASH ,
119
- state_root = BLANK_ROOT_HASH ,
120
- transaction_root = BLANK_ROOT_HASH ,
121
- receipt_root = BLANK_ROOT_HASH ,
122
- bloom = 0 ,
123
- gas_used = 0 ,
124
- extra_data = b'' ,
125
- mix_hash = ZERO_HASH32 ,
126
- nonce = GENESIS_NONCE ):
111
+ def __init__ (self , # type: ignore # noqa: F811
112
+ difficulty : int ,
113
+ block_number : int ,
114
+ gas_limit : int ,
115
+ timestamp : int = None ,
116
+ coinbase : Address = ZERO_ADDRESS ,
117
+ parent_hash : Hash32 = ZERO_HASH32 ,
118
+ uncles_hash : Hash32 = EMPTY_UNCLE_HASH ,
119
+ state_root : Hash32 = BLANK_ROOT_HASH ,
120
+ transaction_root : Hash32 = BLANK_ROOT_HASH ,
121
+ receipt_root : Hash32 = BLANK_ROOT_HASH ,
122
+ bloom : int = 0 ,
123
+ gas_used : int = 0 ,
124
+ extra_data : bytes = b'' ,
125
+ mix_hash : Hash32 = ZERO_HASH32 ,
126
+ nonce : bytes = GENESIS_NONCE ) -> None :
127
127
if timestamp is None :
128
128
timestamp = int (time .time ())
129
129
super ().__init__ (
@@ -163,7 +163,7 @@ def mining_hash(self) -> Hash32:
163
163
return keccak (rlp .encode (self [:- 2 ], MiningHeader ))
164
164
165
165
@property
166
- def hex_hash (self ):
166
+ def hex_hash (self ) -> str :
167
167
return encode_hex (self .hash )
168
168
169
169
@classmethod
0 commit comments