File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -302,8 +302,8 @@ def _get_finalized_head(cls,
302
302
finalized_head_root = cls ._get_finalized_head_root (db )
303
303
return cls ._get_block_by_root (db , Hash32 (finalized_head_root ), block_class )
304
304
305
- @classmethod
306
- def _get_finalized_head_root (cls , db : BaseDB ) -> Hash32 :
305
+ @staticmethod
306
+ def _get_finalized_head_root (db : BaseDB ) -> Hash32 :
307
307
try :
308
308
finalized_head_root = db [SchemaV1 .make_finalized_head_root_lookup_key ()]
309
309
except KeyError :
@@ -323,8 +323,8 @@ def _get_justified_head(cls,
323
323
justified_head_root = cls ._get_justified_head_root (db )
324
324
return cls ._get_block_by_root (db , Hash32 (justified_head_root ), block_class )
325
325
326
- @classmethod
327
- def _get_justified_head_root (cls , db : BaseDB ) -> Hash32 :
326
+ @staticmethod
327
+ def _get_justified_head_root (db : BaseDB ) -> Hash32 :
328
328
try :
329
329
justified_head_root = db [SchemaV1 .make_justified_head_root_lookup_key ()]
330
330
except KeyError :
@@ -405,9 +405,8 @@ def persist_block_chain(
405
405
with self .db .atomic_batch () as db :
406
406
return self ._persist_block_chain (db , blocks , block_class )
407
407
408
- @classmethod
408
+ @staticmethod
409
409
def _set_block_scores_to_db (
410
- cls ,
411
410
db : BaseDB ,
412
411
block : BaseBeaconBlock
413
412
) -> int :
You can’t perform that action at this time.
0 commit comments