kopia lustrzana https://github.com/bugout-dev/moonstream
Clean up code.
rodzic
7fe587fdbc
commit
59f8f22b2e
|
@ -2,8 +2,6 @@ import argparse
|
|||
import json
|
||||
import hashlib
|
||||
import itertools
|
||||
from pickle import TRUE
|
||||
from pprint import pprint
|
||||
import logging
|
||||
from random import random
|
||||
from typing import List, Any
|
||||
|
@ -273,8 +271,6 @@ def parse_jobs(jobs, blockchain_type, block_number):
|
|||
# reverse call_tree
|
||||
call_tree_levels = sorted(calls.keys(), reverse=True)[:-1]
|
||||
|
||||
pprint(calls)
|
||||
|
||||
engine = create_moonstream_engine(
|
||||
MOONSTREAM_DB_URI_READ_ONLY,
|
||||
pool_pre_ping=True,
|
||||
|
@ -318,8 +314,6 @@ def parse_jobs(jobs, blockchain_type, block_number):
|
|||
finally:
|
||||
db_session.close()
|
||||
|
||||
print(responces)
|
||||
|
||||
|
||||
def handle_crawl(args: argparse.Namespace) -> None:
|
||||
|
||||
|
|
|
@ -19,12 +19,6 @@ def view_call_to_label(
|
|||
"""
|
||||
Creates a label model.
|
||||
|
||||
"result": calls[index]["method"].decode_output(encoded_data[1]),
|
||||
"hash": calls[index]["hash"],
|
||||
"address": calls[index]["address"],
|
||||
"name": calls[index]["method"].name,
|
||||
"inputs": calls[index]["inputs"],
|
||||
"block_number": block_number,
|
||||
"""
|
||||
label_model = get_label_model(blockchain_type)
|
||||
label = label_model(
|
||||
|
|
Ładowanie…
Reference in New Issue