Enable AND
within a single tag filter by using an &
modifier in filters for indexable tags.
filters: {
"kinds": [1],
"&t": ["meme", "cat"],
"#t": ["black", "white"]
}
export interface Types { | |
contact: string; | |
description: string; | |
fees?: Fees; | |
icon?: any; | |
language_tags?: string[]; | |
limitation?: Limitation; | |
name: string; | |
payments_url?: any; | |
posting_policy?: any; |
// To parse this data: | |
// | |
// import { Convert, Nip11 } from "./file"; | |
// | |
// const nip11 = Convert.toNip11(json); | |
// | |
// These functions will throw an error if the JSON doesn't | |
// match the expected interface, even if the JSON is valid. | |
export interface Nip11 { |
{ | |
"content": "{\"contact\":\"[email protected]\",\"description\":\"Damus strfry relay\",\"name\":\"damus.io \",\"pubkey\":\"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245\",\"software\":\"git+https://github.com/hoytech/strfry.git\",\"supported_nips\":[1,2,4,9,11,20,22,28,40,70],\"version\":\"0.9.2-88-g1d206d1ce9f2\"}", | |
"created_at": 1723894146, | |
"id": "3c2a8bf4f2625ad52b0f7f318a42d6c497f110ddcc3223b376513e1c4714c2fa", | |
"kind": 30166, | |
"pubkey": "9bbbb845e5b6c831c29789900769843ab43bb5047abe697870cb50b6fc9bf923", | |
"sig": "e35b240ed8c3438be0ded977eb528fb4b0490a27b63da38e478034ec0d34e7d72ae8725691de2778b2c2f486bbbb2a992ca0694237a4d43bbc411c15f336113d", | |
"tags": [ | |
[ | |
"d", |
type: vertical-stack | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: custom:mushroom-title-card | |
title: Bambu Lab X1C | |
alignment: start | |
- type: custom:mod-card | |
card: | |
type: custom:mushroom-chips-card |
#important! | |
map $http_accept $upstream { | |
default 127.0.0.1:8080; | |
application/nostr+json 127.0.0.1:7777; | |
} | |
server { | |
...other stuff | |
location / { |
{ | |
"name": "gossip.events", | |
"type": "module", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"dependencies": { | |
"fast-safe-stringify": "2.1.1", | |
"node-cache": "5.1.2", | |
"nostr": "0.2.8" |
--- a/src/script/interpreter.cpp | |
+++ b/src/script/interpreter.cpp | |
@@ -504,6 +504,14 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript& | |
return set_error(serror, SCRIPT_ERR_MINIMALDATA); | |
} | |
stack.push_back(vchPushValue); | |
+ if ((flags & SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS) && opcode == OP_FALSE) { | |
+ auto pc_tmp = pc; | |
+ opcodetype next_opcode; | |
+ valtype dummy_data; |
{ | |
"created_at": 1690938995, | |
"content": "", | |
"kind": 34567 | |
"tags": [ | |
[ | |
"d", | |
"6df59fbe7e2de656a864669d5003597613c5a2b1eb4d4bc7d904cd5a68cac775" | |
], | |
[ |