unsplit, backwards-compatibility, wasm relay and pool must be configured manually from the abstract classes.

This commit is contained in:
fiatjaf
2023-12-21 19:57:28 -03:00
parent a4ae964ee6
commit 7f11c0c618
16 changed files with 162 additions and 89 deletions

View File

@@ -1,3 +1,5 @@
import { verifiedSymbol, type Event, type Nostr } from './core.ts'
export async function yieldThread() {
return new Promise(resolve => {
const ch = new MessageChannel()
@@ -7,3 +9,8 @@ export async function yieldThread() {
ch.port1.start()
})
}
export const alwaysTrue: Nostr['verifyEvent'] = (t: Event) => {
t[verifiedSymbol] = true
return t[verifiedSymbol]
}