What's the right way to launch navigator?
- ShaulOP 4
- cocreature 5
daml navigatorjust calls the underlying Navigator JAR and will pick up aui-backend.conffile to determine the list of available parties or readdaml.yamland the parties specified there.daml ledger navigatoris a wrapper that first queries the party management API to get the list of known parties. It then creates a temporaryui-backend.conffile and starts Navigator with that config. So Navigator will show you exactly the parties that have been allocated. This is particularly useful on ledgers without implicit party allocation and on ledgers where you cannot choose your party id freely.So if you allocate your parties properly (a DAML Script specified in
init-scriptin yourdaml.yamlis sufficient fordaml startto do that), thendaml ledger navigatoris the better option since you don’t have to update some config file if new parties have been added. If you rely on implicit party allocation thendaml navigatoris currently the better option.Note that
daml ledger navigatorwill not refresh parties if you allocate them later so you have to restart it. I would argue that long-term Navigator should become aware of the party management API itself both so thatdaml ledger navigatoris no longer special and so that it can refresh them dynamically.