mirror of
https://github.com/bitvora/wot-relay.git
synced 2025-06-06 01:12:02 +00:00
adds replace event hook
This commit is contained in:
parent
f90926d573
commit
d9d5713f6b
6
main.go
6
main.go
@ -46,7 +46,6 @@ var relays []string
|
||||
var config Config
|
||||
var trustNetwork []string
|
||||
var seedRelays []string
|
||||
var booted bool
|
||||
var oneHopNetwork []string
|
||||
var trustNetworkMap map[string]bool
|
||||
var pubkeyFollowerCount = make(map[string]int)
|
||||
@ -55,7 +54,6 @@ var untrustedNotes uint64
|
||||
|
||||
func main() {
|
||||
nostr.InfoLogger = log.New(io.Discard, "", 0)
|
||||
booted = false
|
||||
green := "\033[32m"
|
||||
reset := "\033[0m"
|
||||
|
||||
@ -86,7 +84,7 @@ func main() {
|
||||
relay.Info.Contact = config.RelayContact
|
||||
relay.Info.Description = config.RelayDescription
|
||||
relay.Info.Software = "https://github.com/bitvora/wot-relay"
|
||||
relay.Info.Version = version
|
||||
relay.Info.Version = "v0.1.16"
|
||||
|
||||
appendPubkey(config.RelayPubkey)
|
||||
|
||||
@ -124,6 +122,8 @@ func main() {
|
||||
return false, ""
|
||||
})
|
||||
|
||||
relay.ReplaceEvent = append(relay.ReplaceEvent, db.ReplaceEvent)
|
||||
|
||||
seedRelays = []string{
|
||||
"wss://nos.lol",
|
||||
"wss://nostr.mom",
|
||||
|
Loading…
x
Reference in New Issue
Block a user