Post
Topic
Board Electrum
Re: [Questions] Running my own electrum server
by
HCP
on 24/04/2021, 21:32:12 UTC
It builds the index from the bitcoind blockchain, hence why you need it.
Does it need the entire chain once it builds the index? Can't you get rid of it later? Just wondering why you can't build the index by running pruned node.
The short answer is "Yes"... the long answer is: I don't know if you can remove it later, there are personal servers that run on Pruned nodes, with the caveat that if you attempt to import addresses/keys or a new wallet, it may not show the full balance given that blocks are "missing". However, ElectrumX requires the full blockchain, AFAIK.

Why don't you try and prune the blockchain after ElectrumX has synced and then report your findings here?


I have opened the Bitcoin Core application (using ./bitcoind --testnet) but once I run the above command I get:
Code:
angelo@angelo:~/bitcoin/bin$ ./bitcoin-cli -testnet -rpcuser=root -rpcpassword=<PASSWORD> getinfo
error: Authorization failed: Incorrect rpcuser or rpcpassword

I have entered the same username and password on bitcoin.conf. What am I doing wrong?
Don't use rpcuser and rpcpassword... they're being deprecated... either use the rpcauth or the .cookie file...

The .cookie method is easiest... if you used the "default" datadir then you should just be able to not specify anything and it will just work... if you've specified a custom datadir, then you'll then to provide it on the commandline using -datadir or you can just use datadir=your/custom/path in the bitcoin.conf file.