linera-protocol icon indicating copy to clipboard operation
linera-protocol copied to clipboard

Clean up `synchronize_chain_state_*` function confusion.

Open afck opened this issue 1 month ago • 0 comments
trafficstars

(From this comment.) We have:

  • synchronize_chain_state(chain_id) which internally loads the committee and then synchronizes the state
  • synchronize_chain_state_from_committee(committee) which requires committee but internally knows which chain to synchronize
  • synchronize_chain_state_from_committee (on the client) that expects both

but we don't have fn synchronize_chain_state which hides both. Even though everything is available in the ChainClient:

  • which chain it's for
  • how to get the committee

afck avatar Oct 02 '25 10:10 afck