Skip to content

Conversation

@Anviking
Copy link
Member

@Anviking Anviking commented Apr 30, 2025

newtype State = State
  { hasSeenAFork :: Bool -- whether or not any node has seen a fork
  }

initialState :: IO State
initialState = do
  writeSdkJsonl sometimesForksDeclaration
  return $ State False

processMessage :: LogMessage -> State -> IO State
processMessage LogMessage{datum} state = case (datum, state) of
  (SwitchedToAFork{}, s@(State False)) -> do
    writeSdkJsonl sometimesForksReached
    return $ s { hasSeenAFork = True }
  (_, s) -> return s

@Anviking Anviking force-pushed the anviking/tracer-sidecar branch 5 times, most recently from 9f57699 to cdfa5b9 Compare May 5, 2025 10:35
@Anviking Anviking force-pushed the anviking/cardano-tracer branch from 85cca94 to 65679e5 Compare May 6, 2025 17:14
@Anviking Anviking force-pushed the anviking/tracer-sidecar branch from 1cd25e3 to 1bbca5b Compare May 7, 2025 10:25
@Anviking Anviking marked this pull request as ready for review May 7, 2025 10:27
@Anviking
Copy link
Member Author

Anviking commented May 7, 2025

Merging into the underlying PR.

@Anviking Anviking merged commit 3970e1c into anviking/cardano-tracer May 7, 2025
@Anviking Anviking deleted the anviking/tracer-sidecar branch May 7, 2025 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants