Describe the bug
With the current version (commit fb6948f) nostream is not accepting events. Sending a simple event with nostr-tools gives no response. Requesting events works as expected though.
Switching to commit f237400 solves the issue. Everything works as expected.
To Reproduce
Steps to reproduce the behavior:
- Run command:
- Start nostream witch mentioned commit checked out
- execute sth like:
import'websocket-polyfill'import{relayInit,getPublicKey,getEventHash,signEvent}from'nostr-tools'constrelay=relayInit('wss://example.com')letprivateKey='xxx'relay.on('connect',()=>{console.log(`connected to ${relay.url}`)})relay.on('error',()=>{console.log(`failed to connect to ${relay.url}`)})awaitrelay.connect()letevent={kind: 1,created_at: Math.floor(Date.now()/1000),tags: [],content: 'Hello world! This is a test',pubkey: getPublicKey(privateKey)}event.id=getEventHash(event)event.sig=signEvent(event,privateKey)letpub=relay.publish(event)pub.on('ok',()=>{console.log(`${relay.url} has accepted our event`)})pub.on('failed',reason=>{console.log(`failed to publish to ${relay.url}: ${reason}`)})- See error: Event is not accepted, but no error is thrown either.
Expected behavior
The event got accepted
System (please complete the following information):
- OS: Ubuntu 22.04
- Platform: docker
- Version: commit fb6948f
Describe the bug
With the current version (commit fb6948f) nostream is not accepting events. Sending a simple event with
nostr-toolsgives no response. Requesting events works as expected though.Switching to commit f237400 solves the issue. Everything works as expected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The event got accepted
System (please complete the following information):