Skip to content

Commit

Permalink
problem: console spam
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Nov 20, 2023
1 parent 7684946 commit f00fa6b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/lib/stores/nostrocket_state/hard_state/rockets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export function HandleRocketIgnitionNote(
state: Nostrocket,
consensusMode: ConsensusMode
): [Nostrocket, TypeOfFailure, boolean] {
if (consensusMode == 2) {console.log(ev.id)}
let r: Rocket | undefined = state.RocketMap.get(ev.id);
if (!r) {
r = new Rocket();
Expand All @@ -37,14 +36,12 @@ export function HandleRocketIgnitionNote(
consensusMode != ConsensusMode.Scum &&
consensusMode != ConsensusMode.ProvisionalScum
) {
console.log(ev.id)
return [state, TypeOfFailure.SoftStateFailure, false];
}
let taggedProblemID = labelledTag(ev, "problem", "e");
//if we are producing a consensus event, fail hard if can't verify problem creator == this pubkey
//if we are following a consensus event, only fail hard if problem creator is validated as someone other than this pubkey, fail soft if can't find the problem
if (taggedProblemID) {
console.log(ev.id)
if (taggedProblemID.length != 64) {
//problem tag is optional, but MUST be valid if defined
return [state, TypeOfFailure.HardStateFailure, false];
Expand All @@ -55,7 +52,6 @@ export function HandleRocketIgnitionNote(
}
if (problem) {
if (problem.CreatedBy != ev.pubkey) {
console.log(ev.id)
//if we have this problem locally, and it isn't created by the same pubkey as this event
return [state, TypeOfFailure.HardStateFailure, false];
}
Expand All @@ -78,7 +74,6 @@ export function HandleRocketIgnitionNote(
}
r.Name = newRocketName;
state.RocketMap.set(ev.id, r);
if (consensusMode == 2) {console.log(ev.id)}
return [state, 0, true];
}

Expand Down
3 changes: 0 additions & 3 deletions src/lib/stores/nostrocket_state/master_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ export function HandleHardStateChangeEvent(
if (needsConsensus) {
let ok = false;
let typeOfFailure;
console.log(262, requestEvent.id);
[state, typeOfFailure, ok] = HandleHardStateChangeRequest(
requestEvent,
state,
Expand All @@ -269,7 +268,6 @@ export function HandleHardStateChangeEvent(
return true;
}
}
console.log(271)
return false;
}

Expand Down Expand Up @@ -369,7 +367,6 @@ export async function rebroadcastEvents(mutex: Mutex) {
mutex.acquire().then((release)=>{
event.ndk = get(ndk_profiles)
event.publish().then(r=>{
console.log(r)
}).finally(()=>{release()})
})

Expand Down
1 change: 0 additions & 1 deletion src/routes/problems/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
problem = $consensusTipState.Problems.get($page.params.id);
if (problem) {
claimable = (!hasOpenChildren(problem, $consensusTipState) && problem.Status == "open");
console.log(claimable)
}
if (statusErrorText) {
Expand Down
1 change: 0 additions & 1 deletion src/routes/rockets/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import { Rocket } from "carbon-pictograms-svelte";
import CreateRocket from "../../components/modals/CreateRocket.svelte";
import { consensusTipState } from "$lib/stores/nostrocket_state/master_state";
import { ConsensusMode } from "$lib/stores/nostrocket_state/hard_state/types";
</script>

<Row>
Expand Down

0 comments on commit f00fa6b

Please sign in to comment.