electrs: Custom signet magic values are not supported

Being inside a folder with the electrs code, I type:

cargo run --release --bin electrs -- -vvvv --daemon-dir ~/signet-custom --network signet --db-dir ~/.electrs/csignet/db --electrum-rpc-addr 127.0.0.1:60601

and I get this error: thread ‘main’ panicked at ‘no indexed header found’, src/bulk.rs:69:14.

I guess is because the path inside –daemon-dir has no blk*.dat in ~/signet-custom/signet/blocks/ but I has two blocks exactly:

user@domain:~/signet-custom/signet/blocks$ ls -las
16384 -rw------- 1 user user 16777216 Jun 30 17:15 blk00000.dat
    4 drwx------ 2 user user     4096 Jun 30 17:00 index
 1024 -rw------- 1 user user  1048576 Jun 30 17:15 rev00000.dat

If I try with –daemon-dir ~/signet-custom/signet, .cookie is not find it in ~/signet-custom/signet/signet/.cookie. My bitcoind signet data is on: ~/signet-custom/signet not on ~/signet-custom/signet/signet.

¿What I’m doing wrong?

Thanks! 😃

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23 (22 by maintainers)

Most upvoted comments

I started learning rust a month ago, more or less with “The rust programming language”.

I will try it! Sure I will have questions or problems. 😃

It would be definitely possible to add such feature though 😃

Cool, happy it worked 😃