just downloaded the current p2pool from git.
Cannot find any networks.py and it seems that something changed at all.
Do you have a new manual/how-to add new altcoins?
Cheers
Hi,
got an Error after running ./run_p2pool.py
Any ideas?
Traceback (most recent call last):
File "run_p2pool.py", line 3, in
from p2pool import main
File "/root/p2pool/p2pool/main.py", line 25, in
from . import networks, web, work
File "/root/p2pool/p2pool/networks/init.py", line 4, in
for module_loader, name, ispkg in pkgutil.iter_modules(path))
File "/root/p2pool/p2pool/networks/init.py", line 4, in
for module_loader, name, ispkg in pkgutil.iter_modules(path))
File "/root/p2pool/p2pool/networks/bitcoin.py", line 1, in
from p2pool.bitcoin import networks
File "/root/p2pool/p2pool/bitcoin/networks/init.py", line 4, in
for module_loader, name, ispkg in pkgutil.iter_modules(path))
File "/root/p2pool/p2pool/bitcoin/networks/init.py", line 4, in
for module_loader, name, ispkg in pkgutil.iter_modules(path))
File "/root/p2pool/p2pool/bitcoin/networks/magicoin.py", line 1, in
from p2pool.bitcoin import networks
ImportError: cannot import name networks
my two files are
import os
import platform
from twisted.internet import defer
from .. import data, helper
from p2pool.util import pack
P2P_PREFIX = ' f0b9b3d6 '.decode('hex')
P2P_PORT = 8233
ADDRESS_VERSION = 20
RPC_PORT = 8232
RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'magicoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
))
SUBSIDY_FUNC = lambda height: 100100000000 >> (height + 1)//1051200
POW_FUNC = data.hash256
BLOCK_PERIOD = 1800 # s
SYMBOL = 'XMG'
CONF_FILE_FUNC = lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Magi') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Magi/') if platform.system() == 'Darwin' else os.path.expanduser('~/.magi'), 'magi.conf')
BLOCK_EXPLORER_URL_PREFIX = 'http://explorer.dot-bit.org/b/'
ADDRESS_EXPLORER_URL_PREFIX = 'http://explorer.dot-bit.org/a/'
TX_EXPLORER_URL_PREFIX = 'http://explorer.dot-bit.org/tx/'
SANE_TARGET_RANGE = (2256//232 - 1, 2256//2*32 - 1)
DUMB_SCRYPT_DIFF = 1
DUST_THRESHOLD = 0.2e8
from p2pool.bitcoin import networks
PARENT = networks.nets['magicoin']
SHARE_PERIOD = 45 # seconds
CHAIN_LENGTH = 246060//30 # shares
REAL_CHAIN_LENGTH = 246060//30 # shares
TARGET_LOOKBEHIND = 200 # shares
SPREAD = 10 # blocks
IDENTIFIER = ''.decode('hex')
PREFIX = ''.decode('hex')
P2P_PORT = 8233
MIN_TARGET = 0
MAX_TARGET = 2256//232 - 1
PERSIST = True
WORKER_PORT = 9322
BOOTSTRAP_ADDRS = ''.split(' ')
ANNOUNCE_CHANNEL = '#p2pool-alt'
VERSION_CHECK = lambda v: 80002 <= v
VERSION_WARNING = lambda v: 'Upgrade Terracoin to >= 0.8.0.4!' if v < 80004 else None