getting only 200 maximum contacts for any user

reduced calls made. combined user fetch and mention fetch to one request.
This commit is contained in:
Vishal
2022-12-24 01:35:33 +05:30
parent 91fa45a8c6
commit 0b1bd5d9be
7 changed files with 83 additions and 38 deletions

View File

@@ -1,14 +1,33 @@
#nostr_servers=( "wss://relay.nostr.info" "wss://nostr-relay.wlvs.space" "wss://nostr-pub.wellorder.net" "wss://relay.damus.io" "wss://nostr.delo.software" "wss://nostr-pub.semisol.dev" "wss://nostr-relay-dev.wlvs.space")
nostr_servers=(
"wss://nostr-relay-dev.wlvs.space"
"wss://nostr-01.bolt.observer"
"wss://nostr.shawnyeager.net"
"wss://nostr.zerofeerouting.com"
"wss://nostr.satsophone.tk"
"wss://relay.oldcity-bitcoiners.info"
"wss://relay.damus.io"
"wss://relay.nostr.info"
"wss://nostr-2.zebedee.cloud"
"wss://nostr.zebedee.cloud"
"wss://nostr.semisol.dev"
"wss://nostr.onsats.org"
"wss://nostr-relay.wlvs.space"
"wss://nostr-relay.digitalmob.ro"
"wss://nostr.coinos.io"
"wss://nostr-pub.wellorder.net"
"wss://nostr.radixrat.com"
"wss://nostr.bitcoiner.social"
"wss://relay.valireum.net"
"wss://nostr-relay.trustbtc.org"
"wss://relay.stoner.com"
"wss://nostr.w3ird.tech"
"wss://nostr.bongbong.com"
"wss://nostr.hugo.md"
)

View File

@@ -5,7 +5,7 @@ source ./configfile.cfg
limit=100000
numHours=1
echo -e "Requesting all evetns in last $numHours hours with a limit of $limit by executing the following command for each:"
echo -e "Requesting all events in last $numHours hours with a limit of $limit by executing the following command for each:"
sinceSeconds=`date -d "-$numHours hour" +%s` ;
req="[\"REQ\",\"l\",{\"since\":$sinceSeconds,\"limit\":$limit}]";
echo "echo $req | websocat $server | wc " ;