mirror of
https://github.com/aljazceru/hypergolic.git
synced 2025-12-19 22:44:20 +01:00
problem: console spam
This commit is contained in:
@@ -32,9 +32,7 @@
|
||||
let merits = derived(_merits, ($merits) => {
|
||||
let map = new Map<string, MeritRequest>();
|
||||
for (let z of $merits) {
|
||||
console.log('z', z);
|
||||
let meritRequest = new MeritRequest(z);
|
||||
console.log('meritRequest', meritRequest);
|
||||
if (meritRequest.BasicValidation()) {
|
||||
if (meritRequest.Event.sig) {
|
||||
//broadcast the events to our relays
|
||||
|
||||
@@ -69,7 +69,6 @@ export class MeritRequest {
|
||||
if (typeof request == 'string') {
|
||||
console.log(69);
|
||||
} else {
|
||||
console.log(71);
|
||||
this.LeadTime = 0;
|
||||
this.LastLTUpdate = 0;
|
||||
this.Event = request;
|
||||
|
||||
@@ -1,11 +1,19 @@
|
||||
import { NDKEvent, type NDKTag } from '@nostr-dev-kit/ndk';
|
||||
import { MapOfVotes, MeritRequest, Vote, Votes } from './merits';
|
||||
import { MapOfVotes, MeritRequest, Votes } from './merits';
|
||||
|
||||
export class Rocket {
|
||||
Event: NDKEvent;
|
||||
Name(): string {
|
||||
return this.Event.dTag!;
|
||||
}
|
||||
Products(): RocketProduct[] {
|
||||
let _products: RocketProduct[] = [];
|
||||
for (let p of this.Event.getMatchingTags('product')) {
|
||||
_products.push(new RocketProduct(p));
|
||||
}
|
||||
console.log(_products)
|
||||
return _products
|
||||
}
|
||||
VotePowerForPubkey(pubkey: string): number {
|
||||
let votepower = 0;
|
||||
if (this.Event.pubkey == pubkey) {
|
||||
|
||||
Reference in New Issue
Block a user