Skip to content

Commit

Permalink
switch the order of add and remove
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost-not-in-the-shell committed Jun 29, 2021
1 parent a650cec commit 810f029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/transition_frontier/full_catchup_tree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ let tear_down {nodes; states; _} =
Hashtbl.clear states

let set_state t (node : Node.t) s =
add_state t.states node ;
remove_state t.states node ;
node.state <- s ;
remove_state t.states node
add_state t.states node

let finish t (node : Node.t) b =
let s, r =
Expand Down

0 comments on commit 810f029

Please sign in to comment.