# Path: pycoind/coins/litecoin.py
# class Litecoin(coin.Coin):
#     name = "litecoin"
# 
#     # https://github.com/litecoin-project/litecoin/blob/master-0.8/src/main.cpp#L1085
#     @staticmethod
#     def block_creation_fee(block):
#         return (50 * 100000000) >> (block.height // 840000)
# 
#     @staticmethod
#     def proof_of_work(block_header):
#         block_header = block_header[:80]
#         return util.scrypt(block_header, block_header, 1024, 1, 1, 32)
# 
#     symbols = [ 'LTC' ]
#     symbol = symbols[0]
# 
#     # See: https://github.com/litecoin-project/litecoin/blob/master-0.8/src/net.cpp#L1194
#     dns_seeds = [
#         ("dnsseed.litecointools.com", 9333),
#         ("dnsseed.litecoinpool.org", 9333),
#         ("dnsseed.ltc.xurious.com", 9333),
#         ("dnsseed.koin-project.com", 9333),
#         ("dnsseed.weminemnc.com", 9333),
#     ]
# 
#     port = 9333
#     rpc_port = 9332
# 
#     genesis_version = 1
#     genesis_block_hash = 'e2bf047e7e5a191aa4ef34d314979dc9986e0f19251edaba5940fd1fe365a712'.decode('hex')
#     genesis_merkle_root = 'd9ced4ed1130f7b7faad9be25323ffafa33232a17c3edf6cfd97bee6bafbdd97'.decode('hex')
#     genesis_timestamp = 1317972665
#     genesis_bits = 504365040
#     genesis_nonce = 2084524493
# 
#     # https://github.com/litecoin-project/litecoin/blob/master-0.8/src/main.cpp#L3082
#     magic = '\xfb\xc0\xb6\xdb'
# 
#     alert_public_key = '040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9'.decode('hex')
#     address_version = chr(48)
# 
#     block_height_guess = [
#         ('chain.so', util.fetch_url_json_path_int('https://chain.so/api/v2/get_info/LTC', 'data/blocks')),
#         ('blockr.io', util.fetch_url_json_path_int('http://ltc.blockr.io/api/v1/coin/info', 'data/last_block/nb')),
#     ]


import coin
from .litecoin import Litecoin
    dns_seeds = [
        ("dnsseed.novacoin.su", 7777),
        ("dnsseed.novacoin.ru", 7777),
        ("dnsseed.novacoin.in", 7777),
    ]

    # The default port this coin listens on; should not be on an otherwise
    # well-known port and not in the OS' ephemeral port range (>= 49152)
    # Usually in chainparams.cpp or protocol.h
    port = 7777

    # Genesis block (hashes are little endiand; ie. 0's should be at the end)
    # (if you use util.hex_to_bin, 0's should be at the start)
    # @TODO: create a utility function to generate new genesis blocks
    genesis_block_hash = util.hex_to_bin('00000a060336cbb72fe969666d337b87198b1add2abaa59cca226820b32933a4')
    genesis_merkle_root = util.hex_to_bin('4cb33b3b6a861dcbc685d3e614a9cafb945738d6833f182855679f2fad02057b')
    genesis_timestamp = 1360105017
    genesis_nonce = 1575379

    # The magic number should be 4-bytes, such that it represents a
    # non-printable string, and not symetric.
    # @TODO: create a utility function to generate safe-ish magic numbers
    # Usually in main.cpp
    magic = "\xe4\xe8\xe9\xe5"

    # This value will determine what character your addresses begin with
    # @TODO: create utility function to compute this based on prefix
    # Usually in chainparams.cpp of base58.h under PUBKEY_ADDRESS
    address_version = chr(8)


# Path: pycoind/coins/litecoin.py
# class Litecoin(coin.Coin):
#     name = "litecoin"
# 
#     # https://github.com/litecoin-project/litecoin/blob/master-0.8/src/main.cpp#L1085
#     @staticmethod
#     def block_creation_fee(block):
#         return (50 * 100000000) >> (block.height // 840000)
# 
#     @staticmethod
#     def proof_of_work(block_header):
#         block_header = block_header[:80]
#         return util.scrypt(block_header, block_header, 1024, 1, 1, 32)
# 
#     symbols = [ 'LTC' ]
#     symbol = symbols[0]
# 
#     # See: https://github.com/litecoin-project/litecoin/blob/master-0.8/src/net.cpp#L1194
#     dns_seeds = [
#         ("dnsseed.litecointools.com", 9333),
#         ("dnsseed.litecoinpool.org", 9333),
#         ("dnsseed.ltc.xurious.com", 9333),
#         ("dnsseed.koin-project.com", 9333),
#         ("dnsseed.weminemnc.com", 9333),
#     ]
# 
#     port = 9333
#     rpc_port = 9332
# 
#     genesis_version = 1
#     genesis_block_hash = 'e2bf047e7e5a191aa4ef34d314979dc9986e0f19251edaba5940fd1fe365a712'.decode('hex')
#     genesis_merkle_root = 'd9ced4ed1130f7b7faad9be25323ffafa33232a17c3edf6cfd97bee6bafbdd97'.decode('hex')
#     genesis_timestamp = 1317972665
#     genesis_bits = 504365040
#     genesis_nonce = 2084524493
# 
#     # https://github.com/litecoin-project/litecoin/blob/master-0.8/src/main.cpp#L3082
#     magic = '\xfb\xc0\xb6\xdb'
# 
#     alert_public_key = '040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9'.decode('hex')
#     address_version = chr(48)
# 
#     block_height_guess = [
#         ('chain.so', util.fetch_url_json_path_int('https://chain.so/api/v2/get_info/LTC', 'data/blocks')),
#         ('blockr.io', util.fetch_url_json_path_int('http://ltc.blockr.io/api/v1/coin/info', 'data/last_block/nb')),
#     ]


# Path: pycoind/coins/novacoin.py
import coin
from .litecoin import Litecoin

    dns_seeds = [
        ("dnsseed.novacoin.su", 7777),
        ("dnsseed.novacoin.ru", 7777),
        ("dnsseed.novacoin.in", 7777),
    ]

    # The default port this coin listens on; should not be on an otherwise
    # well-known port and not in the OS' ephemeral port range (>= 49152)
    # Usually in chainparams.cpp or protocol.h
    port = 7777

    # Genesis block (hashes are little endiand; ie. 0's should be at the end)
    # (if you use util.hex_to_bin, 0's should be at the start)
    # @TODO: create a utility function to generate new genesis blocks
    genesis_block_hash = util.hex_to_bin('00000a060336cbb72fe969666d337b87198b1add2abaa59cca226820b32933a4')
    genesis_merkle_root = util.hex_to_bin('4cb33b3b6a861dcbc685d3e614a9cafb945738d6833f182855679f2fad02057b')
    genesis_timestamp = 1360105017
    genesis_nonce = 1575379

    # The magic number should be 4-bytes, such that it represents a
    # non-printable string, and not symetric.
    # @TODO: create a utility function to generate safe-ish magic numbers
    # Usually in main.cpp
    magic = "\xe4\xe8\xe9\xe5"

    # This value will determine what character your addresses begin with
    # @TODO: create utility function to compute this based on prefix
    # Usually in chainparams.cpp of base58.h under PUBKEY_ADDRESS
    address_version = chr(8)


    script_address = chr(20)