Skip to content
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

Config for regtest #686

Closed
sipsorcery opened this issue Aug 6, 2019 · 1 comment
Closed

Config for regtest #686

sipsorcery opened this issue Aug 6, 2019 · 1 comment

Comments

@sipsorcery
Copy link
Contributor

With the now deprecated liquidd I can use regtest with the configurations below. My bitcoin core version is 0.18.0.

bitcoin.conf

regtest=1
server=1
daemon=0
datadir=m:\blockchains\bitcoin
debug=rpc

liquid.conf

regtest=1
server=1
daemon=0
validatepegin=1
datadir=m:\blockchains\liquid
mainchainrpchost=127.0.0.1
mainchainrpcport=18443
mainchainrpccookiefile=m:\blockchains\bitcoin\regtest\.cookie

I am unable to do the same thing with elementsd using:

elements.conf

regtest=1
server=1
daemon=0
validatepegin=1
datadir=m:\blockchains\liquid
mainchainrpchost=127.0.0.1
mainchainrpcport=18443
mainchainrpccookiefile=m:\blockchains\bitcoin\regtest\.cookie

[regtest]
rpcport=19884

The error message is:

2019-08-06T09:48:36Z ERROR: Invalid parent genesis block hash response via RPC. Contacting wrong parent daemon?
2019-08-06T09:48:36Z Error: ERROR: elementsd is set to verify pegins but cannot get valid response from the mainchain daemon. Please check debug.log for more information.

If you haven't setup a bitcoind please get the latest stable version from https://bitcoincore.org/en/download/ or if you do not need to validate pegins set in your elements configuration validatepegin=0
Error: ERROR: elementsd is set to verify pegins but cannot get valid response from the mainchain daemon. Please check debug.log for more information.

If you haven't setup a bitcoind please get the latest stable version from https://bitcoincore.org/en/download/ or if you do not need to validate pegins set in your elements configuration validatepegin=0

The elementsd daemon is able to successfully connect to my bitcoind daemon. These messages appear in the bitcoind logs when elementd starts:

2019-08-06T09:48:36Z ThreadRPCServer method=getnetworkinfo user=__cookie__
2019-08-06T09:48:36Z ThreadRPCServer method=getblockhash user=__cookie__
@sipsorcery
Copy link
Contributor Author

Finally found it in https://docs.blockstream.com/liquid/node_setup.html.

In elements.conf use:
chain=elementsregtest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant