wss://powrelay.xyz is designed to target a constant size
events with the least POW per byte are continuously discarded
Hopefully, that means it stays speedy
I think mostly because the db is small enough to fit in memory 😂
tbh I should have used sqlite from the start, but I'm new to databases
Switched from postgres to sqlite for wss://powrelay.xyz
Much snappier now. Tried moving all the events but there might be a couple I missed, just rebroadcast if one of yours is missing 😅
What will you put in the content field?
It's a cool little website, I showed it to a musician friend who liked it.
know the feeling
Agree.
Maybe you could start a nostr POW service (like https://powrelay.xyz/work.html) that accepts monero (or RandomX mining) as payment in exchange for nostr POW.
That's the beauty of POW, since it's trivial to verify, it's also trivial to outsource.
I don't think POW is the best solution to spam. POW is to prove that the message it's attached to is important to you.
Not all social media has to be about "historical context" and "conversations". imo best use of social media is about sharing important messages with as many people as possible. Once the message is out there, people can discuss among themselves and make up their own minds.
Good point, new references would point to the new note. That doesn't seem so bad to me though, it's not like the old note dissapears entirely when its replaced by higher pow notes, other relays can still store it.
If you designed some kind of proxy pow event kind, I would be interested and potentially start a new relay for that. I do love the simplicity of just highest pow per byte though.
Hey, any thoughts in using RandomX (CPU-only POW algo) for these kind of things? So that in long term more clients can provide their own POW and not have ASICs messing things up.
https://github.com/tevador/RandomX/blob/master/doc/design.md
I think ASICs are good. You don't need to own one, you can just rent one for a few sats over lighting.
Rent google's cpus on https://powrelay.xyz/work.html
Sounds needlessly complex.
Just make a new note, "Nostr replace-by-fee" (I don't like this analogy but it kinda fits)
Relays could advertise their current minimum PoW. Clients then pick the relays with cheapest PoW. This has the effect of distributing demand evenly across the network. Should I write a NIP? Basically this idea: https://mccormick.cx/news/entries/hashcash-auctions-for-decentralized-resource-allocation
Great read!
I guess you'd want relays to have websocket connection slots that clients could bid for with POW, then storing events could work like powrelay or maybe there'd be some kind of time expiration component. I just wanted to collect most precious events in one place but resource allocation with pow would be awesome too.
Oh, I see what you mean. Yes, of course, it'll have more POW.
For example, I want to keep my profile event on wss://powrelay.xyz so whenever the POW threshold increases I can post a new copy of to the relay with more POW. Here's the latest: nostr:nevent1qqsqqqqqpj3xduakge9aw5gtee28e3tn2e9483z42d30wu64xmvm2xqpzfmhxue69uhhqmmhwfjkccte9eu8j7scnmsur
POW is "memoryless" in the sense that if you want, say, 30 leading zeroes it doesn't matter if you already have a nonce that gives you 29 leading zeroes or not, you'll still end up searching for the special "30 leading zeroes" nonce for just as long. So there's no really any reason to "add" POW to an event that already has POW.
Oh, I see what you mean. Yes, of course, it'll have more POW.
For example, I want to keep my profile event on wss://powrelay.xyz so whenever the POW threshold increases I can post a new copy of to the relay with more POW. Here's the latest: nostr:nevent1qqsqqqqqpj3xduakge9aw5gtee28e3tn2e9483z42d30wu64xmvm2xqpzfmhxue69uhhqmmhwfjkccte9eu8j7scnmsur
Yes, that's certainly possible. wss://powrelay.xyz will accept events with any timestamp.
Agree, I envision it as tool for discovery. People with something important to say can attach pow to it so that others have a signal to pay attention.