Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // connect participant1 to the domain passing a user chosen alias and the domain port as the argument
- party1.domains.connect("party1ledger", "http://localhost:10018")
- // above connect operation is asynchronous. it is generally at the discretion of the domain
- // to decide if a participant can join and when. therefore, we need to asynchronously wait here
- // until the participant observes his activation on the domain
- utils.retry_until_true() {
- party1.domains.active( "party1ledger")
- }
- // verify that the connection works
- party1.health.ping(party1)
Add Comment
Please, Sign In to add comment