new DefaultCheckpointers()
Methods
-
<async, static> file(path)
-
Create a checkpointer that uses the specified file to store persistent state. If the file does not exist, it will be created and the checkpointer will have an uninitialized state that will accept any events. If the file does exist, it must contain valid checkpoint state.
Parameters:
Name Type Description path
string Path to a file holding persistent checkpoint state. Returns:
A checkpointer.- Type
- Promise.<module:fabric-network.Checkpointer>