Guest User

Untitled

a guest
Jun 2nd, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.56 KB | None | 0 0
  1.  
  2. // connect participant1 to the domain passing a user chosen alias and the domain port as the argument
  3. party1.domains.connect("party1ledger", "http://localhost:10018")
  4.  
  5. // above connect operation is asynchronous. it is generally at the discretion of the domain
  6. // to decide if a participant can join and when. therefore, we need to asynchronously wait here
  7. // until the participant observes his activation on the domain
  8. utils.retry_until_true() {
  9.     party1.domains.active( "party1ledger")
  10. }
  11.  
  12. // verify that the connection works
  13. party1.health.ping(party1)
Add Comment
Please, Sign In to add comment