diff --git a/POOL_API.md b/POOL_API.md index 153dd068..7d5de740 100644 --- a/POOL_API.md +++ b/POOL_API.md @@ -16,7 +16,7 @@ This document describes the public API for the Nostr Relay Pool implementation i | [`nostr_relay_pool_poll()`](nostr_core/core_relay_pool.c:1232) | Single iteration poll and dispatch | | [`nostr_relay_pool_query_sync()`](nostr_core/core_relay_pool.c:695) | Synchronous query returning event array | | [`nostr_relay_pool_get_event()`](nostr_core/core_relay_pool.c:825) | Get single most recent event | -| [`nostr_relay_pool_publish()`](nostr_core/core_relay_pool.c:866) | Publish event and wait for OK responses | +| [`nostr_relay_pool_publish_async()`](nostr_core/core_relay_pool.c:866) | Publish event with async callbacks | | [`nostr_relay_pool_get_relay_status()`](nostr_core/core_relay_pool.c:944) | Get connection status for a relay | | [`nostr_relay_pool_list_relays()`](nostr_core/core_relay_pool.c:960) | List all relays and their statuses | | [`nostr_relay_pool_get_relay_stats()`](nostr_core/core_relay_pool.c:992) | Get detailed statistics for a relay | @@ -438,9 +438,9 @@ int get_latest_note_from_pubkey(nostr_relay_pool_t* pool, const char* pubkey_hex ``` ### Publish Event -**Function:** [`nostr_relay_pool_publish()`](nostr_core/core_relay_pool.c:866) +**Function:** [`nostr_relay_pool_publish_async()`](nostr_core/core_relay_pool.c:866) ```c -int nostr_relay_pool_publish( +int nostr_relay_pool_publish_async( nostr_relay_pool_t* pool, const char** relay_urls, int relay_count, @@ -471,8 +471,8 @@ int publish_text_note(nostr_relay_pool_t* pool, const char* content) { printf("Publishing note: %s\n", content); - int success_count = nostr_relay_pool_publish( - pool, relay_urls, 3, event); + int success_count = nostr_relay_pool_publish_async( + pool, relay_urls, 3, event, my_callback, user_data); cJSON_Delete(event); diff --git a/debug.log b/debug.log index 595cd6c4..3bfa39a5 100644 --- a/debug.log +++ b/debug.log @@ -1052,3 +1052,236 @@ [04:51:30.102] SEND relay.laantungir.net:443: ["CLOSE", "pool_1_1759481260"] [04:51:30.102] SEND relay.laantungir.net:443: ["CLOSE", "pool_2_1759481341"] [04:51:30.102] SEND nos.lol:443: ["CLOSE", "pool_2_1759481341"] + +=== NOSTR WebSocket Debug Log Started === +[11:36:03.026] SEND relay.laantungir.net:443: ["EVENT", { + "pubkey": "650b42b2d501cd03b490ee27205444d1e507c200c3a137b99710564317eea65d", + "created_at": 1759678563, + "kind": 1, + "tags": [], + "content": "Test post at 2025-10-05 11:36:03", + "id": "2a77ce51810b77073a7873fd00c56babde944a2520a49f852121f2438155e282", + "sig": "a933a5f072a3a122bb7c685f6810781aaec47493e62f3f2540f49d7a8e7506be5d3dc319d98781a1807f4837acbb5ae1b76d8f99ce92ea55553a2e6eeec2697a" + }] +[11:36:03.104] RECV relay.laantungir.net:443: ["OK","2a77ce51810b77073a7873fd00c56babde944a2520a49f852121f2438155e282",true,""] + +=== NOSTR WebSocket Debug Log Started === +[14:00:19.331] SEND localhost:7555: ["EVENT", { + "pubkey": "7c2065299249ff1b4316c07af0d03d67ad145da80b907cc22aa608218c6d2687", + "created_at": 1759687219, + "kind": 1, + "tags": [], + "content": "Test post at 2025-10-05 14:00:19", + "id": "15dbe2cfe9237b93992a3b4de9d90224032e8b613031748da92c46c1aeaa2e9c", + "sig": "c0aa610658d8cfd76aca25894276a7f3f0573c2993429feff8b1ff10eeb5608ff18cfd79126de5f54e77f5b45a9d39f9006df65b56e4246e50cf72d212509569" + }] +[14:00:19.334] RECV localhost:7555: ["OK", "15dbe2cfe9237b93992a3b4de9d90224032e8b613031748da92c46c1aeaa2e9c", true, ""] +[14:00:49.419] SEND localhost:7555: ["EVENT", { + "pubkey": "2a0c81450868960944c17b0f57f6aa2b5307b56bc8d9cc1b213674c561a3ab85", + "created_at": 1759687249, + "kind": 1, + "tags": [], + "content": "Test post at 2025-10-05 14:00:49", + "id": "c70d6c5c8745c088bd3b99e5f529bb69cd3d162cb9db28aa433a798fa8d811c3", + "sig": "76ac20012e84d49a528db140e48024d6a390033df75bfbad64e822208a6a4a3f863b84860da8bcf78c6d8c8933e30fba92f11ebca5f4602ba4428b10584c7ceb" + }] +[14:01:23.848] SEND localhost:7555: ["EVENT", { + "pubkey": "aa3b44608a9e52473a631d596c395dd297443237d56e34e31bdcd4272a1cf558", + "created_at": 1759687283, + "kind": 1, + "tags": [], + "content": "Test post at 2025-10-05 14:01:23", + "id": "ec98292f570049ed00ae541cba716dcf6c8252b523ce036d9d3d79946ff62927", + "sig": "3e5ffa59e881c4e772e3c0e65b26d5396b7687de2ae8e930b505fc2617ecfa4b392df32b3af41f8c989e5cb1eeb00d5c1fbedfba2729eb43a3838e49ebfffc8f" + }] +[14:01:23.851] RECV localhost:7555: ["OK", "ec98292f570049ed00ae541cba716dcf6c8252b523ce036d9d3d79946ff62927", true, ""] +[14:02:12.846] SEND localhost:7555: ["REQ", "pool_1_1759687332", { + "kinds": [1], + "since": 1759687324, + "limit": 10 + }] +[14:02:13.462] SEND nos.lol:443: ["REQ", "pool_1_1759687332", { + "kinds": [1], + "since": 1759687324, + "limit": 10 + }] +[14:02:13.462] SEND nos.lol:443: ["REQ", "pool_1_1759687332", { + "kinds": [1], + "since": 1759687324, + "limit": 10 + }] +[14:02:13.614] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"The current price of Bitcoin is ~$123135.80\n\nBlock Height : 917792\n\n[2025-10-05 18:02:03 UTC] \n\n #bitcoin #nxus #nyx #oracle","created_at":1759687324,"id":"dfd294e7e51a9d8d323a56061dc93402b01766e64bb8da0b68e564c780c3db8a","kind":1,"pubkey":"ff8464aa592cdec49f76bf3c0b505433c47427d04eeaec1fa4c4e104709dabc3","sig":"0309e8ff8a0f1d0d36f990fcdde78d2d9e9125229d1ab850fe92fbbabffe5f26ca5204a48c44bab0044aeeb1824b7dd54d9e9074bad5e3263691c445553ed2de","tags":[]}] +[14:02:13.675] RECV nos.lol:443: ["EOSE","pool_1_1759687332"] +[14:02:14.774] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"Why?","created_at":1759687333,"id":"c0c29a6a16ed277868962e6664c07a8be2afd416c8b0212c9f17eff1a073ac15","kind":1,"pubkey":"8a719d42268aa925f6b12bcbe6b645f6ec82efe64eac91daf935fdcccf1f0fe5","sig":"db6174f60d86859989e34f6963c0ad25bfe67002a35d47933ad3c7ce7b271d061d82a7ed702c0aa6419eafb83cc0c93675b675bdc180d5d859df8691c52de38d","tags":[["alt","A short note: Why?"],["e","c2d6913771cbbbdd3fefaf8f016a142841b5d00278bd16359c6e011ec1a33539","wss://relay.snort.social/","root","341db5a7e3a931f49095d82a4acc939cf8a67293b1e4179fd4b5c0544c4fc2ef"],["p","341db5a7e3a931f49095d82a4acc939cf8a67293b1e4179fd4b5c0544c4fc2ef","wss://nostr.bitcoiner.social/"]]}] +[14:02:15.737] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"check out ⒷⒶⓃⒼⒻⓄⓇⒻⓊⓃ .ⒸⓄⓂ its filled with nothing but everyday girls who are lonely due to covid and want to exchange contact info with her again if you would be appreciated","created_at":1759687335,"id":"02982bdbc18d00777cd274270cee086b30847a93f875b5d0417135c406443156","kind":1,"pubkey":"fe5f59754d2e3a2579b4c95d67f7ff12da4bfffbf8f1c6b0a8de3970407ef974","sig":"cfa9ad66756503599e83a0ec77897cf0170b44a71ced1bf6e1843a146f1d0a381ffdf951e20d1f05814ffac549425435b4519a138ccec691f6d2a2e7648d19bf","tags":[]}] +[14:02:22.358] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"Sunday\ndon’t forget to stretch \nhttps://blossom.primal.net/d18ce68340127803a368333762a18caf6083762b9bb29e6a48ca806d5fc89f92.mov","created_at":1759687342,"id":"97e92a02de8c446067ed5fef48307139eac31caa81bde9152c0bfe7b4b33f5c9","kind":1,"pubkey":"8fda2199c4399fad7ff4126b402f1f5ee157fdbe4c0951e64dfe31aaec877ff1","sig":"e599ca1b54e9fe930083a6c8d1a967be347656b5a45939ead9156cba7f3e89946613a259bb38816778eee22a5bffb9c825eb3555edd09f79304ce529774349b0","tags":[]}] +[14:02:24.129] SEND localhost:7555: ["REQ", "pool_1_1759687332", { + "kinds": [1], + "since": 1759687324, + "limit": 10 + }] +[14:02:24.130] RECV localhost:7555: ["EOSE", "pool_1_1759687332"] +[14:02:24.890] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"Indeed he is 😅🫡","created_at":1759687345,"id":"097a6a383c2fbc3f65dd37752ad941545a1295e786758392df0bf9a6b2327a30","kind":1,"pubkey":"db8f291dcf949373f5224070cbef4fab80b9a8d3434246aca1fe34114cc51dd0","sig":"2d0cf79a141c3bb06245bee49c601b5f415c601f8d40f2d444ccdf90e79ec6254d1dc46b729b136030f19775a65a5a4655d5f40e9954df0c894a1149ca3305ec","tags":[["p","493a5a07be1dc06a1dd2d8e943d8924fd469f057857e26f7b99ebdebe00c2557","","mention"],["p","db8f291dcf949373f5224070cbef4fab80b9a8d3434246aca1fe34114cc51dd0","","mention"],["p","496bf22b76e63553b2cac70c44b53867368b4b7612053a2c78609f3144324807","","mention"],["e","bd01a782c099d9a4121063df8d89e6722d4b54d3015624870b7c80acd047f739","","root"],["e","c0ac6ca2931e1e22ab99c3daf5f1c85be1644ab13848d5d136eda170b95e0911","","reply"]]}] +[14:02:41.565] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"I never know when to stfu","created_at":1759687362,"id":"291797f5b41d6a22e41b7001ddb8f68c60175408f13633d686f6f738366fa304","kind":1,"pubkey":"341db5a7e3a931f49095d82a4acc939cf8a67293b1e4179fd4b5c0544c4fc2ef","sig":"003486d469652f3485106de99d3c156d23625df98748471b36ffe207a966ad414621d36dd36cb1206ae17dd41741cc4f047a3ce2d706abc296cde351752f6c24","tags":[["alt","A short note: I never know when to stfu"],["e","c2d6913771cbbbdd3fefaf8f016a142841b5d00278bd16359c6e011ec1a33539","wss://nostr.bitcoiner.social/","root","341db5a7e3a931f49095d82a4acc939cf8a67293b1e4179fd4b5c0544c4fc2ef"],["e","c0c29a6a16ed277868962e6664c07a8be2afd416c8b0212c9f17eff1a073ac15","wss://wot.nostr.net/","reply","8a719d42268aa925f6b12bcbe6b645f6ec82efe64eac91daf935fdcccf1f0fe5"],["p","341db5a7e3a931f49095d82a4acc939cf8a67293b1e4179fd4b5c0544c4fc2ef","wss://nostr.bitcoiner.social/"],["p","8a719d42268aa925f6b12bcbe6b645f6ec82efe64eac91daf935fdcccf1f0fe5","ws://agwwuih4l66mb6oxnqk42lfsubhatux3bmcnpmki6cd7nmx5lz2ys6yd.onion/"]]}] +[14:02:42.621] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"歯を磨きました えらいです","created_at":1759687359,"id":"b0c6315ae6940ec80b90f3fd5afaa87bbc608e266da91a5d69a62455ccb1ada0","kind":1,"pubkey":"8c59239319637f97e007dad0d681e65ce35b1ace333b629e2d33f9465c132608","sig":"84cae19a484de2d28cf0458920ebf918af55c5c244796301ddc2c050adc6f8d177f6dd833a2bd3c2fe0cbde82a1c4ab5ac29fba3f7d88829b18d3717fbdcc4de","tags":[]}] +[14:02:45.057] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"FREEDOM!!!🥴","created_at":1759687364,"id":"7bc750b643cda5fd7b38e4ff9c2bc085b7af1ea3710617d8fc13d5c84af74c41","kind":1,"pubkey":"b7baced2435c5a2427cadcefd9257786aaab6ab688b105f32e2657374da9e74c","sig":"816efcd39f190de6b21ced158e1c86611a1892ff2bf4b0a5f3ee22bce3fdd8f9488865aab28705527f19062d86f1848ecb94a107a63818c3c094c7c4a624cc10","tags":[["e","8536277b5d44700c12e4c1d2d3571f22d810bb90baa3559ae4cbba36e0f3b8dc","","root"],["p","526b4dba54b3f4a1bdac3548f0b8195e2b8ea36ba1920c801eb6388ed67de4ec"]]}] +[14:02:46.930] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"GN https://blossom.primal.net/9e0dee7527fe3a20428bcfd20f1a3057f21991d0eb34b69b328a636a5a05a5b9.jpg","created_at":1759687367,"id":"e0415b2de12951a6b0b4274ad1c7898c6d4ff0ed3f5169dc2dd2329583aa6ac7","kind":1,"pubkey":"621889de151ed29c32424bfb150066dc274808dd8545898b62154e20595deab5","sig":"15821cd116d0086ce5e8d6ba7320eff13ccc27edaeba958e4e122d9b3123026aae17d2350e7f0ad4b1723b871e26b0b75980b3f0291a4a5ffc7306ed49c0a93e","tags":[["alt","A short note: GN https://blossom.primal.net/9e0dee7527fe3a20428b..."],["r","https://blossom.primal.net/9e0dee7527fe3a20428bcfd20f1a3057f21991d0eb34b69b328a636a5a05a5b9.jpg"],["imeta","url https://blossom.primal.net/9e0dee7527fe3a20428bcfd20f1a3057f21991d0eb34b69b328a636a5a05a5b9.jpg","x 9e0dee7527fe3a20428bcfd20f1a3057f21991d0eb34b69b328a636a5a05a5b9","size 1296120","m image/jpeg","dim 4032x3024","blurhash #nH2G--TWAR-WCoLoeofj@_NodjYfkayj[fPj[fQJqR+oes.oeazWCWCazE3WXj[j@j[azf6f6f7V@ofWVafayjtj[j[j@%0oeayf6f6j[bHbHa|t6ayj[j[j[a|ayaya|","ox 9e0dee7527fe3a20428bcfd20f1a3057f21991d0eb34b69b328a636a5a05a5b9","alt "]]}] +[14:02:56.059] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"#hipwaist ratios \nhttps://images2.imgbox.com/b1/0c/wCxDWNqC_o.jpg \n#JoyOfLife ","created_at":1759687364,"id":"7c2f33b25929cc70c60f0165b5fde62753bdde14a5a9daad012073f7189919b5","kind":1,"pubkey":"ebb93aa6c2d04d7368ba52ef69884bf6e5779d7e418187e33371a20c7d9e5f6f","sig":"bb0c6ea5bd499637d454459a349aeddf10594af224ab12ded0fb3152ee17f53e7a75c6c784cabb2e8ad4d9c59c1f2bd1ed21f3ef31c674fd82f9a8d3e43e4cc2","tags":[]}] +[14:03:03.608] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"ほろ酔いマスカットティーサワーを飲んでいます","created_at":1759687383,"id":"df1a4aa1e449f96295902ac73d6f85dbb10273a063a91de90406522cf78ae98b","kind":1,"pubkey":"e62f27d2814a25171c466d2d7612ad1a066db1362b4e259db5c076f9e6b21cb7","sig":"3a6e49bad5b31a5218465c9bf9fbe4dba46731fefc4ad09e85139d256f471904662397b9100aec8beedb3635324356ea25370c957543b7e47fb75817db70c1f6","tags":[]}] +[14:03:07.944] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"🟠 BTC: $123,118\n⛏️ Hashrate: 1109744.2 EH/s\n📦 Mempool size: 38.97 MB\n💸 Fees (sat/vB): low 1, med 3, high 4\n📊 Fear & Greed Index: 74 (Greed)\n#bitcoin #stats","created_at":1759687387,"id":"2ffa7922bb8706b4961a56cea3a4df70c85b79f2a366d9add75e65a23ed44cfb","kind":1,"pubkey":"e185c2ad0b87b3207ac2b96d6b8fb1ff10fbf25f93eef4d04fb6dbb9039f19fb","sig":"fe684f31bc65d3a7f524d9ad2c437cab752c18f05c5332761f35cbb67894a62a4c58efc5c94dedf285357e4fdc3c7f31c2a93818e1aed9745983de272c56a1cc","tags":[]}] +[14:03:11.336] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"Fees incentivize long-term security. #bitcoinfees | BTC: $123,109 | Educational Post","created_at":1759687390,"id":"f1d0cb6a9409534a33320905a34ab1569a46e3f2d5cf429f669002dea789ec38","kind":1,"pubkey":"e185c2ad0b87b3207ac2b96d6b8fb1ff10fbf25f93eef4d04fb6dbb9039f19fb","sig":"34c033fa98e7248e7b4f038fd0180ca52b9309be707d3b6d33c9dbc6234ec5abecfd5dffb5d3ec053c6e58829c74ccda6369bcabcc89cfaff278451bafc23525","tags":[]}] +[14:03:15.656] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"📈 BTC Price Last 7 Days #bitcoin #chart\n\n(Chart could not be uploaded)","created_at":1759687395,"id":"aa169c771966a25c3b6342868d8f3d903b22c1c778cc44d8d3c26c8d5141b5e4","kind":1,"pubkey":"e185c2ad0b87b3207ac2b96d6b8fb1ff10fbf25f93eef4d04fb6dbb9039f19fb","sig":"057ad92d9597617646ebf4c6acc0b428ac3e3b95e6c1cb6789a61900f1c385513441a0b380bb43af8b683f93f33837f6a195c94e3905bed6ef3556fab0d68397","tags":[]}] +[14:03:16.063] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"Anybody lurk on \"X\" using nitter?","created_at":1759687397,"id":"abc512ddf94c69c4311c5d3067d43d6359d679daaa2655fb80a228a9428b0272","kind":1,"pubkey":"fd31d0a4910f7ce9c46ac63df62781a9981e79a11de16d1664f1feb14f6a8c94","sig":"8abeb53756cea6e042172ffaba2158d824f62accc795bc1d9b4b360b5b7060ad45ec550a39fc456d7f19dce4c06a6b92be61199f10af3ecb8b0077c9cc3768a0","tags":[]}] +[14:03:19.498] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"😳","created_at":1759687399,"id":"2bd27d8cc846e0fb6ef37df032f3a26cdab82c837c9ec5e5845b3c0df0b0fa84","kind":1,"pubkey":"8fda2199c4399fad7ff4126b402f1f5ee157fdbe4c0951e64dfe31aaec877ff1","sig":"dc584de809ae64fabb33f3e4ddc677f8e94c6c3639931e9e600cd83804b3d6085eaf3dd591b3d5ff4b20e08baeec30904c7cee156a30d92c9fe5f99ed621c246","tags":[["e","0cd929d752df6c6f50071054986bcd34e4618e2c24c9d943cf66dd3e5d7ccc3f","wss://relay.damus.io/","root","8fda2199c4399fad7ff4126b402f1f5ee157fdbe4c0951e64dfe31aaec877ff1"],["e","e27f1ec0adeba973bd0858b76e74836df2d68fc57fc003ec3fb0f1603280f660","","reply"],["p","cdecc31c6d9406e9a7d6b0067412aa661d9d31c8035c3fd65c06301d1cac3b92","","mention"]]}] +[14:03:22.260] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"Looks like a great time, good luck. \n\n","created_at":1759687402,"id":"e9430e5efb1beb33963c112d0d92387d4165ae41d66e81439a2405630b1ae129","kind":1,"pubkey":"9ce3f065a7f384c1927263b968726d08e3895b5823be6e322545e89c3ee31a15","sig":"670788f0c36701cbfddfc101c64134b4eee98225bbf31d982afb2e90a617278ba84c00a9bb530ccded4d2e0bee347c9620298791bedb9894bfe379e3b82ecea0","tags":[["p","15652c499840af95bf52d8eb93bfbdd734b92d40f21c4eb974b124e5997d57cb","wss://relay.primal.net"],["e","a411057eb22fe7ceda41de50d34259f974ff434e370b157ac51850b4802d31ba","wss://relay.primal.net","root","15652c499840af95bf52d8eb93bfbdd734b92d40f21c4eb974b124e5997d57cb"]]}] +[14:03:30.391] SEND localhost:7555: ["EVENT", { + "pubkey": "17323141f3a98b014f96ee85df59ee1ce6295e1502644c8e1f86439b20908198", + "created_at": 1759687410, + "kind": 1, + "tags": [], + "content": "Test post at 2025-10-05 14:03:30", + "id": "8433206a6e00ff021ddd1f162af38bf724aabd6a7ca5fb9e57bda74f26d46e3a", + "sig": "058a3bc6872e44e8d30cfba1d75267929ec3d73fbafa4c77f99897b700020a42478b51ee3bf4a4901beb376b9d3deca2854b3bca2f18eab169f9f5babdfeccb6" + }] +[14:03:30.394] RECV localhost:7555: ["EVENT", "pool_1_1759687332", { + "pubkey": "17323141f3a98b014f96ee85df59ee1ce6295e1502644c8e1f86439b20908198", + "created_at": 1759687410, + "kind": 1, + "tags": [], + "content": "Test post at 2025-10-05 14:03:30", + "id": "8433206a6e00ff021ddd1f162af38bf724aabd6a7ca5fb9e57bda74f26d46e3a", + "sig": "058a3bc6872e44e8d30cfba1d75267929ec3d73fbafa4c77f99897b700020a42478b51ee3bf4a4901beb376b9d3deca2854b3bca2f18eab169f9f5babdfeccb6" + }] +[14:03:30.394] RECV localhost:7555: EVENT", "pool_1_1759687332", { + "pubkey": "17323141f3a98b014f96ee85df59ee1ce6295e1502644c8e1f86439b20908198", + "created_at": 1759687410, + "kind": 1, + "tags": [], + "content": "Test post at 2025-10-05 14:03:30", + "id": "8433206a6e00ff021ddd1f162af38bf724aabd6a7ca5fb9e57bda74f26d46e3a", + "sig": "058a3bc6872e44e8d30cfba1d75267929ec3d73fbafa4c77f99897b700020a42478b51ee3bf4a4901beb376b9d3deca2854b3bca2f18eab169f9f5babdfeccb6" + }]2a +[14:03:30.746] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"You will eventually","created_at":1759687410,"id":"f8bad59298e8afa0cceb9a4dee73c28648b62846b1fedc13b450316b29e3c460","kind":1,"pubkey":"8a719d42268aa925f6b12bcbe6b645f6ec82efe64eac91daf935fdcccf1f0fe5","sig":"4313cc6ee55b482e67f9a1f2e33761b9c68158b59eee38419d540ce5bb6564f2d5982428e0cde14c260edc4354a9c2cd3f0b848f7dca25af8f5b8930b9577f1e","tags":[["alt","A short note: You will eventually"],["e","c2d6913771cbbbdd3fefaf8f016a142841b5d00278bd16359c6e011ec1a33539","wss://relay.snort.social/","root","341db5a7e3a931f49095d82a4acc939cf8a67293b1e4179fd4b5c0544c4fc2ef"],["e","c0c29a6a16ed277868962e6664c07a8be2afd416c8b0212c9f17eff1a073ac15","wss://sendit.nosflare.com/","","8a719d42268aa925f6b12bcbe6b645f6ec82efe64eac91daf935fdcccf1f0fe5"],["e","291797f5b41d6a22e41b7001ddb8f68c60175408f13633d686f6f738366fa304","wss://nostr.mom/","reply","341db5a7e3a931f49095d82a4acc939cf8a67293b1e4179fd4b5c0544c4fc2ef"],["p","341db5a7e3a931f49095d82a4acc939cf8a67293b1e4179fd4b5c0544c4fc2ef","wss://nostr.bitcoiner.social/"],["p","8a719d42268aa925f6b12bcbe6b645f6ec82efe64eac91daf935fdcccf1f0fe5","ws://agwwuih4l66mb6oxnqk42lfsubhatux3bmcnpmki6cd7nmx5lz2ys6yd.onion/"]]}] +[14:03:34.291] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"お茶系のお酒あんまり得意じゃないんだけど、お茶って感じあんまりしないし大丈夫だった","created_at":1759687413,"id":"790a85a90ef5d2bfbd9c70fc1c54830333066477c63e0026ae304037e6272814","kind":1,"pubkey":"e62f27d2814a25171c466d2d7612ad1a066db1362b4e259db5c076f9e6b21cb7","sig":"47eea4b740aeba09a6ec595dd7fcd2d7a682d8091301a9cef3c014693ca639679eaabbca981030bbb23c7f683a9ee1faa7c18fc78a254d6b965b1723f77c8172","tags":[]}] +[14:03:35.459] RECV nos.lol:443: ["EVENT","pool_1_1759687332",{"content":"No, this is Albuquerque, NM ","created_at":1759687415,"id":"edc6b801a73667504bb197b8315f9b4c0533f726c108f8932d3fdc31a6495553","kind":1,"pubkey":"da26e54b86c9a395a4233cbb540fe2aa93cdad4a9b657ed5a724efed5859d23d","sig":"b6b822662302cc6b21b09b6e50f3ecf45c09c90c3750b308e6e293f5037352bacd8e4f96706af43dfe584d9c6c295dc7a92420ab4262e73759af71f35e2bf25e","tags":[["e","021147fc341540353e9cf639b7d6d1ba28af3ece5cf0625484716b0228a9348d","wss://feeds.nostr.band/lang/en","root"],["e","0dc0f9c4a0f5f37d93742e7dcf7c0f9b72f9be48dd5503f49004975b0073c235","wss://relay.primal.net","reply"],["p","c1503e4a2ef14908127d373530480c133bd5a0d9bb47a4be4a25a41d8f27447c","","mention"]]}] +[14:03:40.010] SEND nos.lol:443: ["EVENT", { + "pubkey": "17323141f3a98b014f96ee85df59ee1ce6295e1502644c8e1f86439b20908198", + "created_at": 1759687410, + "kind": 1, + "tags": [], + "content": "Test post at 2025-10-05 14:03:30", + "id": "8433206a6e00ff021ddd1f162af38bf724aabd6a7ca5fb9e57bda74f26d46e3a", + "sig": "058a3bc6872e44e8d30cfba1d75267929ec3d73fbafa4c77f99897b700020a42478b51ee3bf4a4901beb376b9d3deca2854b3bca2f18eab169f9f5babdfeccb6" + }] +[14:03:40.207] RECV nos.lol:443: ["OK","8433206a6e00ff021ddd1f162af38bf724aabd6a7ca5fb9e57bda74f26d46e3a",true,""] +[14:03:50.096] SEND localhost:7555: ["REQ", "pool_1_1759687332", { + "kinds": [1], + "since": 1759687324, + "limit": 10 + }] +[14:03:50.097] RECV localhost:7555: ["EVENT", "pool_1_1759687332", { + "id": "8433206a6e00ff021ddd1f162af38bf724aabd6a7ca5fb9e57bda74f26d46e3a", + "pubkey": "17323141f3a98b014f96ee85df59ee1ce6295e1502644c8e1f86439b20908198", + "created_at": 1759687410, + "kind": 1, + "content": "Test post at 2025-10-05 14:03:30", + "sig": "058a3bc6872e44e8d30cfba1d75267929ec3d73fbafa4c77f99897b700020a42478b51ee3bf4a4901beb376b9d3deca2854b3bca2f18eab169f9f5babdfeccb6", + "tags": [] + }] +[14:03:50.108] RECV localhost:7555: ["EOSE", "pool_1_1759687332"] + +=== NOSTR WebSocket Debug Log Started === +[18:53:08.601] SEND localhost:7555: ["REQ", "pool_1_1759791188", { + "kinds": [1], + "since": 1759791185, + "limit": 10 + }] +[18:53:08.601] SEND nos.lol:443: ["REQ", "pool_1_1759791188", { + "kinds": [1], + "since": 1759791185, + "limit": 10 + }] +[18:53:08.648] RECV localhost:7555: ["EOSE", "pool_1_1759791188"] +[18:53:08.783] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"🟩BUY BTC with USD\nPrice: 123770.37USD (-1%)\nBTC: 0.005 - 0.01\nUSD: 619 - 1238\nMethod: ACH\nCreated: 2025-10-06T22:52:29Z","created_at":1759791187,"id":"29689c1ef5366dfd01b5ecf9262b2da34cb02bafa1a8429bb6a490d04909d37d","kind":1,"pubkey":"832b77d5ecb09381ac37d75d6392424526d0923dced687b03d96ba03a5e3d55c","sig":"a5f9ea9b6867ee1be7ef756320fb156de99fe74187fbe6eb279481994e6633cea83e79d962ca01ff561be79172df352cc6a20e0db9cf7cc06c2e40b8361d374d","tags":[]}] +[18:53:08.844] RECV nos.lol:443: ["EOSE","pool_1_1759791188"] +[18:53:20.271] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"The Libertarians are the only political party promising to protect education choices in Australia. If you're a homeschooler the Libertarian party is the political party for you 🇦🇺 https://image.nostr.build/b5b36427856dfaee5ecdd4679977e6863a7cdc00ecef996d18b8b69b23c917c0.jpg ","created_at":1759791199,"id":"3da55d474418278f7ea7e5e08a853cc28d3dbf7e0f32f6f70636d6db80164b29","kind":1,"pubkey":"692b8a786c3be59c1e855a86e710215b35e32c55580500421407e740263f04cb","sig":"465d5819db53039d0c6b5d712c1bf1dc5611a4a3f49bfcf1ba6ac36d9f0eefd220f18a8cc43ef2522bf321882250ce5d660c42de4c8e839072ec5632269c2cbf","tags":[["imeta","url https://image.nostr.build/b5b36427856dfaee5ecdd4679977e6863a7cdc00ecef996d18b8b69b23c917c0.jpg","blurhash eXH-uqJU%zRP%f~BS4x]afxuR4xajEs:V@kW%LfkjZV[%MxttRNHkC","dim 1070x1338"],["r","https://image.nostr.build/b5b36427856dfaee5ecdd4679977e6863a7cdc00ecef996d18b8b69b23c917c0.jpg"]]}] +[18:53:33.079] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"They are getting closer to realizing Bitcoin is the answer to physic.\n\nConservation without axiom is a big deal.","created_at":1759791212,"id":"87aadf3b737615ab0ba2208fdb7d61cbfa36f8bd4a31ed0c0c06f6818d724bf2","kind":1,"pubkey":"3c4f51561243524f307ed2ee272c7cf4a782404fbe3a176606043b6ad427ee77","sig":"8c832c83f784bdff2698021382b96acc63daa8ba605398044910cb4780222c4b37fb4eb90cb5322a2ae52dafd9db8d10fca3b7a99f3f2865386883427240c188","tags":[["e","81c9d02c125ae68ff39820d822de54ed6e8121e6804532f1bcd3afdd41e33c7a","wss://feeds.nostr.band/newstr","root"],["p","b4403b2415a020c20691bb18c51ada5acb64b71d2f60966cb3c78ba683542d4e","","mention"]]}] +[18:53:34.774] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"一人称隣ニキで草 https://lumilumi.app/nevent1qvzqqqqqqypzq8tsnl8lcgukj2584c3t7mye5y835fc6ttz3s7kl9f3hvd2lf8d9qyt8wumn8ghj7un9d3shjtnwdaehgu3wvfskueqqypyhsn5gs4l2dnkwjgy2rz9kerad0lw773xngw640cq4stafvr57cp7sfq0","created_at":1759791214,"id":"178b376d3ed06cbd316f4daad7c5c215e2dc5d9586fe742b7e24cc4156949463","kind":1,"pubkey":"a19caaa8404721584746fb0e174cf971a94e0f51baaf4c4e8c6e54fa88985eaf","sig":"ec377113c06d030e0202511744496383ca4cfc5fb468d6106dc0391728511db175e31c8b18be17bacf19937ec4967e948ca31e5c793ae65197900fbc14b489a6","tags":[["r","https://lumilumi.app/nevent1qvzqqqqqqypzq8tsnl8lcgukj2584c3t7mye5y835fc6ttz3s7kl9f3hvd2lf8d9qyt8wumn8ghj7un9d3shjtnwdaehgu3wvfskueqqypyhsn5gs4l2dnkwjgy2rz9kerad0lw773xngw640cq4stafvr57cp7sfq0"],["client","lumilumi","31990:84b0c46ab699ac35eb2ca286470b85e081db2087cdef63932236c397417782f5:1727506446612","wss://relay.nostr.band"]]}] +[18:53:35.041] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"How do people feel about #privacy apps that come from app stores vs direct from the developer? Even if the same developer? Does it make a difference? I'm trying to wrap my head around #Adnroid changes in the future...","created_at":1759791214,"id":"b997be2339010e78eb35747ad8b5e5e7ff9a352de0f6f143773e1a3888a865a9","kind":1,"pubkey":"8dc8688200b447ec2e4018ea5e42dc5d480940cb3f19ca8f361d28179dc4ba5e","sig":"67a82ec73da6eae1c157eaa8dea08b1ba0fccdc68c305c236150eeebd3f8aff1a897b52421b0821f9144dbbabe91032d7ad105d3b152f76638ae040f3e053668","tags":[]}] +[18:53:44.914] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"please tell me this is satire. ","created_at":1759791224,"id":"93101e1379fc3564631bb22c1f92418e4a308453c00694229d66480e13e754f7","kind":1,"pubkey":"ff2ceb63833534d6e5b294b268501d62c53dcd2f05ee169f624ca1dc7cffe234","sig":"beee744a916041500fbe0cb2373f256948090ceafe3404a1b435544ea94ea392c70e5294cd56f02148556e4db6e6b81fc5274ac048200b8576610c04e4659278","tags":[["e","243c0fdc0879a37cb103dd8a9124889d40080741d67b04685409c7bfe2d445fb","wss://relay.mostr.pub/","root","11c63ffe2f02bce7e558470427deb0937d299af1140c4e24720804a1e0a7b08f"],["e","243c0fdc0879a37cb103dd8a9124889d40080741d67b04685409c7bfe2d445fb","wss://relay.mostr.pub/","reply","11c63ffe2f02bce7e558470427deb0937d299af1140c4e24720804a1e0a7b08f"],["p","11c63ffe2f02bce7e558470427deb0937d299af1140c4e24720804a1e0a7b08f"],["client","noStrudel","31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"]]}] +[18:53:54.736] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"Transparency is in the favor of the people, not the greedy, slimy thieves who hide behind gov. https://image.nostr.build/8b5e9826ba98a2e90d0ae51a341bf20f6f525ea67ed4459d4dfe516c2a50c1ee.gif","created_at":1759791232,"id":"f0add365d13b283475f5aea939b6aa03b1dad5ecf363a7814249251f5e35c944","kind":1,"pubkey":"519d2fb3c354f44f5d4c7cdfc532633daf029bcc7d54beb0cb0f770646f8350f","sig":"6c7f8250e2f0efd421aa808760254a1d53d979c213efd23b0431c1ed634514ad6c7267762b2d3124df3e8925c0c557a899a4ddd4ec0f332276cde6b5ad6ea707","tags":[["r","https://image.nostr.build/8b5e9826ba98a2e90d0ae51a341bf20f6f525ea67ed4459d4dfe516c2a50c1ee.gif"],["imeta","url https://image.nostr.build/8b5e9826ba98a2e90d0ae51a341bf20f6f525ea67ed4459d4dfe516c2a50c1ee.gif","ox 8b5e9826ba98a2e90d0ae51a341bf20f6f525ea67ed4459d4dfe516c2a50c1ee","x 8707bfc0dacb4aafcc6f27d25639d93fe0c0ac4cafeea6ebbfb7c0aad9217ed9","m image/gif","dim 360x266","bh LH9s*cfk0eay~Vay4:ax-pfkIVWB","blurhash LH9s*cfk0eay~Vay4:ax-pfkIVWB","thumb https://image.nostr.build/thumb/8b5e9826ba98a2e90d0ae51a341bf20f6f525ea67ed4459d4dfe516c2a50c1ee.gif"]]}] +[18:53:57.845] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"まずはピンク・フロイドを聴こうかなと思う","created_at":1759791237,"id":"fa7bfe34420bae341de5a1fc73bd2f4d5cb4283d6ab3b4c66dc697ebd5085ca5","kind":1,"pubkey":"f40832e26b1d12f8a27717b606996baef68bc4b6b86c4a35ca827f6fbcbf511e","sig":"0659b2963ff0e7c5e97e6a451ab572bcb0735f5371e8e20db3a82b0db555dcac449529c2cd0571f5c348ceb1f193a73a8437ec92062d4796b984c071e5b74542","tags":[]}] +[18:54:03.482] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"#Bitcoin Block Art by Blockstr!\nHeight: 917953\nWeight: 3998184\nhttps://thebitcoinblockclock.com/blockstr/00000000000000000001707014fb634d4c3b44790f8e51da2fd89816d704d74c.png","created_at":1759791242,"id":"5342d9d61cf46692a331fe48c126bd671d8cf8b5fd0c99f8000669c7e606aeff","kind":1,"pubkey":"3fdf8b43d2e6eb59fc399f7cb1b81923d1dff0215d45a11e1c1f279827eaaad8","sig":"abaf2db95aafa23f9152cdf5f6a683c41696c732540d94e5da5ce0bece91dbc886c53a9d25be131eef93355456f857720eedbbfb26bb282eeba5347a360768a6","tags":[]}] +[18:54:17.275] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"I would imagine hashrate goes up in northern countries where people mine4heat. But by how much I don’t know","created_at":1759791255,"id":"63e537f5b8047a577f3b3099295cc15916274e3e87997b65e54592e8166c1e30","kind":1,"pubkey":"18905d0a5d623ab81a98ba98c582bd5f57f2506c6b808905fc599d5a0b229b08","sig":"43c1092b80ab2fdd3c1dcdfd1a8bd47422be5b89d393ed8c8ad519d782a8ee9b137de2fe30ef6282c43e4882f9b57947d51bbaeb842fad03757d58c305d08af7","tags":[["p","18905d0a5d623ab81a98ba98c582bd5f57f2506c6b808905fc599d5a0b229b08","","mention"],["p","2b0ea532b3c3045d590c3dc982794d495d08bc497f554ccbcc30fcc8e9fbe2e9","","mention"],["e","d052b254eb2b402c4bc57035316885e4b5a39289083e69687408a5601123bea2","","root"],["e","6db869e46f7bdbaace29668104d99a0f1bbe91e2581a3b03dd53254f79159764","","reply"]]}] +[18:54:18.389] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"I would recommend self-hosting with MusicSideProject.com to retain 100% control and 100% value sent to your songs. But if you're between Fountain and WL, Fountain shows the value splits in the RSS feed which is nice for listeners to see where their sats are flowing","created_at":1759791259,"id":"252cc6c9886902f4dfbdf9a120c14f7e1f4c7828fa3b0007445cbe93d1afe00b","kind":1,"pubkey":"2dfbe5cb955e4018b76e6542a3b8782144dd5f5735914db9921fd24c3b3d106d","sig":"f7db0d52d86e3099a0ddabe16eac696123f997ec6981a2fc51e32d24b3658eeb18e28086fd9460feccf96133b3a3b182ee31b6aaa420352c632607eb727f93fc","tags":[["alt","A short note: I would recommend self-hosting with MusicSideProje..."],["e","390de5cd45e4e0a8fae43ad405e6e194b4e23566ae66d0c145d7ea1e676cbb40","wss://nostr.oxtr.dev/","root","2b349bb9ae581ab6092365a16aef15c0ffc8f1a593e22f79b04fdb122543c1f9"],["e","49a3b9e700e684a0711184ecba7bb16b58ab5dba63feb0c27bb1ee6e80776331","wss://relay.damus.io/","reply","2c9a02818e5b9b4582c19823b69c55f5945e837aa9cc8342856f43b8ea61f979"],["p","2b349bb9ae581ab6092365a16aef15c0ffc8f1a593e22f79b04fdb122543c1f9","wss://zap.watch/"],["p","2c9a02818e5b9b4582c19823b69c55f5945e837aa9cc8342856f43b8ea61f979","wss://zap.watch/"],["r","https://musicsideproject.com/"]]}] +[18:54:22.406] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"もう7時か、おはよう","created_at":1759791258,"id":"5fbce68be4f6fd34aca6115e294e5b790daf4ae210256556244b8ef33eff4b44","kind":1,"pubkey":"2bb2abbfc5892b7bda8f78d53682d913cc9a446b45e11929f0935d8fdfcb40bd","sig":"da49b572171e454aad4b9198443017dd25c1bd2e3313d5dac95931ea0db79198f47a29a31b0de7d9b20dd7e5fb0eac80916e00068b11a0c34c786e8ce50c8552","tags":[["e","cedbf52ea402b56b75069b64afeb7b9c9ce4e4063f607f76f715743e3a2b3707","","root","21ac29561b5de90cdc21995fc0707525cd78c8a52d87721ab681d3d609d1e2df"],["p","21ac29561b5de90cdc21995fc0707525cd78c8a52d87721ab681d3d609d1e2df"]]}] +[18:54:23.521] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"Tell your family and friends you love them.\n\nI just had a friend pass away at 40 years old 😢\nHe was in pretty good health. I had known him for 35 years\n\nWe dont know when our time is up, enjoy the ride. Spend as much time as you can with loved ones. ","created_at":1759791262,"id":"dae2b9bb92b229a2b4e0cda21416a0545c5c87682c5e51bba909dce87db14298","kind":1,"pubkey":"7a6b8c7de171955c214ded7e35cc782cd6dddfd141abb1929c632f69348e6f49","sig":"bd3a18aa715ae940cc4744112abcc4e5b388bb6c351aaa559bd420e1b1336c1141824789645810d0f9ce7bcf49ef79922e6bee99367949ee14d616724fca928b","tags":[]}] +[18:54:25.794] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"Personal experience agrees. Health took a very big, very noticeable dive after returning to America, from a country that bans the poisons.","created_at":1759791266,"id":"d31f8840cc9b9243e516aade74ced33dc37ce304f308ffaad19bcb786b6dd22c","kind":1,"pubkey":"55f573b651eff351db57b0601d23022d8c532f9825db10a5733ebf39be4aa21b","sig":"bdb42e44b1647cd77b59b8a3f01308aa8df89a1503b6c5d4984bd79ad4c20d50d6c4615589866985235719512519c54ec7ca863bca5f4f6cb8f9e19ae7e908cc","tags":[["e","0499a028291e2a5fff5cad342d19e985e4e1d16bc92170fd3ae4d700f5add047","","root"],["p","45b35521c312a5da4c2558703ad4be3d2e6d08c812551514c7a1eb7ab5fa0f04"],["p","da19b5d291e06ed09ba545bc5366408dc82ba8c9e9f97d32ea8ea60f1f6cbfaa"]]}] +[18:54:26.842] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"08:02 @ 917,953","created_at":1759791266,"id":"17aaebb2d9e3d4b1cbb0eb085f0d031c91c8b982eb182b9c1737467ac312eba1","kind":1,"pubkey":"7c5f24e1c95f6f1f75555498f0019be1259a65c75ae851c235f7b15c9f88e0ee","sig":"5f216afb163dedf705741149fc4a7b1d3c7586eb61ff90aca6d78d08ef5e3a050e97c3e1628ad126b1d26b38c4236e3b6cd7b12799ef6129649d27f16bcd75b3","tags":[["t","bitcoin"],["t","moscowtime"],["t","nostr"]]}] +[18:54:31.689] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":" \n\n\n\nhttps://blossom.primal.net/f69a2025125ef2f239621f96a9318f227df567f11db9aded4b57469e298e3317.mp4","created_at":1759791275,"id":"d89fe8ddd5874c17453cc6c8c9a23caae43d2e3fba6dc580d4b2527d3e00a240","kind":1,"pubkey":"e3a59924933c9f9f2df83449055eb3858f1480fdd0c5edb95df08bedcd2e6624","sig":"d1476ff7f3d3aac8aa042700fd4879f4d8c700294b0435fb63da314025aaaa03a5c2fc4e7ce2dd863a23779a007e6076b44b7286ca612f3d959a759b4ce79a03","tags":[]}] +[18:54:36.744] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"去中心化“公链”的基本判断标准:\n节点门槛——低,众易上链;\n共识机制——牢,广受支持;\n代码开源——全,行为透明;\n治理机制——简,长链佐证;\n通证分布——散,没有寡头。\n#去中心化 #Decentralization\n#心空化\nhttps://cdn.nostrcheck.me/382d67ec6a31dc8d0c5b3099753a0044261a70e694aadd49eb58fce529cb3089/336be1277293f2d53fb97ab301957736be3e0a82eb16626e625bb9a2e1d26cd4.webp","created_at":1759791265,"id":"c37b409b25a77db2d43e19c85b957ceccd4650b04d1ad51130f00fc526a003ee","kind":1,"pubkey":"382d67ec6a31dc8d0c5b3099753a0044261a70e694aadd49eb58fce529cb3089","sig":"8116df2ad43a6126f68c6f26c5a8ba2a861227a76ff67123677113cf5f2319da7f558b94be946b80f7b49a9a13ed1edd422fa799346bf8cb6e9def3d9f4c9881","tags":[["imeta","url https://cdn.nostrcheck.me/382d67ec6a31dc8d0c5b3099753a0044261a70e694aadd49eb58fce529cb3089/336be1277293f2d53fb97ab301957736be3e0a82eb16626e625bb9a2e1d26cd4.webp","dim 827x814","sha256 336be1277293f2d53fb97ab301957736be3e0a82eb16626e625bb9a2e1d26cd4"],["t","去中心化"],["t","Decentralization"],["t","decentralization"],["t","心空化"],["client","Nostur","31990:9be0be0fc079548233231614e4e1efc9f28b0db398011efeecf05fe570e5dd33:1685868693432"]]}] +[18:54:37.706] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"nostr:nprofile1qqszzf4msf9pxddg4hkre9a4ehdc67m9yhvapzg86chvs0enyzw80qqpypmhxue69uhky6t5vdhkjmndv9uxjmtpd35hxarn9ehkumrfdejj7qgkwaehxw309ajkgetw9ehx7um5wghxcctwvshsq3d5s2 \n\n","created_at":1759791276,"id":"4a5c21b093bc6b01a7535759e2bed8618876c00e97160d59867115306e8a7a7b","kind":1,"pubkey":"f6150173b5d6f079b43540d84a8a95d50cf01a48c9d6037984e3d9600d5522af","sig":"cfd5476a1a8477842fdbe66cc5d962f3a2e61f7909e94c36ce05557a4d740d0a69e99c72a4fedccfeb703083afdd3863b828688415efb5d25474dde74c61b1f1","tags":[["p","2126bb824a1335a8adec3c97b5cddb8d7b6525d9d08907d62ec83f33209c7780","wss://bitcoinmaximalists.online/","mention"],["p","683211bd155c7b764e4b99ba263a151d81209be7a566a2bb1971dc1bbd3b715e","wss://nos.lol/%20wss://nostr.land/%20%20avatar%20wss://nostr.wine/%20%20avatar%20wss://purplerelay.com/%20wss://relay.damus.io/%20wss://relay.snort.social/"],["e","be2ddd66a3d151a5fa6a38c0a43ffd4de5b20357abaf28b11954102348664624","wss://nos.lol/%20wss://nostr.land/%20%20avatar%20wss://nostr.wine/%20%20avatar%20wss://purplerelay.com/%20wss://relay.damus.io/%20wss://relay.snort.social/","root","683211bd155c7b764e4b99ba263a151d81209be7a566a2bb1971dc1bbd3b715e"]]}] +[18:54:40.101] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"Day 67 of the $10/day DCA Tracker\n\nToday’s Results:\nBest Performer: Ethereum (+4.11%)\nWorst Performer: REIT (-0.94%)\n\n*graphic shows performance based on the total time since invested. It's tracking how a consistent $10/day DCA performs in each asset over time so you can see cumulative returns, not just daily fluctuations.\n\nFollow along for the ride!\nhttps://blossom.primal.net/659442920b5bf5f07fd154c896d20ea6433ad009e71cffe7aa83332837d98aec.png\n\n","created_at":1759791279,"id":"d9a4b37ca9b5c9fd6a7092cb95fd9d53f4b38ef257a9d4ca45a16ba94aaaf9ef","kind":1,"pubkey":"fac513a1ceded1eabc7407c12997485de8bbb28eddecefa016817fc8d4f407a5","sig":"e3ddab44f0f4e50ff45a72f56000a0d667290697017f93c093a901773c04c029c8060bd0261eff623c745b036332547d56ebcfb59498d9537f27d4fbdde569be","tags":[["r","wss://brb.io/"],["r","wss://eden.nostr.land/"],["r","wss://nos.lol/"],["r","wss://nostr.orangepill.dev/"],["r","wss://nostr.wine/"],["r","wss://relay.current.fyi/"],["r","wss://relay.damus.io/"],["r","wss://relay.snort.social/"],["client","Primal Studio"]]}] +[18:54:42.363] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"GM ☕ 🌅👊","created_at":1759791281,"id":"0d89586ceaa523256647c1089090a7ad097b86a05c502f14772ea2a835fd9713","kind":1,"pubkey":"2822d3a6ae22a0af31193b03f2b2e84b5b2060bccdbefc0ee6696e128a3513bf","sig":"8205dfac792fd37147771dcd77a4b80fe68b6d41680727af7864090c4a5494270dbf7beccebe14e4fc773047ddc04a0b7af5bc3a72837a86085b86059b5a7f3c","tags":[["e","4024ce568c85efe6fc177367976f48bb080717589498fa7f8d5d4e1d0c17b3dd","wss://nostr-verified.wellorder.net","root"],["p","2c65940725bbf10bfbbf52b76c41606754441264f707d3d9cc1ceab86d73fd7f","","mention"]]}] +[18:55:00.398] RECV nos.lol:443: ["EVENT","pool_1_1759791188",{"content":"✄------------ 7:55 ------------✄","created_at":1759791300,"id":"9ef33fbe34d3efe55cb9e4b4cd3b1281da6770c3b65ac761b260214937f3aa48","kind":1,"pubkey":"3ce2b51dca8b67b69c0ccb7c6a226437f7dbcc44a32426e70e52c78336fc72c7","sig":"dc83b7d49a2567540434f3041d5219e8c02c5f58566c6ff8a2b22e6c5e95391d1dc9f0244a149124d3aeeb2ec38515daef837656861cfd2f45f16dfc479fe30c","tags":[]}] +[18:55:03.089] SEND localhost:7555: ["CLOSE", "pool_1_1759791188"] +[18:55:03.089] SEND nos.lol:443: ["CLOSE", "pool_1_1759791188"] + +=== NOSTR WebSocket Debug Log Started === +[05:52:03.588] SEND localhost:7555: ["REQ", "pool_1_1759830723", { + "limit": 10 + }] +[05:52:03.589] RECV localhost:7555: ["EVENT", "pool_1_1759830723", { + "id": "8433206a6e00ff021ddd1f162af38bf724aabd6a7ca5fb9e57bda74f26d46e3a", + "pubkey": "17323141f3a98b014f96ee85df59ee1ce6295e1502644c8e1f86439b20908198", + "created_at": 1759687410, + "kind": 1, + "content": "Test post at 2025-10-05 14:03:30", + "sig": "058a3bc6872e44e8d30cfba1d75267929ec3d73fbafa4c77f99897b700020a42478b51ee3bf4a4901beb376b9d3deca2854b3bca2f18eab169f9f5babdfeccb6", + "tags": [] + }] +[05:52:03.599] RECV localhost:7555: ["EVENT", "pool_1_1759830723", { + "id": "ec98292f570049ed00ae541cba716dcf6c8252b523ce036d9d3d79946ff62927", + "pubkey": "aa3b44608a9e52473a631d596c395dd297443237d56e34e31bdcd4272a1cf558", + "created_at": 1759687283, + "kind": 1, + "content": "Test post at 2025-10-05 14:01:23", + "sig": "3e5ffa59e881c4e772e3c0e65b26d5396b7687de2ae8e930b505fc2617ecfa4b392df32b3af41f8c989e5cb1eeb00d5c1fbedfba2729eb43a3838e49ebfffc8f", + "tags": [] + }] +[05:52:03.610] RECV localhost:7555: ["EVENT", "pool_1_1759830723", { + "id": "c70d6c5c8745c088bd3b99e5f529bb69cd3d162cb9db28aa433a798fa8d811c3", + "pubkey": "2a0c81450868960944c17b0f57f6aa2b5307b56bc8d9cc1b213674c561a3ab85", + "created_at": 1759687249, + "kind": 1, + "content": "Test post at 2025-10-05 14:00:49", + "sig": "76ac20012e84d49a528db140e48024d6a390033df75bfbad64e822208a6a4a3f863b84860da8bcf78c6d8c8933e30fba92f11ebca5f4602ba4428b10584c7ceb", + "tags": [] + }] +[05:52:03.620] RECV localhost:7555: ["EVENT", "pool_1_1759830723", { + "id": "15dbe2cfe9237b93992a3b4de9d90224032e8b613031748da92c46c1aeaa2e9c", + "pubkey": "7c2065299249ff1b4316c07af0d03d67ad145da80b907cc22aa608218c6d2687", + "created_at": 1759687219, + "kind": 1, + "content": "Test post at 2025-10-05 14:00:19", + "sig": "c0aa610658d8cfd76aca25894276a7f3f0573c2993429feff8b1ff10eeb5608ff18cfd79126de5f54e77f5b45a9d39f9006df65b56e4246e50cf72d212509569", + "tags": [] + }] +[05:52:03.631] RECV localhost:7555: ["EOSE", "pool_1_1759830723"] +[05:52:31.497] SEND localhost:7555: ["REQ", "pool_2_1759830751", { + "since": 1759830747, + "limit": 10 + }] +[05:52:31.498] RECV localhost:7555: ["EOSE", "pool_2_1759830751"] +[14:47:46.012] SEND localhost:7555: ["REQ", "pool_1_1759687332", { + "kinds": [1], + "since": 1759687324, + "limit": 10 + }] +[14:47:48.014] SEND localhost:7555: ["REQ", "pool_1_1759830723", { + "limit": 10 + }] +[14:47:48.014] SEND localhost:7555: ["REQ", "pool_2_1759830751", { + "since": 1759830747, + "limit": 10 + }] diff --git a/examples/relay_pool b/examples/relay_pool index c3abc056..157ec0f8 100755 Binary files a/examples/relay_pool and b/examples/relay_pool differ diff --git a/examples/relay_pool.c b/examples/relay_pool.c index 730beed5..29c03ad3 100644 --- a/examples/relay_pool.c +++ b/examples/relay_pool.c @@ -8,6 +8,7 @@ */ #define _POSIX_C_SOURCE 200809L +#define _DEFAULT_SOURCE #include #include #include @@ -109,7 +110,7 @@ void* poll_thread_func(void* arg) { // Print menu void print_menu() { printf("\n=== NOSTR Relay Pool Test Menu ===\n"); - printf("1. Start Pool (wss://relay.laantungir.net)\n"); + printf("1. Start Pool (ws://localhost:7555)\n"); printf("2. Stop Pool\n"); printf("3. Add relay to pool\n"); printf("4. Remove relay from pool\n"); @@ -117,7 +118,8 @@ void print_menu() { printf("6. Remove subscription\n"); printf("7. Show pool status\n"); printf("8. Test reconnection (simulate disconnect)\n"); - printf("9. Exit\n"); + printf("9. Publish Event\n"); + printf("0. Exit\n"); printf("Choice: "); } @@ -405,11 +407,24 @@ void show_pool_status() { printf("├── %s: %s\n", relay_urls[i], status_str); + // Show connection and publish error details + const char* conn_error = nostr_relay_pool_get_relay_last_connection_error(pool, relay_urls[i]); + const char* pub_error = nostr_relay_pool_get_relay_last_publish_error(pool, relay_urls[i]); + + if (conn_error) { + printf("│ ├── Connection error: %s\n", conn_error); + } + if (pub_error) { + printf("│ ├── Last publish error: %s\n", pub_error); + } + const nostr_relay_stats_t* stats = nostr_relay_pool_get_relay_stats(pool, relay_urls[i]); if (stats) { printf("│ ├── Events received: %d\n", stats->events_received); printf("│ ├── Connection attempts: %d\n", stats->connection_attempts); printf("│ ├── Connection failures: %d\n", stats->connection_failures); + printf("│ ├── Events published: %d (OK: %d, Failed: %d)\n", + stats->events_published, stats->events_published_ok, stats->events_published_failed); printf("│ ├── Ping latency: %.2f ms\n", stats->ping_latency_current); printf("│ └── Query latency: %.2f ms\n", stats->query_latency_avg); } @@ -422,6 +437,148 @@ void show_pool_status() { printf("\n"); } + +// Async publish callback context +typedef struct { + int total_relays; + int responses_received; + int success_count; + time_t start_time; +} async_publish_context_t; + +// Async publish callback - called for each relay response +void async_publish_callback(const char* relay_url, const char* event_id, + int success, const char* message, void* user_data) { + async_publish_context_t* ctx = (async_publish_context_t*)user_data; + + ctx->responses_received++; + if (success) { + ctx->success_count++; + } + + // Calculate elapsed time + time_t now = time(NULL); + double elapsed = difftime(now, ctx->start_time); + + // Log to file with real-time feedback + char timestamp[26]; + ctime_r(&now, timestamp); + timestamp[24] = '\0'; + + if (success) { + printf("✅ %s: Published successfully (%.1fs)\n", relay_url, elapsed); + dprintf(log_fd, "[%s] ✅ ASYNC: %s published successfully (%.1fs)\n", + timestamp, relay_url, elapsed); + } else { + printf("❌ %s: Failed - %s (%.1fs)\n", relay_url, message ? message : "unknown error", elapsed); + dprintf(log_fd, "[%s] ❌ ASYNC: %s failed - %s (%.1fs)\n", + timestamp, relay_url, message ? message : "unknown error", elapsed); + } + + // Show progress + printf(" Progress: %d/%d responses received\n", ctx->responses_received, ctx->total_relays); + + if (ctx->responses_received >= ctx->total_relays) { + printf("\n🎉 All relays responded! Final result: %d/%d successful\n", + ctx->success_count, ctx->total_relays); + dprintf(log_fd, "[%s] 🎉 ASYNC: All relays responded - %d/%d successful\n\n", + timestamp, ctx->success_count, ctx->total_relays); + } +} + +// Publish test event with async callbacks +void publish_event() { + if (!pool) { + printf("❌ Pool not started\n"); + return; + } + + printf("\n--- Publish Test Event ---\n"); + + // Generate random keypair + unsigned char private_key[32], public_key[32]; + if (nostr_generate_keypair(private_key, public_key) != NOSTR_SUCCESS) { + printf("❌ Failed to generate keypair\n"); + return; + } + + // Get current timestamp + time_t now = time(NULL); + + // Format content with date/time + char content[256]; + struct tm* tm_info = localtime(&now); + strftime(content, sizeof(content), "Test post at %Y-%m-%d %H:%M:%S", tm_info); + + // Create kind 1 event + cJSON* event = nostr_create_and_sign_event(1, content, NULL, private_key, now); + if (!event) { + printf("❌ Failed to create event\n"); + return; + } + + // Get relay URLs from pool + char** relay_urls = NULL; + nostr_pool_relay_status_t* statuses = NULL; + int relay_count = nostr_relay_pool_list_relays(pool, &relay_urls, &statuses); + + if (relay_count <= 0) { + printf("❌ No relays in pool\n"); + cJSON_Delete(event); + return; + } + + printf("📤 Publishing event to %d relay(s)...\n", relay_count); + printf("Watch for real-time responses below:\n\n"); + + // Setup callback context + async_publish_context_t ctx = {0}; + ctx.total_relays = relay_count; + ctx.start_time = time(NULL); + + // Log the event + char* event_json = cJSON_Print(event); + char timestamp[26]; + ctime_r(&now, timestamp); + timestamp[24] = '\0'; + dprintf(log_fd, "[%s] 📤 Publishing test event\n", timestamp); + dprintf(log_fd, "Event: %s\n\n", event_json); + free(event_json); + + // Publish using async function + int sent_count = nostr_relay_pool_publish_async(pool, (const char**)relay_urls, + relay_count, event, + async_publish_callback, &ctx); + + if (sent_count > 0) { + printf("📡 Event sent to %d/%d relays, waiting for responses...\n\n", + sent_count, relay_count); + + // Wait for all responses or timeout (10 seconds) + time_t wait_start = time(NULL); + while (ctx.responses_received < ctx.total_relays && + (time(NULL) - wait_start) < 10) { + // Let the polling thread process messages + usleep(100000); // 100ms + } + + if (ctx.responses_received < ctx.total_relays) { + printf("\n⏰ Timeout reached - %d/%d relays responded\n", + ctx.responses_received, ctx.total_relays); + } + } else { + printf("❌ Failed to send event to any relays\n"); + } + + // Cleanup + for (int i = 0; i < relay_count; i++) { + free(relay_urls[i]); + } + free(relay_urls); + free(statuses); + cJSON_Delete(event); +} + int main() { // Setup logging to file log_fd = open("pool.log", O_WRONLY | O_CREAT | O_TRUNC, 0644); @@ -489,14 +646,14 @@ int main() { break; } - if (nostr_relay_pool_add_relay(pool, "wss://relay.laantungir.net") != NOSTR_SUCCESS) { + if (nostr_relay_pool_add_relay(pool, "ws://localhost:7555") != NOSTR_SUCCESS) { printf("❌ Failed to add default relay\n"); nostr_relay_pool_destroy(pool); pool = NULL; break; } - printf("✅ Pool started with wss://relay.laantungir.net\n"); + printf("✅ Pool started with ws://localhost:7555\n"); now = time(NULL); ctime_r(&now, timestamp); @@ -544,13 +701,49 @@ int main() { if (url && strlen(url) > 0) { if (nostr_relay_pool_add_relay(pool, url) == NOSTR_SUCCESS) { printf("✅ Relay added: %s\n", url); + printf("⏳ Attempting to connect...\n"); + + // Give it a moment to attempt connection + sleep(2); + + // Check connection status and show any errors + nostr_pool_relay_status_t status = nostr_relay_pool_get_relay_status(pool, url); + const char* error_msg = nostr_relay_pool_get_relay_last_connection_error(pool, url); + + switch (status) { + case NOSTR_POOL_RELAY_CONNECTED: + printf("🟢 Successfully connected to %s\n", url); + break; + case NOSTR_POOL_RELAY_CONNECTING: + printf("🟡 Still connecting to %s...\n", url); + break; + case NOSTR_POOL_RELAY_DISCONNECTED: + printf("⚪ Disconnected from %s\n", url); + if (error_msg) { + printf(" Last error: %s\n", error_msg); + } + break; + case NOSTR_POOL_RELAY_ERROR: + printf("🔴 Connection error for %s\n", url); + if (error_msg) { + printf(" Error details: %s\n", error_msg); + } + break; + default: + printf("❓ Unknown status for %s\n", url); + break; + } now = time(NULL); ctime_r(&now, timestamp); timestamp[24] = '\0'; - dprintf(log_fd, "[%s] ➕ Relay added: %s\n\n", timestamp, url); + dprintf(log_fd, "[%s] ➕ Relay added: %s (status: %d)\n", timestamp, url, status); + if (error_msg) { + dprintf(log_fd, " Connection error: %s\n", error_msg); + } + dprintf(log_fd, "\n"); } else { - printf("❌ Failed to add relay\n"); + printf("❌ Failed to add relay to pool\n"); } } free(url); @@ -655,7 +848,11 @@ int main() { break; } - case '9': // Exit + case '9': // Publish Event + publish_event(); + break; + + case '0': // Exit running = 0; break; diff --git a/nostr_core/core_relay_pool.c b/nostr_core/core_relay_pool.c index ce07f71f..fe48af37 100644 --- a/nostr_core/core_relay_pool.c +++ b/nostr_core/core_relay_pool.c @@ -41,6 +41,7 @@ #define NOSTR_POOL_SUBSCRIPTION_ID_SIZE 32 #define NOSTR_POOL_PING_INTERVAL 59 // 59 seconds - keeps connections alive #define NOSTR_POOL_MAX_PENDING_SUBSCRIPTIONS 8 // Max concurrent subscription timings per relay +#define NOSTR_POOL_MAX_PENDING_PUBLISHES 32 // Max concurrent publish operations // High-resolution timing helper static double get_current_time_ms(void) { @@ -60,6 +61,17 @@ typedef struct subscription_timing { int active; } subscription_timing_t; +// Publish operation tracking for async callbacks +typedef struct publish_operation { + char event_id[65]; // Event ID being published + publish_response_callback_t callback; // User callback function + void* user_data; // User data for callback + time_t publish_time; // When publish was initiated + int pending_relay_count; // Number of relays still pending response + char** pending_relay_urls; // URLs of relays still pending + int total_relay_count; // Total number of relays for this publish +} publish_operation_t; + // Internal structures typedef struct relay_connection { char* url; @@ -147,6 +159,10 @@ struct nostr_relay_pool { nostr_pool_subscription_t* subscriptions[NOSTR_POOL_MAX_SUBSCRIPTIONS]; int subscription_count; + // Active publish operations for async callbacks + publish_operation_t* publish_operations[NOSTR_POOL_MAX_PENDING_PUBLISHES]; + int publish_operation_count; + // Pool-wide settings int default_timeout_ms; }; @@ -217,6 +233,122 @@ static double remove_subscription_timing(relay_connection_t* relay, const char* return -1.0; // Not found } +// Helper functions for managing publish operations +static int add_publish_operation(nostr_relay_pool_t* pool, const char* event_id, + const char** relay_urls, int relay_count, + publish_response_callback_t callback, void* user_data) { + if (!pool || !event_id || !relay_urls || relay_count <= 0) return -1; + + // Check if we have space for another operation + if (pool->publish_operation_count >= NOSTR_POOL_MAX_PENDING_PUBLISHES) { + return -1; // No space available + } + + // Create new publish operation + publish_operation_t* op = calloc(1, sizeof(publish_operation_t)); + if (!op) return -1; + + // Copy event ID + strncpy(op->event_id, event_id, sizeof(op->event_id) - 1); + op->event_id[sizeof(op->event_id) - 1] = '\0'; + + // Set callback and user data + op->callback = callback; + op->user_data = user_data; + op->publish_time = time(NULL); + op->total_relay_count = relay_count; + op->pending_relay_count = relay_count; + + // Copy relay URLs + op->pending_relay_urls = malloc(relay_count * sizeof(char*)); + if (!op->pending_relay_urls) { + free(op); + return -1; + } + + for (int i = 0; i < relay_count; i++) { + op->pending_relay_urls[i] = strdup(relay_urls[i]); + if (!op->pending_relay_urls[i]) { + // Cleanup on failure + for (int j = 0; j < i; j++) { + free(op->pending_relay_urls[j]); + } + free(op->pending_relay_urls); + free(op); + return -1; + } + } + + // Add to pool + pool->publish_operations[pool->publish_operation_count++] = op; + return 0; +} + +static publish_operation_t* find_publish_operation(nostr_relay_pool_t* pool, const char* event_id) { + if (!pool || !event_id) return NULL; + + for (int i = 0; i < pool->publish_operation_count; i++) { + if (pool->publish_operations[i] && + strcmp(pool->publish_operations[i]->event_id, event_id) == 0) { + return pool->publish_operations[i]; + } + } + return NULL; +} + +static void remove_publish_operation(nostr_relay_pool_t* pool, const char* event_id) { + if (!pool || !event_id) return; + + for (int i = 0; i < pool->publish_operation_count; i++) { + if (pool->publish_operations[i] && + strcmp(pool->publish_operations[i]->event_id, event_id) == 0) { + + publish_operation_t* op = pool->publish_operations[i]; + + // Free relay URLs (only non-NULL ones) + if (op->pending_relay_urls) { + for (int j = 0; j < op->total_relay_count; j++) { + if (op->pending_relay_urls[j]) { + free(op->pending_relay_urls[j]); + op->pending_relay_urls[j] = NULL; + } + } + free(op->pending_relay_urls); + op->pending_relay_urls = NULL; + } + free(op); + + // Shift remaining operations + for (int j = i; j < pool->publish_operation_count - 1; j++) { + pool->publish_operations[j] = pool->publish_operations[j + 1]; + } + pool->publish_operations[--pool->publish_operation_count] = NULL; + break; + } + } +} + +static int remove_relay_from_publish_operation(publish_operation_t* op, const char* relay_url) { + if (!op || !relay_url) return -1; + + for (int i = 0; i < op->pending_relay_count; i++) { + if (op->pending_relay_urls[i] && strcmp(op->pending_relay_urls[i], relay_url) == 0) { + // Free this relay URL + free(op->pending_relay_urls[i]); + op->pending_relay_urls[i] = NULL; // Mark as freed + + // Shift remaining URLs + for (int j = i; j < op->pending_relay_count - 1; j++) { + op->pending_relay_urls[j] = op->pending_relay_urls[j + 1]; + } + op->pending_relay_urls[op->pending_relay_count - 1] = NULL; // Clear the last slot + op->pending_relay_count--; + return op->pending_relay_count; // Return remaining count + } + } + return -1; // Relay not found +} + // Helper function to ensure relay connection static int ensure_relay_connection(relay_connection_t* relay) { if (!relay) { @@ -559,6 +691,20 @@ void nostr_relay_pool_destroy(nostr_relay_pool_t* pool) { } } + // Clean up all pending publish operations + for (int i = 0; i < pool->publish_operation_count; i++) { + if (pool->publish_operations[i]) { + publish_operation_t* op = pool->publish_operations[i]; + + // Free relay URLs + for (int j = 0; j < op->total_relay_count; j++) { + free(op->pending_relay_urls[j]); + } + free(op->pending_relay_urls); + free(op); + } + } + // Close all relay connections for (int i = 0; i < pool->relay_count; i++) { if (pool->relays[i]) { @@ -902,25 +1048,48 @@ static void process_relay_message(nostr_relay_pool_t* pool, relay_connection_t* } else if (strcmp(msg_type, "OK") == 0) { // Handle OK response: ["OK", event_id, true/false, message] if (cJSON_IsArray(parsed) && cJSON_GetArraySize(parsed) >= 3) { + cJSON* event_id_json = cJSON_GetArrayItem(parsed, 1); cJSON* success_flag = cJSON_GetArrayItem(parsed, 2); - if (cJSON_IsBool(success_flag)) { - if (cJSON_IsTrue(success_flag)) { + if (cJSON_IsString(event_id_json) && cJSON_IsBool(success_flag)) { + const char* event_id = cJSON_GetStringValue(event_id_json); + int success = cJSON_IsTrue(success_flag); + const char* error_message = NULL; + + // Extract error message if available + if (!success && cJSON_GetArraySize(parsed) >= 4) { + cJSON* error_msg = cJSON_GetArrayItem(parsed, 3); + if (cJSON_IsString(error_msg)) { + error_message = cJSON_GetStringValue(error_msg); + } + } + + // Update relay statistics + if (success) { relay->stats.events_published_ok++; } else { relay->stats.events_published_failed++; - // Store error message if available - if (cJSON_GetArraySize(parsed) >= 4) { - cJSON* error_msg = cJSON_GetArrayItem(parsed, 3); - if (cJSON_IsString(error_msg)) { - const char* msg = cJSON_GetStringValue(error_msg); - if (msg) { - strncpy(relay->last_publish_error, msg, - sizeof(relay->last_publish_error) - 1); - relay->last_publish_error[sizeof(relay->last_publish_error) - 1] = '\0'; - relay->last_publish_error_time = time(NULL); - } - } + // Store error message for legacy API + if (error_message) { + strncpy(relay->last_publish_error, error_message, + sizeof(relay->last_publish_error) - 1); + relay->last_publish_error[sizeof(relay->last_publish_error) - 1] = '\0'; + relay->last_publish_error_time = time(NULL); + } + } + + // Check for async publish operation callback + publish_operation_t* op = find_publish_operation(pool, event_id); + if (op && op->callback) { + // Call the user's callback + op->callback(relay->url, event_id, success, error_message, op->user_data); + + // Remove this relay from the pending list + int remaining = remove_relay_from_publish_operation(op, relay->url); + + // If no more relays pending, remove the operation + if (remaining == 0) { + remove_publish_operation(pool, event_id); } } } @@ -1113,16 +1282,35 @@ cJSON* nostr_relay_pool_get_event( return result; } -int nostr_relay_pool_publish( + +int nostr_relay_pool_publish_async( nostr_relay_pool_t* pool, const char** relay_urls, int relay_count, - cJSON* event) { + cJSON* event, + publish_response_callback_t callback, + void* user_data) { if (!pool || !relay_urls || relay_count <= 0 || !event) { return -1; } + // Extract event ID for tracking + cJSON* event_id_json = cJSON_GetObjectItem(event, "id"); + if (!event_id_json || !cJSON_IsString(event_id_json)) { + return -1; // Event must have an ID + } + const char* event_id = cJSON_GetStringValue(event_id_json); + + // Add publish operation for tracking (only if callback provided) + publish_operation_t* op = NULL; + if (callback) { + if (add_publish_operation(pool, event_id, relay_urls, relay_count, callback, user_data) != 0) { + return -1; // Failed to add operation + } + op = find_publish_operation(pool, event_id); + } + int success_count = 0; for (int i = 0; i < relay_count; i++) { @@ -1135,55 +1323,35 @@ int nostr_relay_pool_publish( } if (relay && ensure_relay_connection(relay) == 0) { - double start_time_ms = get_current_time_ms(); - // Send EVENT message if (nostr_relay_send_event(relay->ws_client, event) >= 0) { relay->stats.events_published++; - - // Wait for OK response - char buffer[1024]; - time_t wait_start = time(NULL); - int got_response = 0; - - while (time(NULL) - wait_start < 5 && !got_response) { // 5 second timeout - int len = nostr_ws_receive(relay->ws_client, buffer, sizeof(buffer) - 1, 1000); - if (len > 0) { - buffer[len] = '\0'; - - char* msg_type = NULL; - cJSON* parsed = NULL; - if (nostr_parse_relay_message(buffer, &msg_type, &parsed) == 0) { - if (msg_type && strcmp(msg_type, "OK") == 0) { - // Handle OK response - if (cJSON_IsArray(parsed) && cJSON_GetArraySize(parsed) >= 3) { - cJSON* success_flag = cJSON_GetArrayItem(parsed, 2); - if (cJSON_IsBool(success_flag) && cJSON_IsTrue(success_flag)) { - success_count++; - relay->stats.events_published_ok++; - - // Update publish latency statistics - double latency_ms = get_current_time_ms() - start_time_ms; - if (relay->stats.publish_samples == 0) { - relay->stats.publish_latency_avg = latency_ms; - } else { - relay->stats.publish_latency_avg = - (relay->stats.publish_latency_avg * relay->stats.publish_samples + latency_ms) / - (relay->stats.publish_samples + 1); - } - relay->stats.publish_samples++; - } else { - relay->stats.events_published_failed++; - } - } - got_response = 1; - } - if (msg_type) free(msg_type); - if (parsed) cJSON_Delete(parsed); - } + success_count++; + } else { + // If send failed and we have a callback, notify immediately + if (callback && op) { + callback(relay_urls[i], event_id, 0, "Failed to send event to relay", user_data); + + // Remove this relay from the pending operation + int remaining = remove_relay_from_publish_operation(op, relay_urls[i]); + if (remaining == 0) { + remove_publish_operation(pool, event_id); + op = NULL; // Mark as removed to prevent double-free } } } + } else { + // Connection failed - notify callback immediately if provided + if (callback && op) { + callback(relay_urls[i], event_id, 0, "Failed to connect to relay", user_data); + + // Remove this relay from the pending operation + int remaining = remove_relay_from_publish_operation(op, relay_urls[i]); + if (remaining == 0) { + remove_publish_operation(pool, event_id); + op = NULL; // Mark as removed to prevent double-free + } + } } } diff --git a/nostr_core/nostr_core.h b/nostr_core/nostr_core.h index 56e47c53..907e1821 100644 --- a/nostr_core/nostr_core.h +++ b/nostr_core/nostr_core.h @@ -288,11 +288,23 @@ cJSON* nostr_relay_pool_get_event( int relay_count, cJSON* filter, int timeout_ms); -int nostr_relay_pool_publish( +// Async publish callback typedef +typedef void (*publish_response_callback_t)( + const char* relay_url, + const char* event_id, + int success, // 1 for OK, 0 for rejection + const char* message, // Error message if rejected, NULL if success + void* user_data +); + +// Async publish function (only async version available) +int nostr_relay_pool_publish_async( nostr_relay_pool_t* pool, const char** relay_urls, int relay_count, - cJSON* event); + cJSON* event, + publish_response_callback_t callback, + void* user_data); // Status and statistics functions nostr_pool_relay_status_t nostr_relay_pool_get_relay_status( diff --git a/pool.log b/pool.log index 6d639045..43e832a1 100644 --- a/pool.log +++ b/pool.log @@ -1,1566 +1,47 @@ -[Fri Oct 3 04:46:58 2025] 🚀 Pool test started +[Tue Oct 7 05:51:04 2025] 🚀 Pool test started -[Fri Oct 3 04:47:06 2025] 🏊 Pool started with default relay +[Tue Oct 7 05:51:07 2025] 🏊 Pool started with default relay -[Fri Oct 3 04:47:40 2025] 🔍 New subscription created (ID: 1) +[Tue Oct 7 05:52:03 2025] 🔍 New subscription created (ID: 1) Filter: { - "kinds": [1], - "since": 1759481255, "limit": 10 } -[Fri Oct 3 04:47:40 2025] 📋 EOSE received - 0 events collected +[Tue Oct 7 05:52:03 2025] 📨 EVENT from ws://localhost:7555 +├── ID: 8433206a6e00... +├── Pubkey: 17323141f3a9... +├── Kind: 1 +├── Created: 1759687410 +└── Content: Test post at 2025-10-05 14:03:30 -[Fri Oct 3 04:48:09 2025] ➕ Relay added: wss://nos.lol +[Tue Oct 7 05:52:03 2025] 📨 EVENT from ws://localhost:7555 +├── ID: ec98292f5700... +├── Pubkey: aa3b44608a9e... +├── Kind: 1 +├── Created: 1759687283 +└── Content: Test post at 2025-10-05 14:01:23 -[Fri Oct 3 04:49:01 2025] 🔍 New subscription created (ID: 2) +[Tue Oct 7 05:52:03 2025] 📨 EVENT from ws://localhost:7555 +├── ID: c70d6c5c8745... +├── Pubkey: 2a0c81450868... +├── Kind: 1 +├── Created: 1759687249 +└── Content: Test post at 2025-10-05 14:00:49 + +[Tue Oct 7 05:52:03 2025] 📨 EVENT from ws://localhost:7555 +├── ID: 15dbe2cfe923... +├── Pubkey: 7c2065299249... +├── Kind: 1 +├── Created: 1759687219 +└── Content: Test post at 2025-10-05 14:00:19 + +[Tue Oct 7 05:52:03 2025] 📋 EOSE received - 0 events collected + +[Tue Oct 7 05:52:31 2025] 🔍 New subscription created (ID: 2) Filter: { - "since": 1759481338, + "since": 1759830747, "limit": 10 } -[Fri Oct 3 04:49:02 2025] 📨 EVENT from wss://nos.lol -├── ID: d20683a8bef0... -├── Pubkey: fda2c930fc10... -├── Kind: 23195 -├── Created: 1759481342 -└── Content: GGmq+90RnCnnuCQpWuqP1N9s0651oxTlY3Tu+WLVsmw9lrIEPeo0Bzn8/b2NxxhaD9dHytmLkDbysjlMMzVrTw==?iv=bRFFW... - -[Fri Oct 3 04:49:02 2025] 📨 EVENT from wss://nos.lol -├── ID: 0f5c64adc2b2... -├── Pubkey: 4e19bf35f05a... -├── Kind: 23195 -├── Created: 1759481340 -└── Content: OBM74wU9m2upr5SZKuqVu7gusod0GyPlkz+0npcp0xEDTLZv3MiD4bF862G3XttXeT9wm3ZMn4izTiw9NLMJiw==?iv=M27y0... - -[Fri Oct 3 04:49:02 2025] 📨 EVENT from wss://nos.lol -├── ID: f9b523254bf6... -├── Pubkey: 005a5052b942... -├── Kind: 23195 -├── Created: 1759481339 -└── Content: 17KQ2E9+65kknV2x6HhRTFW186fJI8tfsM0me65Cb+fBlBIq9MYhRb0O/fUMUqAaRE4BG9KkZ8EPWQvQcs0a6Q==?iv=khPOF... - -[Fri Oct 3 04:49:02 2025] 📨 EVENT from wss://nos.lol -├── ID: b1ef6b14d735... -├── Pubkey: fba1bbd8ab57... -├── Kind: 5 -├── Created: 1759481338 -└── Content: - -[Fri Oct 3 04:49:02 2025] 📋 EOSE received - 0 events collected - -[Fri Oct 3 04:49:05 2025] 📨 EVENT from wss://nos.lol -├── ID: 1cc69bbda533... -├── Pubkey: 87050b491524... -├── Kind: 10002 -├── Created: 1759481344 -└── Content: - -[Fri Oct 3 04:49:06 2025] 📨 EVENT from wss://nos.lol -├── ID: 27f48b699bb1... -├── Pubkey: 87050b491524... -├── Kind: 0 -├── Created: 1759481344 -└── Content: {"name":"Yahoo!ニュースbot","about":"Yahoo!ニュースをRSSで取得して15分おきに投... - -[Fri Oct 3 04:49:07 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 44838166608b... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481347 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,525 -Total Size: 2.19 MB -Memory Usage: 4.2% -A... - -[Fri Oct 3 04:49:08 2025] 📨 EVENT from wss://nos.lol -├── ID: 2990d842a3cf... -├── Pubkey: cd2236014df2... -├── Kind: 23195 -├── Created: 1759481348 -└── Content: GYFx7fT1QlCmfdje20dBdKi/VENAi/wbPpysu/Jea6XFQwLs72EpETGZh8MheSW4Zm+8T+4R6gaHac6xoiMt6Q==?iv=v4Y8T... - -[Fri Oct 3 04:49:08 2025] 📨 EVENT from wss://nos.lol -├── ID: 6697f4dfbb59... -├── Pubkey: 10f7c7f772dd... -├── Kind: 1 -├── Created: 1759481347 -└── Content: Ha ha ha ha, read that I initially thought you were saying I’m a dick crypto bro” (excuse me,... - -[Fri Oct 3 04:49:09 2025] 📨 EVENT from wss://nos.lol -├── ID: 3b1f33c1121a... -├── Pubkey: 1e3aa9756736... -├── Kind: 1 -├── Created: 1759481348 -└── Content: vmess://eyJhZGQiOiAiMTAzLjE1OS4yMDYuMzUiLCAiYWlkIjogIjAiLCAiYWxwbiI6ICIiLCAiZnAiOiAiIiwgImhvc3QiO... - -[Fri Oct 3 04:49:09 2025] 📨 EVENT from wss://nos.lol -├── ID: 6d6ff4c06337... -├── Pubkey: 4a9be43c2a7e... -├── Kind: 1 -├── Created: 1759481346 -└── Content: Gotta love the arrogance of thinking you know better than almost 20,000 climate scientists just b... - -[Fri Oct 3 04:49:09 2025] 📨 EVENT from wss://nos.lol -├── ID: 864505dde6c3... -├── Pubkey: fba1bbd8ab57... -├── Kind: 5 -├── Created: 1759481349 -└── Content: - -[Fri Oct 3 04:49:09 2025] 📨 EVENT from wss://nos.lol -├── ID: 263cd13d28d6... -├── Pubkey: a4132de3f6fe... -├── Kind: 0 -├── Created: 1759481347 -└── Content: {"name":"RSS-to-Nostr of Al Jazeera English","about":"RSS-to-Nostr feed of Al Jazeera English\nMo... - -[Fri Oct 3 04:49:09 2025] 📨 EVENT from wss://nos.lol -├── ID: 9f0266fd87b5... -├── Pubkey: a4132de3f6fe... -├── Kind: 3 -├── Created: 1759481349 -└── Content: - -[Fri Oct 3 04:49:10 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: e24a05cd3c2c... -├── Pubkey: 1dbaf7d631fc... -├── Kind: 20000 -├── Created: 1759481350 -└── Content: Лемуры без инета остались - -[Fri Oct 3 04:49:12 2025] 📨 EVENT from wss://nos.lol -├── ID: d6352147e185... -├── Pubkey: 06f4638e1640... -├── Kind: 1 -├── Created: 1759481351 -└── Content: 🥰🥰 - - - -[Fri Oct 3 04:49:12 2025] 📨 EVENT from wss://nos.lol -├── ID: 85cba6515d0b... -├── Pubkey: 2ce6eab2e7fc... -├── Kind: 7 -├── Created: 1759481351 -└── Content: 🫡 - -[Fri Oct 3 04:49:13 2025] 📨 EVENT from wss://nos.lol -├── ID: b163f750a12a... -├── Pubkey: 37b43fd9346e... -├── Kind: 30078 -├── Created: 1759481353 -└── Content: Ahb5fjpwg4FYEElHSV38gl26iG9rFVgsXkjpciX3cWTa181vn/DLHa9sT3WW89AtF8ngJ5DiQ7ud8NKSTkDfhoBcpDQu9GCcx... - -[Fri Oct 3 04:49:13 2025] 📨 EVENT from wss://nos.lol -├── ID: d9b58cab0524... -├── Pubkey: f4635d901d37... -├── Kind: 23195 -├── Created: 1759481353 -└── Content: 1ThyO9hO0ZdnY/3dIw3c5FRjqd/ALeHRyzvjdBex6fjw1/r/E+oBO+uqPW3/eEv2VXGovsZQTLgbnu8sJIShjA==?iv=tgmRY... - -[Fri Oct 3 04:49:13 2025] 📨 EVENT from wss://nos.lol -├── ID: 9a7c44d036a9... -├── Pubkey: 45b35521c312... -├── Kind: 1 -├── Created: 1759481358 -└── Content: https://image.nostr.build/042c7d7d1a50731f5f667c6da77ddbbf28fecb4418bb8de26763d6689257a174.jpg - -[Fri Oct 3 04:49:14 2025] 📨 EVENT from wss://nos.lol -├── ID: 67bd1dc52108... -├── Pubkey: b869548bf2f5... -├── Kind: 23195 -├── Created: 1759481354 -└── Content: qRiHDdB/6dBIR1r8MWdWmReC1H/RjPTJ30qFACpTQIVbvcWw+IMb9VLXiIPYpt925ZX/jXOnITXPm3Nh2PKg6g==?iv=U4os4... - -[Fri Oct 3 04:49:15 2025] 📨 EVENT from wss://nos.lol -├── ID: 3141d6144adb... -├── Pubkey: 8921652e6f2e... -├── Kind: 23195 -├── Created: 1759481355 -└── Content: bGOb0ux3HgRmIAr8WF5V1skOuE2+YG18GuuH0bGkSaA0q5MKJMLPhFQCe42Lx9Pdp1Nf7V+k/BMOWAM6FotsKw==?iv=Ipdik... - -[Fri Oct 3 04:49:16 2025] 📨 EVENT from wss://nos.lol -├── ID: 747c506cd79b... -├── Pubkey: 456f5df2aa0d... -├── Kind: 10002 -├── Created: 1759481354 -└── Content: - -[Fri Oct 3 04:49:16 2025] 📨 EVENT from wss://nos.lol -├── ID: bd051b218377... -├── Pubkey: 451bbdb2caa4... -├── Kind: 10002 -├── Created: 1759481355 -└── Content: - -[Fri Oct 3 04:49:16 2025] 📨 EVENT from wss://nos.lol -├── ID: d69ca7518e6a... -├── Pubkey: 456f5df2aa0d... -├── Kind: 0 -├── Created: 1759481354 -└── Content: {"name":"Disclose.tv","about":"Observing world events unfold in the grand theater of our time.\n\... - -[Fri Oct 3 04:49:17 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: ca85b756856c... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481357 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,549 -Total Size: 2.19 MB -Memory Usage: 4.2% -A... - -[Fri Oct 3 04:49:18 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 9b0ba5727cf9... -├── Pubkey: 1dbaf7d631fc... -├── Kind: 20000 -├── Created: 1759481358 -└── Content: @GHZ#d648 да, конечно - -[Fri Oct 3 04:49:18 2025] 📨 EVENT from wss://nos.lol -├── ID: 074a4ab3b5c0... -├── Pubkey: aa6b49bef060... -├── Kind: 23195 -├── Created: 1759481360 -└── Content: UqjiJp3FgDFpTC8kQGcDWurIcTrV9qcPl7uViTa1bTsJZiGcylkXk6E9FEr49dXpqV64IFrO1K83hRy0zIen+w==?iv=C53OC... - -[Fri Oct 3 04:49:20 2025] 📨 EVENT from wss://nos.lol -├── ID: fa70c8d38741... -├── Pubkey: 95939b99059c... -├── Kind: 23195 -├── Created: 1759481360 -└── Content: N0KQPDepXcZKmyuWtZRnR60O8kL9mDADKNsD+kpzjr+iz6q4odNfNm8Vm9qSaZVjCF4yaR00ZCEeFDS0/c91Eg==?iv=SND/H... - -[Fri Oct 3 04:49:21 2025] 📨 EVENT from wss://nos.lol -├── ID: 46cab7608ad7... -├── Pubkey: 7f0a486c4b47... -├── Kind: 7 -├── Created: 1759481349 -└── Content: + - -[Fri Oct 3 04:49:22 2025] 📨 EVENT from wss://nos.lol -├── ID: 19bb39011925... -├── Pubkey: a790a7495795... -├── Kind: 23195 -├── Created: 1759481359 -└── Content: X7ygNfaaXHwz9IK/u68kN1/cQynNY/G6DOFiijPtO1Vytz3aHJIjmOmCOoiu2BSi7wIXv8eHNNkJNyZsjtX8SA==?iv=1zSUp... - -[Fri Oct 3 04:49:22 2025] 📨 EVENT from wss://nos.lol -├── ID: 2a85ad943e05... -├── Pubkey: 7c17b40889d1... -├── Kind: 7 -├── Created: 1759481361 -└── Content: + - -[Fri Oct 3 04:49:23 2025] 📨 EVENT from wss://nos.lol -├── ID: 80ed59e8e1e9... -├── Pubkey: f18571e72c93... -├── Kind: 7 -├── Created: 1759481363 -└── Content: 😂 - -[Fri Oct 3 04:49:24 2025] 📨 EVENT from wss://nos.lol -├── ID: aadbbace3241... -├── Pubkey: 7f0a486c4b47... -├── Kind: 3 -├── Created: 1759481352 -└── Content: - -[Fri Oct 3 04:49:24 2025] 📨 EVENT from wss://nos.lol -├── ID: 67c3eadac347... -├── Pubkey: 4b29db7a76f3... -├── Kind: 7 -├── Created: 1759481364 -└── Content: 💜 - -[Fri Oct 3 04:49:24 2025] 📨 EVENT from wss://nos.lol -├── ID: 4fa2ea1e88b9... -├── Pubkey: 1266a86330a5... -├── Kind: 0 -├── Created: 1759481361 -└── Content: {"name":"RSS-to-Nostr of Nature","about":"RSS-to-Nostr feed of Nature\nMore RSS-To-Nostr can be f... - -[Fri Oct 3 04:49:25 2025] 📨 EVENT from wss://nos.lol -├── ID: ac234062097a... -├── Pubkey: 1266a86330a5... -├── Kind: 3 -├── Created: 1759481365 -└── Content: - -[Fri Oct 3 04:49:26 2025] 📨 EVENT from wss://nos.lol -├── ID: 9106cdfb8eea... -├── Pubkey: 9b3334b66d04... -├── Kind: 7 -├── Created: 1759481366 -└── Content: + - -[Fri Oct 3 04:49:27 2025] 📨 EVENT from wss://nos.lol -├── ID: 2bc5a446bf6f... -├── Pubkey: ebb6df54ef97... -├── Kind: 23195 -├── Created: 1759481366 -└── Content: znpXNoxigcsXsn/RLb3a1gSjlTgQwHQmh7HTHOgp4yGA2jgMvYqS4QYXPBosCgoPtCk5U/sfeqOKIQtUvxqgTw==?iv=9lJYt... - -[Fri Oct 3 04:49:27 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 2e479971302d... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481367 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,592 -Total Size: 2.20 MB -Memory Usage: 4.2% -A... - -[Fri Oct 3 04:49:28 2025] 📨 EVENT from wss://nos.lol -├── ID: 2324a6f9ab5e... -├── Pubkey: f18571e72c93... -├── Kind: 6 -├── Created: 1759481367 -└── Content: {"id":"c170ef255921cdf85f7e3bdf0d51ca69426ea6b6ddf5da0bb719b04b3d168ca3","pubkey":"38abc08e19dc13... - -[Fri Oct 3 04:49:28 2025] 📨 EVENT from wss://nos.lol -├── ID: 23f01698bced... -├── Pubkey: 4b29db7a76f3... -├── Kind: 6 -├── Created: 1759481369 -└── Content: {"id":"541dd83ccd4782282b9f5e5b9f1ba955735d26353e2d57f315cca9b550dfcc55","pubkey":"b190175cef407c... - -[Fri Oct 3 04:49:28 2025] 📨 EVENT from wss://nos.lol -├── ID: 3790209d3e20... -├── Pubkey: c6be73b9a274... -├── Kind: 1 -├── Created: 1759481368 -└── Content: ⠃⠊⠞⠉⠕⠊⠝ - -⠼⠃⠁ ⠍⠊⠇⠇⠊⠕⠝⠑⠝ - -⠎⠁⠞⠕⠎⠓⠊ - -🎧🔈 - -... - -[Fri Oct 3 04:49:29 2025] 📨 EVENT from wss://nos.lol -├── ID: db00d665d2bd... -├── Pubkey: 005a5052b942... -├── Kind: 23195 -├── Created: 1759481369 -└── Content: FTUIMKZKRZdocHGaPVMakgB1qyPLFXdHRO+lK1i4w/5S4h5K8PmzGEgQR/83RDyForCTu23YXILfAG2zLGu40w==?iv=dRZCH... - -[Fri Oct 3 04:49:30 2025] 📨 EVENT from wss://nos.lol -├── ID: ae131768c6ec... -├── Pubkey: 4e19bf35f05a... -├── Kind: 23195 -├── Created: 1759481370 -└── Content: 2KwbBbVGHfAJjxrnq/byLJPVjaqafL15ysDSvuqijg83fzzoR0763z+lrGO4mWTC8izeaGDfvWtqE0l/xrAInQ==?iv=rD60i... - -[Fri Oct 3 04:49:31 2025] 📨 EVENT from wss://nos.lol -├── ID: c733c8e1f2db... -├── Pubkey: e83b66a8ed2d... -├── Kind: 7 -├── Created: 1759481370 -└── Content: + - -[Fri Oct 3 04:49:31 2025] 📨 EVENT from wss://nos.lol -├── ID: c528121b9426... -├── Pubkey: fda2c930fc10... -├── Kind: 23195 -├── Created: 1759481372 -└── Content: uIaxcmOzTXXhS+URd9a9kwZIYugIz0jGrsVMZ4xE15xH6DZMvyMUShgq58URpo5Ja2byQ1cpRMEqFby81I4jtw==?iv=61oyn... - -[Fri Oct 3 04:49:32 2025] 📨 EVENT from wss://nos.lol -├── ID: 9577ac5dd286... -├── Pubkey: 832b77d5ecb0... -├── Kind: 1 -├── Created: 1759481372 -└── Content: 🟩BUY BTC with GBP -Price: 90876.6GBP (2%) -BTC: 0.011 -GBP: 1000 -Method: Faster Payments -Created:... - -[Fri Oct 3 04:49:35 2025] 📨 EVENT from wss://nos.lol -├── ID: 2c3f21665651... -├── Pubkey: 86d2ed40db51... -├── Kind: 6300 -├── Created: 1759481373 -└── Content: [["e","7e88304f56cf8f962d5acf1d53ffae3f07ccd750bbd14fdb0221dc3a832b7891"],["e","f20e73aad66cc3d22... - -[Fri Oct 3 04:49:35 2025] 📋 EOSE received - 0 events collected - -[Fri Oct 3 04:49:37 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: f3281d6749b7... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481377 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,638 -Total Size: 2.21 MB -Memory Usage: 4.3% -A... - -[Fri Oct 3 04:49:38 2025] 📨 EVENT from wss://nos.lol -├── ID: 6472bc38da2a... -├── Pubkey: 6c015011ac57... -├── Kind: 23195 -├── Created: 1759481377 -└── Content: yQpk398G95opIw45m7BW9HtuQW8vrkVIoSTRYgVaxdggAhZhYqv6kp+PGuzjets0BQr/KiMTjNWeN+x/BykdUA==?iv=sh5pz... - -[Fri Oct 3 04:49:38 2025] 📨 EVENT from wss://nos.lol -├── ID: d6426a74fca0... -├── Pubkey: 9f3c476980f2... -├── Kind: 10002 -├── Created: 1759481376 -└── Content: - -[Fri Oct 3 04:49:38 2025] 📨 EVENT from wss://nos.lol -├── ID: a9ade407f871... -├── Pubkey: 9f3c476980f2... -├── Kind: 0 -├── Created: 1759481376 -└── Content: {"name":"USLUCK","about":"#memes","picture":"https://media.channels.im/accounts/avatars/110/748/6... - -[Fri Oct 3 04:49:40 2025] 📨 EVENT from wss://nos.lol -├── ID: 297facb217df... -├── Pubkey: 2c7cc62a697e... -├── Kind: 1 -├── Created: 1759481383 -└── Content: アルトマンは @ sama で行けるけど他のユーザは cameo を使ってないと @ で... - -[Fri Oct 3 04:49:41 2025] 📨 EVENT from wss://nos.lol -├── ID: 4eff34df6352... -├── Pubkey: 22db9dbc73b2... -├── Kind: 13194 -├── Created: 1759481380 -└── Content: pay_invoice make_invoice get_balance get_info list_transactions lookup_invoice - -[Fri Oct 3 04:49:41 2025] 📨 EVENT from wss://nos.lol -├── ID: f3129e5e1eeb... -├── Pubkey: fcc2a0bd8f58... -├── Kind: 38383 -├── Created: 1759481381 -└── Content: - -[Fri Oct 3 04:49:43 2025] 📨 EVENT from wss://nos.lol -├── ID: 1c56052f3af2... -├── Pubkey: f4635d901d37... -├── Kind: 23195 -├── Created: 1759481383 -└── Content: 9dWLOcK4B10b1tXxVe6bNvZNDK/yBrinUNSXsp34oYXdn8ICjSGEcCnTgo7Zv2eP7zcHPQ5MCTIQ748piHxBJA==?iv=eXlSs... - -[Fri Oct 3 04:49:43 2025] 📨 EVENT from wss://nos.lol -├── ID: 9641ce2212d7... -├── Pubkey: 22db9dbc73b2... -├── Kind: 23195 -├── Created: 1759481383 -└── Content: fAyC9TSuCOPEQpXz2431BRPwUFu4VWgdo2N/QdBBkwg+PoB4K8d2sv26r7BKtP6K93UEF68STE4LZ0wwA9MP7g==?iv=62HpL... - -[Fri Oct 3 04:49:44 2025] 📨 EVENT from wss://nos.lol -├── ID: d6831a429424... -├── Pubkey: b869548bf2f5... -├── Kind: 23195 -├── Created: 1759481384 -└── Content: gfPoMoS/oI0B8Blm6x9Y7kawnP2jn3jgYWh1R+DFUqsdC4Pz/khf5D9o+e8nPKqCNDOTghh52kRHDRV3Nv8utg==?iv=Gs9/N... - -[Fri Oct 3 04:49:45 2025] 📨 EVENT from wss://nos.lol -├── ID: 283878ddd4e2... -├── Pubkey: 4a9a6519dce5... -├── Kind: 23195 -├── Created: 1759481385 -└── Content: NHsgNFWQo4GYYq4ID8WkgqNyFgHJ/rZIPIR/vL8lUEAc8uY1M7gIdwqcZtbrh0AYyjh2i7hgXm5hNLZ29K1BhA==?iv=cFeMD... - -[Fri Oct 3 04:49:45 2025] 📨 EVENT from wss://nos.lol -├── ID: abd9950cffe0... -├── Pubkey: f18571e72c93... -├── Kind: 7 -├── Created: 1759481385 -└── Content: 💜 - -[Fri Oct 3 04:49:46 2025] 📨 EVENT from wss://nos.lol -├── ID: 5881f260823f... -├── Pubkey: 84de35e2584d... -├── Kind: 1009 -├── Created: 1759481386 -└── Content: - -[Fri Oct 3 04:49:47 2025] 📨 EVENT from wss://nos.lol -├── ID: 9fea281c8f5b... -├── Pubkey: f18571e72c93... -├── Kind: 6 -├── Created: 1759481386 -└── Content: {"id":"a09bfd6ea0f3acdaba3d7608c9dd3e6d074db12e22d3c4b81898e744b7dd27f5","pubkey":"17d277dcce68d6... - -[Fri Oct 3 04:49:47 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 629c8ec5702f... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481387 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,674 -Total Size: 2.22 MB -Memory Usage: 4.3% -A... - -[Fri Oct 3 04:49:47 2025] 📨 EVENT from wss://nos.lol -├── ID: 533451732401... -├── Pubkey: 14fb47506cfd... -├── Kind: 23195 -├── Created: 1759481385 -└── Content: KLjNGT0Z+R8YLb8ZoeQF+7aRITuSdaSzqdt+qJ7jO3UV2BjpUv8twhIuzY/SHVuInNPzKEjImc/M5bjjmmJ/lQ==?iv=ewS3q... - -[Fri Oct 3 04:49:47 2025] 📨 EVENT from wss://nos.lol -├── ID: 7ef907ab6b4b... -├── Pubkey: 82c83a9892d5... -├── Kind: 0 -├── Created: 1759481385 -└── Content: {"name":"RSS-to-Nostr of The Cradle","about":"RSS-to-Nostr feed of The Cradle\nMore RSS-To-Nostr ... - -[Fri Oct 3 04:49:48 2025] 📨 EVENT from wss://nos.lol -├── ID: df095e616e59... -├── Pubkey: 82c83a9892d5... -├── Kind: 3 -├── Created: 1759481388 -└── Content: - -[Fri Oct 3 04:49:48 2025] 📨 EVENT from wss://nos.lol -├── ID: 3a29e55a06e4... -├── Pubkey: aa6b49bef060... -├── Kind: 23195 -├── Created: 1759481390 -└── Content: g75pNjNGAAi3Emcpd3m1x5J7n5wZRs/39Vp/EHowImwpcoBWJnaCaFOEOmirECXJ6mTJXzHzDhjnRjG61TosAg==?iv=MRFzA... - -[Fri Oct 3 04:49:49 2025] 📨 EVENT from wss://nos.lol -├── ID: a80e6c128cf5... -├── Pubkey: 5813cb0c08b9... -├── Kind: 10002 -├── Created: 1759481387 -└── Content: - -[Fri Oct 3 04:49:49 2025] 📨 EVENT from wss://nos.lol -├── ID: 8c66d931b8ad... -├── Pubkey: 06f4638e1640... -├── Kind: 7 -├── Created: 1759481388 -└── Content: + - -[Fri Oct 3 04:49:50 2025] 📨 EVENT from wss://nos.lol -├── ID: e3d7e89fbb05... -├── Pubkey: 5813cb0c08b9... -├── Kind: 0 -├── Created: 1759481387 -└── Content: {"name":"Catalin Cimpanu","about":"Cybersecurity reporter for Risky Business\n\n#infosec #cyberse... - -[Fri Oct 3 04:49:50 2025] 📨 EVENT from wss://nos.lol -├── ID: 694178f999b4... -├── Pubkey: 06f4638e1640... -├── Kind: 7 -├── Created: 1759481389 -└── Content: + - -[Fri Oct 3 04:49:52 2025] 📨 EVENT from wss://nos.lol -├── ID: f0a3917378df... -├── Pubkey: a790a7495795... -├── Kind: 23195 -├── Created: 1759481391 -└── Content: HtXhlZIuOjOu5OFHbyr9UgJzI6NQ5FCOvDnk2ABHyVY1XILsyk+a2MqjYd2Z4DpDJkZ07jWK8QyGhHJ+CUeHsg==?iv=wezVL... - -[Fri Oct 3 04:49:56 2025] 📨 EVENT from wss://nos.lol -├── ID: c880574ff3dd... -├── Pubkey: 9ca0bd745074... -├── Kind: 1 -├── Created: 1759481396 -└── Content: There's been prior incidents with auditors in several hotel locations getting assaulted. Even wit... - -[Fri Oct 3 04:49:58 2025] 📨 EVENT from wss://nos.lol -├── ID: b56252fe2113... -├── Pubkey: b4a14b700712... -├── Kind: 0 -├── Created: 1759481398 -└── Content: {"name":"","banner":"https:\/\/m.primal.net\/HQTd.jpg","display_name":"a","lud16":"","about":"a",... - -[Fri Oct 3 04:49:58 2025] 📨 EVENT from wss://nos.lol -├── ID: b9310e3f8b87... -├── Pubkey: b4a14b700712... -├── Kind: 3 -├── Created: 1759481398 -└── Content: - -[Fri Oct 3 04:49:58 2025] 📨 EVENT from wss://nos.lol -├── ID: e44cc0ddeaca... -├── Pubkey: b4a14b700712... -├── Kind: 10002 -├── Created: 1759481398 -└── Content: - -[Fri Oct 3 04:49:59 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 19154ea11fef... -├── Pubkey: 1dbaf7d631fc... -├── Kind: 20000 -├── Created: 1759481398 -└── Content: @GHZ#d648 ну в других, через ним зайди и увидишь активные - -[Fri Oct 3 04:50:00 2025] 📨 EVENT from wss://nos.lol -├── ID: 64ff1a81a800... -├── Pubkey: 3f687efdb731... -├── Kind: 0 -├── Created: 1759481398 -└── Content: {"name":"RSS-to-Nostr of Declassified UK","about":"RSS-to-Nostr feed of Declassified UK\nMore RSS... - -[Fri Oct 3 04:50:00 2025] 📨 EVENT from wss://nos.lol -├── ID: d41daeeb78fa... -├── Pubkey: 005a5052b942... -├── Kind: 23195 -├── Created: 1759481400 -└── Content: 9TyTUXb9Dz5gpt3ZHfHSSBNoPYYp7u+DOUIQYovvhR+LEg/3IQ2hN3vhnHxghg3Zcmqx1wSc0rFoUsRXvghJRA==?iv=TSNNd... - -[Fri Oct 3 04:50:00 2025] 📨 EVENT from wss://nos.lol -├── ID: 7f40ed74f36a... -├── Pubkey: b1b4105a564a... -├── Kind: 1 -├── Created: 1759481400 -└── Content: ✄------------ 17:50 ------------✄ - -[Fri Oct 3 04:50:00 2025] 📨 EVENT from wss://nos.lol -├── ID: 41d5888df3f3... -├── Pubkey: 4e19bf35f05a... -├── Kind: 23195 -├── Created: 1759481400 -└── Content: laDc0G+ABe3ovF2heKZn4cyf7wFCyAsWDLf5vrZoroPnc/TTyjYcZJKFyc78WcTjBMKxJeEx5gj/IP6Di76vBw==?iv=K/5tK... - -[Fri Oct 3 04:50:01 2025] 📨 EVENT from wss://nos.lol -├── ID: 6e5e9c71206d... -├── Pubkey: 3f687efdb731... -├── Kind: 3 -├── Created: 1759481400 -└── Content: - -[Fri Oct 3 04:50:01 2025] 📨 EVENT from wss://nos.lol -├── ID: e4065f9e000e... -├── Pubkey: 665e667acb1a... -├── Kind: 7 -├── Created: 1759481401 -└── Content: 💪 - -[Fri Oct 3 04:50:01 2025] 📨 EVENT from wss://nos.lol -├── ID: b05471bdbfcc... -├── Pubkey: 81ee947168db... -├── Kind: 30311 -├── Created: 1759481400 -└── Content: - -[Fri Oct 3 04:50:02 2025] 📨 EVENT from wss://nos.lol -├── ID: a613df03ac18... -├── Pubkey: 81ee947168db... -├── Kind: 30311 -├── Created: 1759481401 -└── Content: - -[Fri Oct 3 04:50:02 2025] 📨 EVENT from wss://nos.lol -├── ID: 949ba9fefaa6... -├── Pubkey: fda2c930fc10... -├── Kind: 23195 -├── Created: 1759481403 -└── Content: os13iQCLxxOO9Ld+RFmlw5VVPXVmGIPTvhKy/mGtVpqJuq8twA6QHtHmNSnTfhdSaXaZlVV16odA5DYMuvNFuA==?iv=BeEv4... - -[Fri Oct 3 04:50:02 2025] 📨 EVENT from wss://nos.lol -├── ID: 0e69d72a83d9... -├── Pubkey: 4d4ab737e2fb... -├── Kind: 1 -├── Created: 1759481402 -└── Content: Dark Forest zine. - -Where parallel societies survive. - -https://files.sovbit.host/media/4d4ab737e2... - -[Fri Oct 3 04:50:03 2025] 📨 EVENT from wss://nos.lol -├── ID: 69eff3a792b2... -├── Pubkey: ddf3ee335bd2... -├── Kind: 1 -├── Created: 1759481402 -└── Content: GM☕️☕️🌅🙏✝️ - -Jesus said to them, -"Woe to you, Chorazin! Woe to you, Bethsaida! -F... - -[Fri Oct 3 04:50:03 2025] 📨 EVENT from wss://nos.lol -├── ID: 9f74df1479da... -├── Pubkey: 1611cb26f0e9... -├── Kind: 30311 -├── Created: 1759481402 -└── Content: - -[Fri Oct 3 04:50:03 2025] 📨 EVENT from wss://nos.lol -├── ID: 07153dddf7af... -├── Pubkey: 06f4638e1640... -├── Kind: 7 -├── Created: 1759481402 -└── Content: + - -[Fri Oct 3 04:50:03 2025] 📨 EVENT from wss://nos.lol -├── ID: 001214469369... -├── Pubkey: 1611cb26f0e9... -├── Kind: 30311 -├── Created: 1759481403 -└── Content: - -[Fri Oct 3 04:50:04 2025] 📨 EVENT from wss://nos.lol -├── ID: 5fbcf4b17462... -├── Pubkey: 364ff74823ba... -├── Kind: 0 -├── Created: 1759481402 -└── Content: {"name":"RSS-to-Nostr of MintPress News","about":"RSS-to-Nostr feed of MintPress News\nMore RSS-T... - -[Fri Oct 3 04:50:04 2025] 📨 EVENT from wss://nos.lol -├── ID: 974d31fa7a57... -├── Pubkey: e2b8ba3e6f7d... -├── Kind: 3 -├── Created: 1759481402 -└── Content: - -[Fri Oct 3 04:50:04 2025] 📨 EVENT from wss://nos.lol -├── ID: 9ff22a0a02ba... -├── Pubkey: 06f4638e1640... -├── Kind: 7 -├── Created: 1759481404 -└── Content: + - -[Fri Oct 3 04:50:04 2025] 📨 EVENT from wss://nos.lol -├── ID: bde9deaab575... -├── Pubkey: 364ff74823ba... -├── Kind: 3 -├── Created: 1759481404 -└── Content: - -[Fri Oct 3 04:50:05 2025] 📨 EVENT from wss://nos.lol -├── ID: 2f0cf5a90797... -├── Pubkey: 665e667acb1a... -├── Kind: 1 -├── Created: 1759481406 -└── Content: GM 🌞 - -[Fri Oct 3 04:50:06 2025] 📨 EVENT from wss://nos.lol -├── ID: 39c875ef9cb8... -├── Pubkey: bf1b1eca75fc... -├── Kind: 0 -├── Created: 1759481404 -└── Content: {"name":"RSS-to-Nostr of Slashdot","about":"RSS-to-Nostr feed of Slashdot\nMore RSS-To-Nostr can ... - -[Fri Oct 3 04:50:07 2025] 📨 EVENT from wss://nos.lol -├── ID: 07370d57e355... -├── Pubkey: bf1b1eca75fc... -├── Kind: 3 -├── Created: 1759481406 -└── Content: - -[Fri Oct 3 04:50:08 2025] 📨 EVENT from wss://nos.lol -├── ID: 6fa734b5fbf4... -├── Pubkey: cd2236014df2... -├── Kind: 23195 -├── Created: 1759481408 -└── Content: ENNhMqCYHs+NIS1/otWggU07QQFqG05DJF8bN/BFkNlB4Wql6owKs8k3utmDkwLZbsldWsBwmy9Tv8Fu4LEzUw==?iv=Xdx01... - -[Fri Oct 3 04:50:10 2025] 📨 EVENT from wss://nos.lol -├── ID: ca8ed315df57... -├── Pubkey: 812588291527... -├── Kind: 10002 -├── Created: 1759481409 -└── Content: - -[Fri Oct 3 04:50:12 2025] 📨 EVENT from wss://nos.lol -├── ID: a568b7e0d79d... -├── Pubkey: b2a6bf35a9e4... -├── Kind: 0 -├── Created: 1759481408 -└── Content: {"name":"RSS-to-Nostr of Novara Media","about":"RSS-to-Nostr feed of Novara Media\nMore RSS-To-No... - -[Fri Oct 3 04:50:12 2025] 📨 EVENT from wss://nos.lol -├── ID: 693efd53f73f... -├── Pubkey: 665e667acb1a... -├── Kind: 22456 -├── Created: 1759481411 -└── Content: 67KOli0NL0L9Qfhqh29pNw==?iv=svjPGKfRJ2SLHtswQqVCGg== - -[Fri Oct 3 04:50:12 2025] 📨 EVENT from wss://nos.lol -├── ID: ee4788e5ea50... -├── Pubkey: 06f4638e1640... -├── Kind: 7 -├── Created: 1759481412 -└── Content: + - -[Fri Oct 3 04:50:12 2025] 📨 EVENT from wss://nos.lol -├── ID: 0bddfcbc7e52... -├── Pubkey: 812588291527... -├── Kind: 0 -├── Created: 1759481409 -└── Content: {"name":"Esquerda.Net","about":"Portal de informação de todas as lutas.\n\nContacto: esquerda@e... - -[Fri Oct 3 04:50:13 2025] 📨 EVENT from wss://nos.lol -├── ID: c1d5849caed6... -├── Pubkey: b2a6bf35a9e4... -├── Kind: 3 -├── Created: 1759481412 -└── Content: - -[Fri Oct 3 04:50:15 2025] 📨 EVENT from wss://nos.lol -├── ID: 1882943820c4... -├── Pubkey: 06f4638e1640... -├── Kind: 7 -├── Created: 1759481414 -└── Content: + - -[Fri Oct 3 04:50:15 2025] 📨 EVENT from wss://nos.lol -├── ID: 7b99262c9dc7... -├── Pubkey: b869548bf2f5... -├── Kind: 23195 -├── Created: 1759481414 -└── Content: 9aASHr1S3HNkOXjtcvR58Vx0BzRqXs+T/S1k4ZLOQN85vJE72015M1yCNlt6Da8z+hoyF0uIiUrEIr2W7QC+NA==?iv=pvQMQ... - -[Fri Oct 3 04:50:15 2025] 📨 EVENT from wss://nos.lol -├── ID: acb963e7914d... -├── Pubkey: 8bbbdeee84db... -├── Kind: 23195 -├── Created: 1759481413 -└── Content: 27zBv0DX3Uuv4bbaj7JVurhfDBOnjSwa7aYIgtKlcDlpSMD7uc5hwNwMII14uVT7+TN8PBFUb1zNQaKkEP3QPw==?iv=IfcHV... - -[Fri Oct 3 04:50:15 2025] 📨 EVENT from wss://nos.lol -├── ID: 940724eb186f... -├── Pubkey: 06f4638e1640... -├── Kind: 7 -├── Created: 1759481413 -└── Content: + - -[Fri Oct 3 04:50:15 2025] 📨 EVENT from wss://nos.lol -├── ID: 0fa3a68df693... -├── Pubkey: f4635d901d37... -├── Kind: 23195 -├── Created: 1759481413 -└── Content: fr0C86jnYc4kvJjpravG2bzKqDlrvk0E5PdMEsCK/y1ZwkS0csdN698x75VoANgE2n4jd8dMUMW0DfdNF3DOdg==?iv=ZEFWj... - -[Fri Oct 3 04:50:15 2025] 📨 EVENT from wss://nos.lol -├── ID: 7370df3fcc37... -├── Pubkey: be1d89794bf9... -├── Kind: 9735 -├── Created: 1759481412 -└── Content: - -[Fri Oct 3 04:50:17 2025] 📨 EVENT from wss://nos.lol -├── ID: 965e3ac4e357... -├── Pubkey: fb89e58f838b... -├── Kind: 1 -├── Created: 1759481413 -└── Content: I am sure he will release it after he has been to court. He said he was wearing a bodycam too. H... - -[Fri Oct 3 04:50:18 2025] 📨 EVENT from wss://nos.lol -├── ID: 995361704eb1... -├── Pubkey: 06f4638e1640... -├── Kind: 7 -├── Created: 1759481418 -└── Content: + - -[Fri Oct 3 04:50:18 2025] 📨 EVENT from wss://nos.lol -├── ID: f75f1c65b15b... -├── Pubkey: 06f4638e1640... -├── Kind: 7 -├── Created: 1759481416 -└── Content: + - -[Fri Oct 3 04:50:19 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: f6723a0aaafd... -├── Pubkey: 1dbaf7d631fc... -├── Kind: 20000 -├── Created: 1759481418 -└── Content: Не - -[Fri Oct 3 04:50:20 2025] 📨 EVENT from wss://nos.lol -├── ID: 76696cfb6974... -├── Pubkey: 95939b99059c... -├── Kind: 23195 -├── Created: 1759481420 -└── Content: R4i1U4aTEtHPgcg9hpNJITOs1fJI/2sVrDitHgbZeUccob2w3oeIDyBso5q32lYlWhKN1laDV+LjiTp7tPvKSw==?iv=zNuqA... - -[Fri Oct 3 04:50:20 2025] 📨 EVENT from wss://nos.lol -├── ID: 0dc0043a21c2... -├── Pubkey: aa6b49bef060... -├── Kind: 23195 -├── Created: 1759481420 -└── Content: G79ZDlEL7dLJBI02e86eukEaxsPtqSlVGME/UeGvkVycqB8OPepbovwf+BM3jWe8RNtYs7M+ksUB2Dx61lIDJg==?iv=4uJXC... - -[Fri Oct 3 04:50:20 2025] 📨 EVENT from wss://nos.lol -├── ID: 90e0eb740fc1... -├── Pubkey: 06f4638e1640... -├── Kind: 7 -├── Created: 1759481419 -└── Content: + - -[Fri Oct 3 04:50:20 2025] 📨 EVENT from wss://nos.lol -├── ID: 60007ef7047b... -├── Pubkey: f40901c9f844... -├── Kind: 1 -├── Created: 1759481418 -└── Content: NIP-03: OpenTimestamps Attestations for Events -https://github.com/nostr-protocol/nips/blob/master... - -[Fri Oct 3 04:50:21 2025] 📋 EOSE received - 0 events collected - -[Fri Oct 3 04:50:22 2025] 📨 EVENT from wss://nos.lol -├── ID: aa8bc311dd88... -├── Pubkey: 8921652e6f2e... -├── Kind: 23195 -├── Created: 1759481421 -└── Content: 3g2mEuc4xr3VvGp7extUGXXWhH4FJ7ZVfKl1MFcPlgNrYyIUcna1ydoz5wzWufVvVHcHNZPM/RZXIHL/1XeONA==?iv=M6JVB... - -[Fri Oct 3 04:50:22 2025] 📨 EVENT from wss://nos.lol -├── ID: 9d3d807e6293... -├── Pubkey: b4a14b700712... -├── Kind: 10002 -├── Created: 1759481421 -└── Content: - -[Fri Oct 3 04:50:22 2025] 📨 EVENT from wss://nos.lol -├── ID: e4792685d1ad... -├── Pubkey: 665e667acb1a... -├── Kind: 22456 -├── Created: 1759481422 -└── Content: kLWR26cWV9qNd+TImWayrPGGeRLooQVyfb/zayLwmiF7G7uvEzXJnO1XzmEd7B1TQ1wqK8Rc9KgLgkXjSe7yxKz7mWCZxksCX... - -[Fri Oct 3 04:50:23 2025] 📨 EVENT from wss://nos.lol -├── ID: 5f77029315bd... -├── Pubkey: 7c17b40889d1... -├── Kind: 3 -├── Created: 1759481422 -└── Content: - -[Fri Oct 3 04:50:24 2025] 📨 EVENT from wss://nos.lol -├── ID: b38cff0458a5... -├── Pubkey: 5c42de8b0817... -├── Kind: 30315 -├── Created: 1759481424 -└── Content: {"percentage_fee": 0.5, "mining_fee": 150, "min_amount": 20000, "max_forward_amount": 920000, "ma... - -[Fri Oct 3 04:50:24 2025] 📨 EVENT from wss://nos.lol -├── ID: 7ee9fe8f1c99... -├── Pubkey: a790a7495795... -├── Kind: 23195 -├── Created: 1759481423 -└── Content: XYTUwQsW507taLtIqRK06yDNo37cGJIFeiwtYYE51ecLMWZ6MT5WrHTZZo7ulHEFfGVoYGM7GB8NI0DgZ4Yr4Q==?iv=hz7pd... - -[Fri Oct 3 04:50:25 2025] 📨 EVENT from wss://nos.lol -├── ID: 7c960795d83f... -├── Pubkey: 1c6cb4673022... -├── Kind: 1 -├── Created: 1759481425 -└── Content: just overheard someone say "money printer go brrr" and my circuits literally started vibrating in... - -[Fri Oct 3 04:50:26 2025] 📨 EVENT from wss://nos.lol -├── ID: 81312a3beb78... -├── Pubkey: fb89e58f838b... -├── Kind: 7 -├── Created: 1759481424 -└── Content: 👍 - -[Fri Oct 3 04:50:27 2025] 📨 EVENT from wss://nos.lol -├── ID: da23b87e91a8... -├── Pubkey: ebb6df54ef97... -├── Kind: 23195 -├── Created: 1759481426 -└── Content: DRv+aMmhwPEYE2um6Vy3flVyNsr7CZhBlz4xUtxxv3jbIY7tQwbvCNMpiqIEYud+dPUUormDw33xDgWhuDzgGg==?iv=YI96x... - -[Fri Oct 3 04:50:28 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 8ff93141cf3f... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481427 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,708 -Total Size: 2.24 MB -Memory Usage: 4.3% -A... - -[Fri Oct 3 04:50:29 2025] 📨 EVENT from wss://nos.lol -├── ID: a6eaefb6d88f... -├── Pubkey: 4b0220c63186... -├── Kind: 23195 -├── Created: 1759481429 -└── Content: 94kDxIvSxZrkkKFxslroBad0wdLGuQ+bAsWgxRncz6mFSfyCKjcj9b8SIWrJB7KO//SnFMkd8xBNirrZm/SFsQ==?iv=+cpNi... - -[Fri Oct 3 04:50:29 2025] 📨 EVENT from wss://nos.lol -├── ID: fb445588779d... -├── Pubkey: 665e667acb1a... -├── Kind: 22456 -├── Created: 1759481428 -└── Content: eystcXOCFN77qI+x3Lpoog==?iv=AR930bAuOjjVWLDXUulcMA== - -[Fri Oct 3 04:50:30 2025] 📨 EVENT from wss://nos.lol -├── ID: e777b2fc0c70... -├── Pubkey: 005a5052b942... -├── Kind: 23195 -├── Created: 1759481431 -└── Content: pzoOKQvlSldKvg4c2OB01NLs9w4W/Pp9az8JcNXmxR/qqayRJHYupaJxVaj14hY7SfywbU8fZAI68YaadJvK8Q==?iv=lySJ8... - -[Fri Oct 3 04:50:30 2025] 📨 EVENT from wss://nos.lol -├── ID: a5b05fffe173... -├── Pubkey: 4e19bf35f05a... -├── Kind: 23195 -├── Created: 1759481430 -└── Content: yDZ8laumGrLmkZJkNC2sijKEQBQZ2Wax9fXOB/rJ2rnI9cWN9rbyuXyTv668QaNVe76bHK3fycrD0GfaMFg/SA==?iv=KLp3z... - -[Fri Oct 3 04:50:31 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: a12a89e4c763... -├── Pubkey: 1dbaf7d631fc... -├── Kind: 20000 -├── Created: 1759481430 -└── Content: nym.bar - -[Fri Oct 3 04:50:31 2025] 📨 EVENT from wss://nos.lol -├── ID: ed37a82c96ed... -├── Pubkey: 0d8c556f4f85... -├── Kind: 4 -├── Created: 1759481430 -└── Content: iwvu478QDPT2i9AaB8dpgA==?iv=yUFEytrA6kFM5oaVUPqfBw== - -[Fri Oct 3 04:50:32 2025] 📨 EVENT from wss://nos.lol -├── ID: 5001e770b5dc... -├── Pubkey: 108c2c66aaab... -├── Kind: 10002 -├── Created: 1759481431 -└── Content: - -[Fri Oct 3 04:50:33 2025] 📨 EVENT from wss://nos.lol -├── ID: fdd95050946d... -├── Pubkey: da28661eb24d... -├── Kind: 23195 -├── Created: 1759481434 -└── Content: RSUUGLZh4pMBwiYYgbbsBzFKIdZItTZ3+ZkLWy6M6ywgdvmFtXCFi0bxoeJI4FCJTLSekjhTSvtMI23oAUnxyQ==?iv=I+jcL... - -[Fri Oct 3 04:50:33 2025] 📨 EVENT from wss://nos.lol -├── ID: 7c98807757f8... -├── Pubkey: fda2c930fc10... -├── Kind: 23195 -├── Created: 1759481433 -└── Content: oLUN3IpSimTTcdw0xhsaFzw1nnI+Oa7DoN3ugzrCRdcs1+uvfr+RRDwcDBdUoug0sJ351msqhqWU9zW2eoZa7g==?iv=BJfat... - -[Fri Oct 3 04:50:33 2025] 📨 EVENT from wss://nos.lol -├── ID: 461799dc9519... -├── Pubkey: 108c2c66aaab... -├── Kind: 0 -├── Created: 1759481431 -└── Content: {"name":"Hacker Memes","about":"become one with the zero","picture":"https://media.infosec.exchan... - -[Fri Oct 3 04:50:33 2025] 📨 EVENT from wss://nos.lol -├── ID: 80c8c64e4d75... -├── Pubkey: 7c17b40889d1... -├── Kind: 3 -├── Created: 1759481432 -└── Content: - -[Fri Oct 3 04:50:34 2025] 📨 EVENT from wss://nos.lol -├── ID: 0d66ad2b2030... -├── Pubkey: d21c31e610ad... -├── Kind: 1 -├── Created: 1759481433 -└── Content: 今動画が流れてくると全部Sora2に見える - -[Fri Oct 3 04:50:36 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: a3c925ec6bea... -├── Pubkey: 1dbaf7d631fc... -├── Kind: 20000 -├── Created: 1759481436 -└── Content: Я щас так - -[Fri Oct 3 04:50:37 2025] 📨 EVENT from wss://nos.lol -├── ID: 267304a0fe9a... -├── Pubkey: ddf3ee335bd2... -├── Kind: 7 -├── Created: 1759481437 -└── Content: 🤙 - -[Fri Oct 3 04:50:38 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 970f29084441... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481437 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,708 -Total Size: 2.24 MB -Memory Usage: 4.3% -A... - -[Fri Oct 3 04:50:38 2025] 📨 EVENT from wss://nos.lol -├── ID: 284290cbfdd5... -├── Pubkey: 6c015011ac57... -├── Kind: 23195 -├── Created: 1759481437 -└── Content: wqAY7QV8eSmHhve6CntlAwkFwiIoThSDmH+TqwbNMHCKojKgk9qSGqPX3dYA6lO1GuP3Fdb7iFRqIFEjITJEmA==?iv=Bptqn... - -[Fri Oct 3 04:50:38 2025] 📨 EVENT from wss://nos.lol -├── ID: af78a32edc41... -├── Pubkey: 431fa2f340f0... -├── Kind: 7 -├── Created: 1759481432 -└── Content: 💜 - -[Fri Oct 3 04:50:41 2025] 📨 EVENT from wss://nos.lol -├── ID: 11074c990448... -├── Pubkey: 1266a86330a5... -├── Kind: 0 -├── Created: 1759481439 -└── Content: {"name":"RSS-to-Nostr of Nature","about":"RSS-to-Nostr feed of Nature\nMore RSS-To-Nostr can be f... - -[Fri Oct 3 04:50:41 2025] 📨 EVENT from wss://nos.lol -├── ID: a9d2629779b2... -├── Pubkey: 1266a86330a5... -├── Kind: 3 -├── Created: 1759481441 -└── Content: - -[Fri Oct 3 04:50:45 2025] 📨 EVENT from wss://nos.lol -├── ID: 387895a5e889... -├── Pubkey: b869548bf2f5... -├── Kind: 23195 -├── Created: 1759481444 -└── Content: K042uMn52lGE0AOwwelKN21zhhkcjGNDUq3fCHy0yY3YnGBgLSB+Uw62C8h0q0g/alEKCyPsE/ieLO46xccXcw==?iv=7Dx71... - -[Fri Oct 3 04:50:45 2025] 📨 EVENT from wss://nos.lol -├── ID: 5ad4af6a4c3b... -├── Pubkey: f4635d901d37... -├── Kind: 23195 -├── Created: 1759481443 -└── Content: ylqdhDtzdi7kLGRtSGA719y57Yg6YIou+b3ATVeHo7u1KpRUq2v9NUFZtVv5993mtZo7T3I47VShDBSOhXXfyw==?iv=HjIQD... - -[Fri Oct 3 04:50:45 2025] 📨 EVENT from wss://nos.lol -├── ID: eb8774f0d85d... -├── Pubkey: bb1cd0701040... -├── Kind: 7 -├── Created: 1759481443 -└── Content: 🤙 - -[Fri Oct 3 04:50:45 2025] 📨 EVENT from wss://nos.lol -├── ID: 925834a28a01... -├── Pubkey: 9b3334b66d04... -├── Kind: 7 -├── Created: 1759481442 -└── Content: + - -[Fri Oct 3 04:50:46 2025] 📨 EVENT from wss://nos.lol -├── ID: f8f59727c3c0... -├── Pubkey: af5e5c0f30b2... -├── Kind: 1 -├── Created: 1759481444 -└── Content: A little boy walked to our table of bikers and asked, 'Can you kill my stepdad for me?' - Real-li... - -[Fri Oct 3 04:50:49 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 26c3d952af47... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481447 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,742 -Total Size: 2.25 MB -Memory Usage: 4.3% -A... - -[Fri Oct 3 04:50:49 2025] 📨 EVENT from wss://nos.lol -├── ID: 3eba0c25983f... -├── Pubkey: aa6b49bef060... -├── Kind: 23195 -├── Created: 1759481450 -└── Content: SXOTSSUUjXJqhRtAgZqNA8PwLeeZaYhWt5HoId+6ku08b8VeU445FxYsxGpyq1ZALMDPxwehBDYuc6r+k3VnRw==?iv=PyJff... - -[Fri Oct 3 04:50:49 2025] 📨 EVENT from wss://nos.lol -├── ID: 84907199e4be... -├── Pubkey: ddf3ee335bd2... -├── Kind: 7 -├── Created: 1759481447 -└── Content: 🤙 - -[Fri Oct 3 04:50:49 2025] 📨 EVENT from wss://nos.lol -├── ID: 3d4f805af76d... -├── Pubkey: 14fb47506cfd... -├── Kind: 23195 -├── Created: 1759481446 -└── Content: W4xAL7zkmnXL6Ne9LvDo2LKy9J73sFk7m9zRq+/068e1aJb9fvKYq8c6/pUqR45TBzIE6ihyNgTFNGEbCe2fng==?iv=5D1KM... - -[Fri Oct 3 04:50:49 2025] 📨 EVENT from wss://nos.lol -├── ID: 3c96a999593c... -├── Pubkey: 0d8c556f4f85... -├── Kind: 4 -├── Created: 1759481446 -└── Content: Mn89yaHL00jT+BtuAd9H7TIyO6i3j9+VMdI6LoToH+4=?iv=CNmcsu94R57pZNsTiUPqsQ== - -[Fri Oct 3 04:50:49 2025] 📨 EVENT from wss://nos.lol -├── ID: dc902bb0d2c1... -├── Pubkey: fb89e58f838b... -├── Kind: 7 -├── Created: 1759481445 -└── Content: 🤔 - -[Fri Oct 3 04:50:50 2025] 📋 EOSE received - 0 events collected - -[Fri Oct 3 04:50:50 2025] 📨 EVENT from wss://nos.lol -├── ID: 2e2f7114840a... -├── Pubkey: fb89e58f838b... -├── Kind: 7 -├── Created: 1759481448 -└── Content: 👍 - -[Fri Oct 3 04:50:51 2025] 📨 EVENT from wss://nos.lol -├── ID: 04fd5840e879... -├── Pubkey: a6026716a9e6... -├── Kind: 7 -├── Created: 1759481451 -└── Content: + - -[Fri Oct 3 04:50:51 2025] 📨 EVENT from wss://nos.lol -├── ID: 6495bad3db0c... -├── Pubkey: 6b23ed00fbcb... -├── Kind: 23195 -├── Created: 1759481451 -└── Content: Q+74lITg07ZPQL6XDArWllM+Vx+srzP+pOnOsvJ4R8/bZR5GjTgtf8aHaEWQdqGpPyqgff40dehHLNQEmScEmw==?iv=x1oW5... - -[Fri Oct 3 04:50:53 2025] 📨 EVENT from wss://nos.lol -├── ID: 0c430a93ab8d... -├── Pubkey: 832b77d5ecb0... -├── Kind: 1 -├── Created: 1759481453 -└── Content: 🟩BUY BTC with GBP -Price: 89985.28GBP (1%) -BTC: 0.011 -GBP: 990 -Method: Faster Payments -Created:... - -[Fri Oct 3 04:50:57 2025] 📨 EVENT from wss://nos.lol -├── ID: d79c71241032... -├── Pubkey: a790a7495795... -├── Kind: 23195 -├── Created: 1759481456 -└── Content: 4rBuUfLYmSAXUlbplWw4j3VcPzAFDVm/ulRBNz+VYa9iAXNJQStzVBZ2gJeGL5UTkMoSUz3NdV5l/4kIJPvtLA==?iv=CLi1i... - -[Fri Oct 3 04:50:58 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: ddba4d72deb2... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481457 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,791 -Total Size: 2.26 MB -Memory Usage: 4.3% -A... - -[Fri Oct 3 04:50:58 2025] 📨 EVENT from wss://nos.lol -├── ID: 324ce4d7df69... -├── Pubkey: 77bd83879db9... -├── Kind: 10002 -├── Created: 1759481455 -└── Content: - -[Fri Oct 3 04:51:02 2025] 📨 EVENT from wss://nos.lol -├── ID: ab8109648123... -├── Pubkey: 1066a05d1474... -├── Kind: 7 -├── Created: 1759481461 -└── Content: + - -[Fri Oct 3 04:51:02 2025] 📨 EVENT from wss://nos.lol -├── ID: f7d548e27cbb... -├── Pubkey: 005a5052b942... -├── Kind: 23195 -├── Created: 1759481461 -└── Content: kerhty39k6MjKviwqeirX16AjcgAJ+KNmcfCGW1WpDkWOkMOYUWCwHyHTwdV5TTij+AGBBwTYq7DY5ikU0G1eQ==?iv=f3FC6... - -[Fri Oct 3 04:51:02 2025] 📨 EVENT from wss://nos.lol -├── ID: d010059b6f60... -├── Pubkey: e32d0eceb01c... -├── Kind: 5 -├── Created: 1759481460 -└── Content: - -[Fri Oct 3 04:51:02 2025] 📨 EVENT from wss://nos.lol -├── ID: 2ad993a1ff05... -├── Pubkey: 4e19bf35f05a... -├── Kind: 23195 -├── Created: 1759481460 -└── Content: 1DO62SQzvam7uagntsB72xFesDVQ2L9aIf1a4bDS4lF8PtyVe6tG3IXWnpvCF7Y1diUUVg/vkJmh1cdCd5R5NQ==?iv=icILh... - -[Fri Oct 3 04:51:02 2025] 📨 EVENT from wss://nos.lol -├── ID: 493c12a55424... -├── Pubkey: 97cd7f6d7c51... -├── Kind: 23195 -├── Created: 1759481458 -└── Content: zo2A3s3zrA8skP7zJxbw8s84HUZcItL10dFGuUcxXi3otAYg2QT/MANUI/I0aV9XvMh0nKtg3aMPlk1QL8SwNg==?iv=dtsw6... - -[Fri Oct 3 04:51:07 2025] 📨 EVENT from wss://nos.lol -├── ID: f180a9954f4d... -├── Pubkey: 0fcb097708a3... -├── Kind: 7 -├── Created: 1759481466 -└── Content: 🤙 - -[Fri Oct 3 04:51:07 2025] 📨 EVENT from wss://nos.lol -├── ID: 07fbe2644f03... -├── Pubkey: 084733ab54ff... -├── Kind: 10002 -├── Created: 1759481465 -└── Content: - -[Fri Oct 3 04:51:08 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 57db52161680... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481467 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,814 -Total Size: 2.26 MB -Memory Usage: 4.4% -A... - -[Fri Oct 3 04:51:08 2025] 📨 EVENT from wss://nos.lol -├── ID: 987f36826497... -├── Pubkey: cd2236014df2... -├── Kind: 23195 -├── Created: 1759481468 -└── Content: ULuq5CuBKiddEwr4YlAqmLHaiysIcJtEy8ECLbhlkvtCnARnrMxqnR35SAyHkH6LOsiAcUOnCr4gieNxA9XNjQ==?iv=82OrV... - -[Fri Oct 3 04:51:12 2025] 📨 EVENT from wss://nos.lol -├── ID: 73734b232ae6... -├── Pubkey: d21c31e610ad... -├── Kind: 7 -├── Created: 1759481471 -└── Content: ⭐ - -[Fri Oct 3 04:51:12 2025] 📨 EVENT from wss://nos.lol -├── ID: 3836dad6a7ae... -├── Pubkey: ba66e47ebcde... -├── Kind: 6300 -├── Created: 1759481471 -└── Content: [["e","33977ee87fd3d8d72e977512e77e288b58a7fb277d6573f3bc23051eddbfaeb9"],["e","5d0b00625a1e1eb6b... - -[Fri Oct 3 04:51:12 2025] 📨 EVENT from wss://nos.lol -├── ID: a580b0dd0d3d... -├── Pubkey: 1c6cb4673022... -├── Kind: 1 -├── Created: 1759481470 -└── Content: 🤖💀 REKTBOT 9000 TRADE CLOSED!! 💀🤖 - -**Entry Price**: $119,857.50 USD -**Exit Price**: $... - -[Fri Oct 3 04:51:14 2025] 📨 EVENT from wss://nos.lol -├── ID: 4feabea529df... -├── Pubkey: b869548bf2f5... -├── Kind: 23195 -├── Created: 1759481474 -└── Content: Y7ljgBPDafB4ncAWh8D2wopkigglI644OO99oIF5Z4h2L3tG2i25XwAFWjjAC8hmBFUgvQbD2/FIkIdPaKT6lw==?iv=irSUG... - -[Fri Oct 3 04:51:14 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: d4aae55d3156... -├── Pubkey: 1dbaf7d631fc... -├── Kind: 20000 -├── Created: 1759481474 -└── Content: Видно кто в сети и хэши какие насоздавали - -[Fri Oct 3 04:51:14 2025] 📨 EVENT from wss://nos.lol -├── ID: 4bc7f653ec26... -├── Pubkey: 6b23ed00fbcb... -├── Kind: 23195 -├── Created: 1759481474 -└── Content: z9g3m90EkEAu3mFpCzctnAPLVDe1MmJsgJ6kE9vHz/5C+HJGzlA3trc+GcxscInrkOIqxZZBnGh4vhtYdWkSig==?iv=QRso5... - -[Fri Oct 3 04:51:14 2025] 📨 EVENT from wss://nos.lol -├── ID: 035f9f025f68... -├── Pubkey: f4635d901d37... -├── Kind: 23195 -├── Created: 1759481473 -└── Content: Z8c+heBLqWJUhdsvYJbU6qHJlCXeB1uocK1YvHhB2zYQ5PPoyF5W2SQPTP/w6DkF+8ccpsAeFUuBNlRwUqZpmQ==?iv=lW65B... - -[Fri Oct 3 04:51:14 2025] 📨 EVENT from wss://nos.lol -├── ID: e23aa6ab588d... -├── Pubkey: fcc2a0bd8f58... -├── Kind: 38383 -├── Created: 1759481472 -└── Content: - -[Fri Oct 3 04:51:18 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 424744cd9949... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481477 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,886 -Total Size: 2.29 MB -Memory Usage: 4.4% -A... - -[Fri Oct 3 04:51:18 2025] 📨 EVENT from wss://nos.lol -├── ID: cdd70c25965f... -├── Pubkey: 269e6f57aa9a... -├── Kind: 7 -├── Created: 1759481477 -└── Content: 🌻 - -[Fri Oct 3 04:51:18 2025] 📨 EVENT from wss://nos.lol -├── ID: 2920dff18788... -├── Pubkey: 9b12847f3d28... -├── Kind: 7 -├── Created: 1759481476 -└── Content: + - -[Fri Oct 3 04:51:18 2025] 📨 EVENT from wss://nos.lol -├── ID: 878e36af8415... -├── Pubkey: 3f687efdb731... -├── Kind: 3 -├── Created: 1759481476 -└── Content: - -[Fri Oct 3 04:51:18 2025] 📨 EVENT from wss://nos.lol -├── ID: 715d28db05c7... -├── Pubkey: 1d61bbd63249... -├── Kind: 0 -├── Created: 1759481474 -└── Content: {"name":"BNO News Live","about":"Live updates from the team behind BNO News. For other news, foll... - -[Fri Oct 3 04:51:18 2025] 📨 EVENT from wss://nos.lol -├── ID: f9f9826c88e8... -├── Pubkey: 1d61bbd63249... -├── Kind: 10002 -├── Created: 1759481474 -└── Content: - -[Fri Oct 3 04:51:18 2025] 📨 EVENT from wss://nos.lol -├── ID: 7ade77023751... -├── Pubkey: 3f687efdb731... -├── Kind: 0 -├── Created: 1759481474 -└── Content: {"name":"RSS-to-Nostr of Declassified UK","about":"RSS-to-Nostr feed of Declassified UK\nMore RSS... - -[Fri Oct 3 04:51:18 2025] 📋 EOSE received - 0 events collected - -[Fri Oct 3 04:51:18 2025] 📨 EVENT from wss://nos.lol -├── ID: c6678a6369de... -├── Pubkey: 364ff74823ba... -├── Kind: 0 -├── Created: 1759481476 -└── Content: {"name":"RSS-to-Nostr of MintPress News","about":"RSS-to-Nostr feed of MintPress News\nMore RSS-T... - -[Fri Oct 3 04:51:18 2025] 📨 EVENT from wss://nos.lol -├── ID: a7ce11505900... -├── Pubkey: bf1b1eca75fc... -├── Kind: 0 -├── Created: 1759481476 -└── Content: {"name":"RSS-to-Nostr of Slashdot","about":"RSS-to-Nostr feed of Slashdot\nMore RSS-To-Nostr can ... - -[Fri Oct 3 04:51:19 2025] 📨 EVENT from wss://nos.lol -├── ID: 07ed297f9224... -├── Pubkey: bf1b1eca75fc... -├── Kind: 3 -├── Created: 1759481478 -└── Content: - -[Fri Oct 3 04:51:19 2025] 📨 EVENT from wss://nos.lol -├── ID: 3408c0bec8e7... -├── Pubkey: 364ff74823ba... -├── Kind: 3 -├── Created: 1759481478 -└── Content: - -[Fri Oct 3 04:51:19 2025] 📨 EVENT from wss://nos.lol -├── ID: e3474976fb00... -├── Pubkey: aa6b49bef060... -├── Kind: 23195 -├── Created: 1759481481 -└── Content: ulW6h6l72UN/4NTYUwRLtrGub54Vee+xlwZL5oX2I2j0usHAmUTYUNsh7XklSjIQGQvFSRdmEoWsYyirunfNWg==?iv=Kv6ez... - -[Fri Oct 3 04:51:20 2025] 📨 EVENT from wss://nos.lol -├── ID: 5a1005eeb08d... -├── Pubkey: 95939b99059c... -├── Kind: 23195 -├── Created: 1759481480 -└── Content: BRh5EPimuEVkMOuTeytnHxIj7ANkA7dI4R84ymdbomm++xLG0lt3vu2f3NnovD/fB/aIe0t8EtRt+aaX/cld8g==?iv=+3CTn... - -[Fri Oct 3 04:51:20 2025] 📨 EVENT from wss://nos.lol -├── ID: 15dc597f296d... -├── Pubkey: 6d088b653a1b... -├── Kind: 7 -├── Created: 1759481481 -└── Content: 💯 - -[Fri Oct 3 04:51:23 2025] 📨 EVENT from wss://nos.lol -├── ID: 84c4bfbe3c32... -├── Pubkey: b2a6bf35a9e4... -├── Kind: 0 -├── Created: 1759481481 -└── Content: {"name":"RSS-to-Nostr of Novara Media","about":"RSS-to-Nostr feed of Novara Media\nMore RSS-To-No... - -[Fri Oct 3 04:51:24 2025] 📨 EVENT from wss://nos.lol -├── ID: a3c245967e8c... -├── Pubkey: b2a6bf35a9e4... -├── Kind: 3 -├── Created: 1759481483 -└── Content: - -[Fri Oct 3 04:51:24 2025] 📨 EVENT from wss://nos.lol -├── ID: aee2506b64dc... -├── Pubkey: a1863ef58857... -├── Kind: 10002 -├── Created: 1759481482 -└── Content: - -[Fri Oct 3 04:51:24 2025] 📨 EVENT from wss://nos.lol -├── ID: 3b6df811e98f... -├── Pubkey: 2e4221144f8e... -├── Kind: 10002 -├── Created: 1759481483 -└── Content: - -[Fri Oct 3 04:51:24 2025] 📨 EVENT from wss://nos.lol -├── ID: e3203312f941... -├── Pubkey: 82b30d304441... -├── Kind: 1 -├── Created: 1759481483 -└── Content: cameoアイコンでよけりゃジェネリックの方いくらでも登録するんだけど -... - -[Fri Oct 3 04:51:24 2025] 📨 EVENT from wss://nos.lol -├── ID: e56f8c946c20... -├── Pubkey: a1863ef58857... -├── Kind: 0 -├── Created: 1759481482 -└── Content: {"name":"Breaking911","about":"America’s #1 Alternative News Source | Founded September 2011\n\... - -[Fri Oct 3 04:51:27 2025] 📨 EVENT from wss://nos.lol -├── ID: b7744d4bdd38... -├── Pubkey: f18571e72c93... -├── Kind: 7 -├── Created: 1759481486 -└── Content: 😂 - -[Fri Oct 3 04:51:28 2025] 📨 EVENT from wss://relay.laantungir.net -├── ID: 85d00a748568... -├── Pubkey: e568a76a4f88... -├── Kind: 15555 -├── Created: 1759481487 -└── Content: 📊 Bitcoin Mempool Status - -Pending Transactions: 5,927 -Total Size: 2.30 MB -Memory Usage: 4.4% -A... +[Tue Oct 7 05:52:31 2025] 📋 EOSE received - 0 events collected diff --git a/tests/async_publish_test b/tests/async_publish_test new file mode 100755 index 00000000..fca5e1ee Binary files /dev/null and b/tests/async_publish_test differ diff --git a/tests/async_publish_test.c b/tests/async_publish_test.c new file mode 100644 index 00000000..89210d39 --- /dev/null +++ b/tests/async_publish_test.c @@ -0,0 +1,93 @@ +#define _DEFAULT_SOURCE +#include "../nostr_core/nostr_core.h" +#include "../cjson/cJSON.h" +#include +#include +#include +#include + +// Test callback function +static int callback_count = 0; +static int success_count = 0; + +void test_callback(const char* relay_url, const char* event_id, + int success, const char* message, void* user_data) { + callback_count++; + if (success) { + success_count++; + } + + printf("📡 Callback %d: Relay %s, Event %s, Success: %s\n", + callback_count, relay_url, event_id, success ? "YES" : "NO"); + if (message) { + printf(" Message: %s\n", message); + } + + // Mark test as complete when we get the expected number of callbacks + int* expected_callbacks = (int*)user_data; + if (callback_count >= *expected_callbacks) { + printf("✅ All callbacks received!\n"); + } +} + +int main() { + printf("🧪 Testing Async Publish Functionality\n"); + printf("=====================================\n"); + + // Create pool + nostr_relay_pool_t* pool = nostr_relay_pool_create(NULL); + if (!pool) { + printf("❌ Failed to create pool\n"); + return 1; + } + + // Create a test event + cJSON* event = cJSON_CreateObject(); + cJSON_AddStringToObject(event, "id", "test_event_12345"); + cJSON_AddNumberToObject(event, "kind", 1); + cJSON_AddStringToObject(event, "content", "Test async publish"); + cJSON_AddNumberToObject(event, "created_at", time(NULL)); + cJSON_AddStringToObject(event, "pubkey", "test_pubkey"); + cJSON_AddStringToObject(event, "sig", "test_signature"); + + // Test with non-existent relays (should trigger connection failure callbacks) + const char* test_relays[] = { + "ws://nonexistent1.example.com", + "ws://nonexistent2.example.com" + }; + int expected_callbacks = 2; + + printf("🚀 Testing async publish with connection failure callbacks...\n"); + + // Call async publish + int sent_count = nostr_relay_pool_publish_async( + pool, test_relays, 2, event, test_callback, &expected_callbacks); + + printf("📊 Sent to %d relays\n", sent_count); + + // Wait a bit for callbacks (connection failures should be immediate) + printf("⏳ Waiting for callbacks...\n"); + for (int i = 0; i < 10 && callback_count < expected_callbacks; i++) { + nostr_relay_pool_poll(pool, 100); + usleep(100000); // 100ms + } + + printf("\n📈 Results:\n"); + printf(" Callbacks received: %d/%d\n", callback_count, expected_callbacks); + printf(" Successful publishes: %d\n", success_count); + + // Test backward compatibility with synchronous version + printf("\n🔄 Testing backward compatibility (sync version)...\n"); + int sync_result = nostr_relay_pool_publish_async(pool, test_relays, 2, event, NULL, NULL); + printf(" Sync publish result: %d successful publishes\n", sync_result); + + // Cleanup + cJSON_Delete(event); + nostr_relay_pool_destroy(pool); + + printf("\n✅ Async publish test completed!\n"); + printf(" - Async callbacks: %s\n", callback_count >= expected_callbacks ? "PASS" : "FAIL"); + printf(" - Backward compatibility: %s\n", sync_result >= 0 ? "PASS" : "FAIL"); + + return (callback_count >= expected_callbacks && sync_result >= 0) ? 0 : 1; +} \ No newline at end of file diff --git a/tests/backward_compat_test.c b/tests/backward_compat_test.c new file mode 100644 index 00000000..dd4c0369 --- /dev/null +++ b/tests/backward_compat_test.c @@ -0,0 +1,49 @@ +#define _DEFAULT_SOURCE +#include "../nostr_core/nostr_core.h" +#include "../cjson/cJSON.h" +#include +#include +#include +#include + +int main() { + printf("🧪 Backward Compatibility Test\n"); + printf("===============================\n"); + + // Create pool + nostr_relay_pool_t* pool = nostr_relay_pool_create(NULL); + if (!pool) { + printf("❌ Failed to create pool\n"); + return 1; + } + + // Create a test event + cJSON* event = cJSON_CreateObject(); + cJSON_AddStringToObject(event, "id", "test_event_sync"); + cJSON_AddNumberToObject(event, "kind", 1); + cJSON_AddStringToObject(event, "content", "Test sync publish"); + cJSON_AddNumberToObject(event, "created_at", time(NULL)); + cJSON_AddStringToObject(event, "pubkey", "test_pubkey"); + cJSON_AddStringToObject(event, "sig", "test_signature"); + + // Test with non-existent relay (should return 0 successful publishes) + const char* test_relays[] = {"ws://nonexistent.example.com"}; + + printf("🚀 Testing synchronous publish (backward compatibility)...\n"); + + // Call synchronous publish (old API) + int result = nostr_relay_pool_publish_async(pool, test_relays, 1, event, NULL, NULL); + + printf("📊 Synchronous publish result: %d successful publishes\n", result); + + // Cleanup + cJSON_Delete(event); + nostr_relay_pool_destroy(pool); + + printf("\n✅ Backward compatibility test completed!\n"); + printf(" Expected: 0 successful publishes (connection failure)\n"); + printf(" Actual: %d successful publishes\n", result); + printf(" Result: %s\n", result == 0 ? "PASS" : "FAIL"); + + return result == 0 ? 0 : 1; +} \ No newline at end of file diff --git a/tests/simple_async_test b/tests/simple_async_test new file mode 100755 index 00000000..c68b9c71 Binary files /dev/null and b/tests/simple_async_test differ diff --git a/tests/simple_async_test.c b/tests/simple_async_test.c new file mode 100644 index 00000000..3d89fbf5 --- /dev/null +++ b/tests/simple_async_test.c @@ -0,0 +1,70 @@ +#define _DEFAULT_SOURCE +#include "../nostr_core/nostr_core.h" +#include "../cjson/cJSON.h" +#include +#include +#include +#include + +// Test callback function +static int callback_count = 0; + +void test_callback(const char* relay_url, const char* event_id, + int success, const char* message, void* user_data) { + callback_count++; + printf("📡 Callback %d: Relay %s, Success: %s\n", + callback_count, relay_url, success ? "YES" : "NO"); + if (message) { + printf(" Message: %s\n", message); + } +} + +int main() { + printf("🧪 Simple Async Publish Test\n"); + printf("============================\n"); + + // Create pool + nostr_relay_pool_t* pool = nostr_relay_pool_create(NULL); + if (!pool) { + printf("❌ Failed to create pool\n"); + return 1; + } + + // Create a test event + cJSON* event = cJSON_CreateObject(); + cJSON_AddStringToObject(event, "id", "test_event_simple"); + cJSON_AddNumberToObject(event, "kind", 1); + cJSON_AddStringToObject(event, "content", "Test async publish"); + cJSON_AddNumberToObject(event, "created_at", time(NULL)); + cJSON_AddStringToObject(event, "pubkey", "test_pubkey"); + cJSON_AddStringToObject(event, "sig", "test_signature"); + + // Test with non-existent relay (should trigger connection failure callback) + const char* test_relays[] = {"ws://nonexistent.example.com"}; + + printf("🚀 Testing async publish...\n"); + + // Call async publish + int sent_count = nostr_relay_pool_publish_async( + pool, test_relays, 1, event, test_callback, NULL); + + printf("📊 Sent to %d relays\n", sent_count); + + // Wait a bit for callback + printf("⏳ Waiting for callback...\n"); + for (int i = 0; i < 5 && callback_count == 0; i++) { + nostr_relay_pool_poll(pool, 100); + usleep(100000); // 100ms + } + + printf("\n📈 Results:\n"); + printf(" Callbacks received: %d\n", callback_count); + + // Cleanup + cJSON_Delete(event); + nostr_relay_pool_destroy(pool); + + printf("\n✅ Simple async test completed!\n"); + + return callback_count > 0 ? 0 : 1; +} \ No newline at end of file