Skip to content

Commit

Permalink
chore: add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ committed Nov 16, 2024
1 parent a515885 commit d2b953e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dedicated/dedicated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ global.suicide = async (player) => {

// check for extraneous state utxos and cleanup
try {
console.log("Checking head's utxo set for stale games...");
const response = await fetch(`${HYDRA_NODE}snapshot/utxo`);
const data = response.json();
// Currently, we are just wiping the utxos after every game
Expand Down Expand Up @@ -181,8 +182,8 @@ while (!done) {
}

console.log("Game finished.");

try {
console.log("Ending game. Marking game as 'Aborted'.");
await fetch(
"http://control-plane.hydra-doom.svc.cluster.local/end_game?id=a0",
{ method: "POST" },
Expand Down

0 comments on commit d2b953e

Please sign in to comment.