Files
khatru/expensive
alex 642710fda8 start: propagate init errors
package users can now act accordingly on startup errors, for example
by exiting with a non-zero code. this is useful when running a service,
notifying a supervising process about such failures.

although this is technically a breaking change, most pkg users should be
unaffected since Start and StartConf returned nothing before this commit.
2022-12-24 18:52:06 -03:00
..
2022-12-15 21:35:40 -03:00
2022-08-12 17:02:40 -03:00
2022-12-24 18:52:06 -03:00

expensive-relay, a sybil-free corner of nostr

  • a nostr relay implementation based on relayer.
  • uses postgres, which I think must be over version 12 since it uses generated columns.
  • requires users to manually register themselves to be able to publish events and pay a fee. this should prevent spam.
  • aside from that it's basically the same thing as relayer basic.

running

this requires a recent CLN version with Commando.

grab a binary from the releases page and run it with the following environment variables:

POSTGRESQL_DATABASE=postgresql://...
CLN_NODE_ID=02fed8723...
CLN_HOST=127.0.0.1:9735
CLN_RUNE=...
TICKET_PRICE_SATS=500

adjust the values above accordingly.

compiling

if you know Go you already know this:

go install github.com/fiatjaf/relayer/expensive

or something like that.