How to use the fabric-network/lib/impl/event/checkpointfactories.FILE_SYSTEM_CHECKPOINTER function in fabric-network

To help you get started, we’ve selected a few fabric-network examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hyperledger / fabric-sdk-node / fabric-network / src / gateway.js View on Github external
this.networks = new Map();

		// default options
		this.options = {
			queryHandlerOptions: {
				strategy: QueryStrategies.MSPID_SCOPE_SINGLE
			},
			eventHandlerOptions: {
				commitTimeout: 300, // 5 minutes
				strategy: EventStrategies.MSPID_SCOPE_ALLFORTX
			},
			discovery: {
				enabled: Client.getConfigSetting('initialize-with-discovery', true)
			},
			checkpointer: {
				factory: CheckpointFactories.FILE_SYSTEM_CHECKPOINTER,
				options: {}
			},
			eventHubSelectionOptions: {
				strategy: EventHubSelectionStrategies.MSPID_SCOPE_ROUND_ROBIN,
			}
		};
	}