Skip to content

Commit

Permalink
Problem: there's a lot of code that we no longer need
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Nov 8, 2023
1 parent 3eacef1 commit 1cfb233
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 608 deletions.
8 changes: 4 additions & 4 deletions src/lib/consensus/consensus_event_producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { unixTimeNow } from "$lib/helpers/mundane";
import { labelledTag } from "$lib/helpers/shouldBeInNDK";
import { validate } from "$lib/protocol_validators/rockets";
import { ndk } from "$lib/stores/event_sources/relays/ndk";
import { consensusTipState, eligibleForProcessing, stateChangeEvents } from "$lib/stores/nostrocket_state/master_state";
import { consensusTipState, stateChangeEvents } from "$lib/stores/nostrocket_state/master_state";
import type { NDKEvent } from "@nostr-dev-kit/ndk";
import { Mutex } from "async-mutex";
import { get, get as getStore, writable } from "svelte/store";
import {
MAX_STATECHANGE_EVENT_AGE,
rootEventID,
simulateEvents
} from "../../settings";
import type { NDKEvent } from "@nostr-dev-kit/ndk";
import { Mutex } from "async-mutex";
import { get, get as getStore, writable } from "svelte/store";

const $ndk = getStore(ndk);

Expand Down
204 changes: 0 additions & 204 deletions src/lib/consensus/state.ts

This file was deleted.

98 changes: 0 additions & 98 deletions src/lib/factories/event_pool.ts

This file was deleted.

15 changes: 1 addition & 14 deletions src/lib/helpers/bitcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,4 @@ export function BitcoinTipHeight(): BitcoinTip {
type BitcoinTip = {
height: number;
hash: string;
};

// export function bitcoinTip():BitcoinTip {
// let btcTip: BitcoinTip;
// btcTip.median = 0
// return btcTip
// }

// type BitcoinTip = {
// height: number
// hash: string
// median: number
// miner: number
// }
};
2 changes: 2 additions & 0 deletions src/lib/snippets/landing.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//todo get all this from events instead

export let n0 = "Nostrocket is a Self Organizing Unorganization (SOU) factory built with Bitcoin and Nostr. It provides a hyper-efficient and radically fair way for anyone to collaborate on open source projects for fun and profit."

export let n1 = "Nostrocket makes open source projects hyper-efficient because work can be done asynchronously without organizational mutexes. It makes them radically fair in the way that participants form consensus over the value of each contribution."
Expand Down
44 changes: 0 additions & 44 deletions src/lib/stores/event_sources/relays/livesubscriptions.ts

This file was deleted.

Loading

0 comments on commit 1cfb233

Please sign in to comment.