Gave bit fluming its own message (#974)

This commit is contained in:
Kelenius 2023-12-19 13:28:34 +03:00 committed by GitHub
parent 3a7ff7880d
commit 5789003d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,6 +10,7 @@ import Typography from "@mui/material/Typography";
import Tooltip from "@mui/material/Tooltip"; import Tooltip from "@mui/material/Tooltip";
import { Settings } from "../../Settings/Settings"; import { Settings } from "../../Settings/Settings";
import Button from "@mui/material/Button"; import Button from "@mui/material/Button";
import { CompletedProgramName } from "@enums";
const useStyles = makeStyles(() => const useStyles = makeStyles(() =>
createStyles({ createStyles({
@ -121,33 +122,52 @@ export function BitverseRoot(props: IProps): React.ReactElement {
const [destroySequence, setDestroySequence] = useState(!props.quick); const [destroySequence, setDestroySequence] = useState(!props.quick);
if (destroySequence) { if (destroySequence) {
return ( let cinematicLines;
<CinematicText if (props.flume) {
lines={[ cinematicLines = [
"[ERROR] SEMPOOL INVALID", `Running ${CompletedProgramName.bitFlume}...`,
"[ERROR] Segmentation Fault", "...........",
"[ERROR] SIGKILL RECVD", "...........",
"Dumping core...", "counter dq 0x0",
"0000 000016FA 174FEE40 29AC8239 384FEA88", "mov [counter], EXC",
"0010 745F696E 2BBBE394 390E3940 248BEC23", "dec [counter]",
"0020 7124696B 0000FF69 74652E6F FFFF1111", "mov EXC, [counter]",
"----------------------------------------", "...........",
"Failsafe initiated...", "...........",
`Restarting BitNode-${destroyed}...`, `[WARN] BitNode-${destroyed} assertion error:`,
"...........", "Expected inputs to be strictly equal:",
"...........", "<Number of incoming connections>, <Number of outgoing connections>",
"[ERROR] FAILED TO AUTOMATICALLY REBOOT BITNODE", "Running full scan...",
"..............................................", "..............................................",
"..............................................", "..............................................",
"..............................................", "Hanging connection located, disconnecting...",
"..............................................", "..............................................",
"..............................................", "..............................................",
"..............................................", ];
]} } else {
onDone={() => setDestroySequence(false)} cinematicLines = [
auto={true} "[ERROR] SEMPOOL INVALID",
/> "[ERROR] Segmentation Fault",
); "[ERROR] SIGKILL RECVD",
"Dumping core...",
"0000 000016FA 174FEE40 29AC8239 384FEA88",
"0010 745F696E 2BBBE394 390E3940 248BEC23",
"0020 7124696B 0000FF69 74652E6F FFFF1111",
"----------------------------------------",
"Failsafe initiated...",
`Restarting BitNode-${destroyed}...`,
"...........",
"...........",
"[ERROR] FAILED TO AUTOMATICALLY REBOOT BITNODE",
"..............................................",
"..............................................",
"..............................................",
"..............................................",
"..............................................",
"..............................................",
];
}
return <CinematicText lines={cinematicLines} onDone={() => setDestroySequence(false)} auto={true} />;
} }
const nextSourceFileLvl = (n: number): number => { const nextSourceFileLvl = (n: number): number => {