Skip to content

Commit

Permalink
0.3.3-beta
Browse files Browse the repository at this point in the history
removed recent hello world spam code
  • Loading branch information
vishalxl committed Dec 30, 2022
1 parent 01590b6 commit e5027dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import 'package:logging/logging.dart';

// name of executable
const String exename = "nostr_console";
const String version = "0.3.2-beta-a";
const String version = "0.3.3-beta";

int gDebug = 0;
int gSpecificDebug = 0;

final log = Logger('ExampleLogger');

// for debugging
String gCheckEventId = "b9e1824fe65b10f7d06bd5f6dfe1ab3eda876d7243df5878ca0b9686d80c0840f";
String gCheckEventId = "xb9e1824fe65b10f7d06bd5f6dfe1ab3eda876d7243df5878ca0b9686d80c0840f";


int gMaxEventLenthAccepted = 80000; // max event size. events larger than this are rejected.
Expand Down
4 changes: 2 additions & 2 deletions lib/tree_ds.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1399,9 +1399,9 @@ class Store {
// add the event to the main event store thats allChildEventsMap
newEventsToProcess.forEach((newEvent) {

if( newEvent.eventData.kind == 1 && newEvent.eventData.content.compareTo("Hello Nostr! :)") == 0 && newEvent.eventData.id.substring(0,2).compareTo("00") == 0) {
/*if( newEvent.eventData.kind == 1 && newEvent.eventData.content.compareTo("Hello Nostr! :)") == 0 && newEvent.eventData.id.substring(0,2).compareTo("00") == 0) {
return; // spam prevention
}
}*/

if( allChildEventsMap.containsKey(newEvent.eventData.id)) {// don't process if the event is already present in the map
return;
Expand Down
8 changes: 5 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: nostr_console
description: A multi-platform nostr client built for terminal/console
version: 0.3.2-beta-a
version: 0.3.3-beta
homepage: https://github.com/vishalxl/nostr_console


# reverted yml to 'updated readme checkin' , removed arm64 mention ( still uses matrix logic)
# spam prevention aginst hello nostr
# 0.3.3
# Linux arm64 build added; docker images pushed to github store; and improving of build process by @AaronDewes
# added display_name and website field support for reading and updating kind 0 , or profile
# color fix - where likes to right of a notification-like were shown in white rather than as colored text

# 0.3.2
# added build for ubuntu arm 64, and mac arm 64
Expand Down

0 comments on commit e5027dd

Please sign in to comment.