Bitcoin Forum

Bitcoin => Electrum => Topic started by: BlackHatCoiner on September 08, 2021, 01:39:58 PM



Title: Electrs: Donation address and server message?
Post by: BlackHatCoiner on September 08, 2021, 01:39:58 PM
I'm almost done with Electrs (https://github.com/romanz/electrs/)' setup. What's left is a donation address and a fancy server message. I remember how you could do it in ElectrumX, but in Electrs I have no clue. I've searched for it, but didn't actually find anything related with those two. It should be defined in the configuration file.

See yourself:
https://www.google.com/search?q=electrs+github+donation+address
https://www.google.com/search?q=electrs+github+server+message

I'm quite shy to open this request as a “new feature” in their github (since it's not a bug), so that's why I'm asking you (first).


Title: Re: Electrs: Donation address and server message?
Post by: NeuroticFish on September 08, 2021, 01:52:58 PM
A quick search over the internet has shown that Electrs uses "banner":

The server I use (electrs), just provides a "Banner" option (https://github.com/romanz/electrs/blob/master/config_spec.toml#L102-L106) that is just free text that can be specified at runtime or in a config file that is the message shown in the Electrum console and you can add a donation address in that message.

and it should be configurable even as command line flag (you can search for banner in release notes (https://github.com/romanz/electrs/blob/master/RELEASE-NOTES.md)).
Maybe it's a start.


Title: Re: Electrs: Donation address and server message?
Post by: jackg on September 08, 2021, 01:54:27 PM
I was scrolling through their github and noticed it was a wallet too (the server), have you checked it doesn't already have an address from that associated with donations.


Title: Re: Electrs: Donation address and server message?
Post by: BlackHatCoiner on September 08, 2021, 02:05:33 PM
and it should be configurable even as command line flag (you can search for banner in release notes (https://github.com/romanz/electrs/blob/master/RELEASE-NOTES.md)).
But, what's the command line flag?  ???


Title: Re: Electrs: Donation address and server message?
Post by: mocacinno on September 08, 2021, 02:09:41 PM
I used to run Electrs in the past, IIRC, there was no donation address parameter like other electrum node implementations have... So it's pretty normal you cannot find this option... My memory is not that good, but i vaguely remember going trough the same motions as you're going trough, only to find out the parameter just isn't there...


Title: Re: Electrs: Donation address and server message?
Post by: NeuroticFish on September 08, 2021, 02:11:32 PM
But, what's the command line flag?  ???

I think that's:

Code:
--server-banner <server_banner>
            The banner to be shown in the Electrum console [default: Welcome to electrs 0.7.0 (Electrum Rust Server)!]

I've found the info on this page: https://base.shiftcrypto.ch/applications/electrs.html


Title: Re: Electrs: Donation address and server message?
Post by: BlackHatCoiner on September 08, 2021, 02:25:36 PM
Thanks @NeuroticFish!