From 5442708020b4656127a1c30da449a15bf5c50272 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 31 Oct 2018 10:36:30 +0100 Subject: [PATCH] add warning on RPC --- lib/modules/blockchain_connector/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/modules/blockchain_connector/index.js b/lib/modules/blockchain_connector/index.js index 912677110..a658a74c6 100644 --- a/lib/modules/blockchain_connector/index.js +++ b/lib/modules/blockchain_connector/index.js @@ -80,6 +80,10 @@ class BlockchainConnector { this.logger.error(__("Accepted types are: %s", BlockchainConnector.ACCEPTED_TYPES.join(', '))); } + if (type === 'rpc') { + this.logger.warn('Using RPC as deployment connection type is deprecated. It is recommended to use WS.'); + } + if (type === 'vm') { const sim = self._getSimulator(); self.provider = sim.provider(self.config.contractsConfig.deployment);