-
Notifications
You must be signed in to change notification settings - Fork 335
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
Regtest network bug with wrong values in K,N #76
Comments
Will check that thanks !
…Sent from my iPhone 7 plus
On Oct 24, 2017, at 7:53 PM, evgenyundefined ***@***.***> wrote:
Regtest network have init K and N params different from mainnet and testnet.
On mainnet and testnet K, N
const size_t N = 200, K = 9; // Same as mainchain.
BOOST_STATIC_ASSERT(equihash_parameters_acceptable(N, K));
nEquihashN = N;
nEquihashK = K;
On regtest K, N
const size_t N = 48, K = 5;
BOOST_STATIC_ASSERT(equihash_parameters_acceptable(N, K));
nEquihashN = N;
nEquihashK = K;
With public miners all works fine, but if you make regtest network (for some test) daemon reject all shares from public miners. (this proble have all forks of zerocash).
Please make regtest params same mainnet and make genesis block for regtest with K,N 200,9 and not with K,N 48,5
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
thanks, this bug in chainparams.cpp:344 for fix this in zcash i copy genesis block from testnet and change K,N. Make some magic for make working private testnet) |
IMHO parameters (48,5) are intendedly chosen for regtest mode, which is only for local regression tests. So it's not designed to talk with mainnet and testnet clients. Larger numbers will slow down the test duration. Please correct me if I'm wrong. |
@evgenyundefined please review the statement of @h4x3rotab. I agree with him. |
Regtest network starts from low difficulty and no have problems with test duration. Ok, agree with him, but for pool developers this actual problem. I continue use my solution with some magic of testnet genesis block. |
Testnet is on the way. I'm going to close this issue. |
@evgenyundefined Any chance for sharing your updated chainparams.cpp? |
@oliverw i not make chainparams for bgold, at first time see this problem on zcash and make only for zcash (check sources others cryptocoins and see same problem) if you need modificated sources of zcash with working regtest on kn same on mainnet write for me (zuenko@gmail.com) |
@evgenyundefined I have the same problem. I'd like to generate the regtest genesis block that include a valid equihash solution inside the block but I'm not able to find a easy solution for this. Could you help me please? |
Regtest network have init K and N params different from mainnet and testnet.
On mainnet and testnet K, N
const size_t N = 200, K = 9; // Same as mainchain.
BOOST_STATIC_ASSERT(equihash_parameters_acceptable(N, K));
nEquihashN = N;
nEquihashK = K;
On regtest K, N (chainparams.cpp:344)
const size_t N = 48, K = 5;
BOOST_STATIC_ASSERT(equihash_parameters_acceptable(N, K));
nEquihashN = N;
nEquihashK = K;
With public miners on mainnet and testnet all works fine, but if you make regtest network (for some test) daemon reject all shares from public miners. (this problem have all forks of zerocash).
Please make regtest params same mainnet and make genesis block for regtest with K,N 200,9 and not with K,N 48,5
The text was updated successfully, but these errors were encountered: