Example #1
0
#!/usr/bin/env python
import sys
import time
import uuid
import signal
from argparse import ArgumentParser
import logging
import logging.config

# this must be called before all other import to enable full qualified import
from common import enable_full_qualified_import
enable_full_qualified_import()

from pyethereum.utils import configure_logging
from pyethereum.utils import data_dir
from pyethereum.utils import get_db_path
from pyethereum.utils import sha3
from pyethereum.signals import config_ready
from pyethereum.tcpserver import tcp_server
from pyethereum.peermanager import peer_manager
from pyethereum.apiserver import api_server
from pyethereum.packeter import Packeter
from pyethereum.db import DB
import pyethereum.config as konfig
from . import __version__
logger = logging.getLogger(__name__)

try:
    import pyethereum.monkeypatch
    logger.info("Loaded your customizations from monkeypatch.py")
except ImportError, e:
Example #2
0
#!/usr/bin/env python
import os
import sys
import time
import signal
from argparse import ArgumentParser

# this must be called before all other import to enable full qualified import
from common import enable_full_qualified_import

enable_full_qualified_import()

#from pyethereum.utils import data_dir
from pyethereum.signals import config_ready
from pyethereum.tcpserver import tcp_server
from pyethereum.peermanager import peer_manager
from pyethereum.apiserver import api_server
from pyethereum.packeter import Packeter
from pyethereum.chainmanager import chain_manager
from pyethereum.db import DB
from pyethereum.utils import db_path
import pyethereum.slogging
import pyethereum.config as konfig
from . import __version__

pyethereum.slogging.configure()
log = pyethereum.slogging.get_logger()

try:
    import pyethereum.monkeypatch
    log.critical("Loaded your customizations from monkeypatch.py")