mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-21 18:15:24 +00:00
Back out changes to generalised replacement behaviour, to preserve NIP conformance
- d tags only work on kinds 30k-40k - ephemeral tag is not honoured
This commit is contained in:
11
src/events.h
11
src/events.h
@ -9,17 +9,22 @@
|
||||
|
||||
|
||||
|
||||
inline bool isDefaultReplaceableKind(uint64_t kind) {
|
||||
inline bool isReplaceableKind(uint64_t kind) {
|
||||
return (
|
||||
kind == 0 ||
|
||||
kind == 3 ||
|
||||
kind == 41 ||
|
||||
(kind >= 10'000 && kind < 20'000) ||
|
||||
(kind >= 10'000 && kind < 20'000)
|
||||
);
|
||||
}
|
||||
|
||||
inline bool isParamReplaceableKind(uint64_t kind) {
|
||||
return (
|
||||
(kind >= 30'000 && kind < 40'000)
|
||||
);
|
||||
}
|
||||
|
||||
inline bool isDefaultEphemeralKind(uint64_t kind) {
|
||||
inline bool isEphemeralKind(uint64_t kind) {
|
||||
return (
|
||||
(kind >= 20'000 && kind < 30'000)
|
||||
);
|
||||
|
Reference in New Issue
Block a user