2017-04-05 20:24:26 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2018-02-06 00:17:03 +04:00
|
|
|
(* Copyright (c) 2014 - 2018. *)
|
2017-04-05 20:24:26 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
|
|
|
val fork_node:
|
2018-02-02 20:38:35 +04:00
|
|
|
?exe:string -> ?timeout:int -> ?port:int -> ?sandbox:string ->
|
|
|
|
unit -> int
|
2017-04-05 20:24:26 +04:00
|
|
|
(** [fork_node ()] forks a node in sandbox mode listening to rpc on
|
|
|
|
`localhost:port` (where the default port is 18732) and returns the
|
|
|
|
PID of the forked process. It waits `timeout` seconds (default 4)
|
|
|
|
before to return and it may fails with an exception whenever the node
|
|
|
|
died during the wait. *)
|