Skip old incoming events
This commit is contained in:
parent
8fc3f48d09
commit
1ab11a5013
|
@ -1219,6 +1219,8 @@ class Nip46Backend extends NDKNip46Backend {
|
|||
}
|
||||
|
||||
async handleIncomingEvent(event) {
|
||||
if (event.created_at < Date.now() / 1000 - 10) return;
|
||||
|
||||
const { id, method, params } = await this.rpc.parseEvent(event);
|
||||
const remotePubkey = event.pubkey;
|
||||
let response;
|
||||
|
|
Loading…
Reference in New Issue
Block a user