-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hempcoin(THC) #111
Comments
up @Rav3nPL could you help on this one!? |
Just to give you more info: from p2pool.bitcoin import networks
PARENT = networks.nets['HempCoin']
SHARE_PERIOD = 30 # seconds
CHAIN_LENGTH = 24*60*60//10 # shares
REAL_CHAIN_LENGTH = 24*60*60//10 # shares
TARGET_LOOKBEHIND = 5 # shares
SPREAD = 12 # blocks
IDENTIFIER = 'e037d5b8c9276410'.decode('hex')
PREFIX = '7208c1a53ef910b0'.decode('hex')
P2P_PORT = 21055
MIN_TARGET = 0
MAX_TARGET = 2**256//2**20 - 1
PERSIST = False
WORKER_PORT = 21056
BOOTSTRAP_ADDRS = ''.split(' ')
ANNOUNCE_CHANNEL = '#p2pool-thc'
VERSION_CHECK = lambda v: None if 100000 <= v else 'Litecoin version too old. Upgrade to 0.10.2.2 or newer!'
VERSION_WARNING = lambda v: None bitcoin/networks/HempCoin.py import os
import platform
from twisted.internet import defer
from .. import data, helper
from p2pool.util import pack
P2P_PREFIX = 'a5a5fd01'.decode('hex')
P2P_PORT = 21054
ADDRESS_VERSION = 40
RPC_PORT = 12055
RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'hempcoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
))
SUBSIDY_FUNC = lambda height: 125*100000000 >> (height + 1)//500000
POW_FUNC = lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data))
BLOCK_PERIOD = 60 # s
SYMBOL = 'THC'
CONF_FILE_FUNC = lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Hempcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Hempcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.Hempcoin'), 'Hempcoin.conf')
BLOCK_EXPLORER_URL_PREFIX = 'http://explorer.litecoin.net/block/'
ADDRESS_EXPLORER_URL_PREFIX = 'http://explorer.litecoin.net/address/'
TX_EXPLORER_URL_PREFIX = 'http://explorer.litecoin.net/tx/'
SANE_TARGET_RANGE = (2**256//1000000000 - 1, 2**256//1000 - 1)
DUMB_SCRYPT_DIFF = 2**16
DUST_THRESHOLD = 0.03e8 When we run it, we get some errors like:
But we still can run the pool and find blocks... but something is strange as we don't receive the coins. also the amount of coins showing up as a block reward is lower than the actually amount. The correct amount is 7.8125 and it shows 0.078125. The blocks seem validated. Here is a getblockbynumber from block 2160359 we found: {
"hash" : "00000000004fd7dca89455a213b580e43e83ae2776f4f38c23fe55dd85aa3986",
"confirmations" : 904,
"size" : 288,
"height" : 2160359,
"version" : 6,
"merkleroot" : "b3d917e9cb78a2d9153a16f0ee9ab13f24c95153c1d76c78ccc050e708656fb1",
"mint" : 7.81250000,
"time" : 1522389401,
"nonce" : 1885767893,
"bits" : "1b50da69",
"difficulty" : 810.54341243,
"blocktrust" : "1dbb4740ca4",
"chaintrust" : "f7ed110ca727ce34",
"previousblockhash" : "000000000019d6b9c893dc1d911376ac58a55aa165a9319ea54e9d9a5cd64a63",
"nextblockhash" : "7c4690c50d6a3587d92266c0094a38cf245421516f8910a318802b470fc88fe7",
"flags" : "proof-of-work",
"proofhash" : "00000000004fd7dca89455a213b580e43e83ae2776f4f38c23fe55dd85aa3986",
"entropybit" : 0,
"modifier" : "58122aaec1d29a82",
"modifierchecksum" : "bca7821d",
"tx" : [
"b3d917e9cb78a2d9153a16f0ee9ab13f24c95153c1d76c78ccc050e708656fb1"
]
} Really hope someone could help us. Thank you, |
It is kind of old coin code, let me start a node and take a look... |
Yes... freaking old code. Thank you, |
Added data that connect to daemon, but looks like there is some major change in getblocktemplate and stuff
|
we are getting similar errors |
@Rav3nPL is there any hope for this? |
@Rav3nPL what you think? |
any update or more tests on this fork? |
Can you add Hempcoin(THC). I have tried to create my own hempcoin.py files, but I have not been able to get them to work. Hoping someone will help.
The text was updated successfully, but these errors were encountered: