Don't link snapshots
If a snapshot breaks a penciller clone, this shouldn't crash the main process.
This commit is contained in:
parent
082eabb65b
commit
c4e376ece5
3 changed files with 16 additions and 2 deletions
|
@ -170,6 +170,7 @@
|
|||
code_change/3]).
|
||||
|
||||
-export([
|
||||
pcl_snapstart/1,
|
||||
pcl_start/1,
|
||||
pcl_pushmem/2,
|
||||
pcl_fetchlevelzero/2,
|
||||
|
@ -310,6 +311,12 @@
|
|||
pcl_start(PCLopts) ->
|
||||
gen_server:start_link(?MODULE, [PCLopts], []).
|
||||
|
||||
-spec pcl_snapstart(penciller_options()) -> {ok, pid()}.
|
||||
%% @doc
|
||||
%% Don't link to the bookie - this is a snpashot
|
||||
pcl_snapstart(PCLopts) ->
|
||||
gen_server:start(?MODULE, [PCLopts], []).
|
||||
|
||||
-spec pcl_pushmem(pid(), bookies_memory()) -> ok|returned.
|
||||
%% @doc
|
||||
%% Load the contents of the Bookie's memory of recent additions to the Ledger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue