Open punithbm opened 1 week ago
Looks like your bitcoind got shutdown, can you check its logs?
Please check the logs from around 17:08:04, bitcoind should say some reason why it disconnects.
tried again now, same error. How can check the required logs for this ?
I guess you need to increase verbosity of bitcoind somehow.
Is it possible that you're missing signet_magic
configuration option?
but it takes default value for signet_magic: 0a03cf40
if not set right ?
Yes but you've set signet challenge which might affect it but I don't really have much knowledge here. Just guessing.
Ok, do you think may be due to this error ? Error: Cannot obtain a lock on data directory /root/.bitcoin/signet. Bitcoin Core is probably already running.
i can see this error on startup.. do you know how to clear that ?
bitcoin core probably disconnects electrs because the network magic is wrong, see https://en.bitcoin.it/wiki/Signet the magic in the electrs config is the default signet magic, but you use a custom signet challenge, so you need to calculate your own network magic and put it in the config for electrs
"The protocol message header bytes are dynamically generated based on the block challenge" ('message header bytes' is the exact same thing as 'network magic')
Thanks a lot for your response, do you know how to calculate and set network magic in bitcoin conf ?
You need to set it in electrs, not bitcoin.conf. I don't know how to calculate it.
its available in the signet debug logs as well, Got it thanks for the help
The same Bitcoin wiki page also mentions how to calculate the megic bytes from the signet challenge, the first 4 bytes of sha256d(challenge_len || challenge)
(length is encoded as a typical bitcoin consensus varint)
https://en.bitcoin.it/wiki/Signet#Genesis_Block_and_Message_Header
Getting following error in the electrs, can you please help me what might be the wrong
electrs error log,
bitcoin.conf file