From 2a61857990bd2a85f4c9a770ccc3a58798f1a3a8 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Wed, 19 Sep 2018 11:51:29 +0100 Subject: [PATCH 1/2] Display warning for gas price --- lib/tests/test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/tests/test.js b/lib/tests/test.js index 4a280af6..4dee221f 100644 --- a/lib/tests/test.js +++ b/lib/tests/test.js @@ -188,6 +188,7 @@ class Test { } return self.connectToIpcNode(cb); } + self.showNodeHttpWarning(); cb(); } ], callback); @@ -200,10 +201,17 @@ class Test { return cb(); } this.options.node = node; + this.showNodeHttpWarning(); cb(); }); } + showNodeHttpWarning() { + if (this.options.node.startsWith('http')) { + this.engine.logger.warn("You are using http to connect to the node, as a result the gas details won't be correct"); + } + } + onReady(callback) { const self = this; if (this.ready) { From b1df72be3fa8121c2b5cb2ca833dd620f40dfbe8 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Wed, 19 Sep 2018 13:46:39 +0100 Subject: [PATCH 2/2] Update text --- lib/tests/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tests/test.js b/lib/tests/test.js index 4dee221f..bbc9ff29 100644 --- a/lib/tests/test.js +++ b/lib/tests/test.js @@ -208,7 +208,8 @@ class Test { showNodeHttpWarning() { if (this.options.node.startsWith('http')) { - this.engine.logger.warn("You are using http to connect to the node, as a result the gas details won't be correct"); + this.engine.logger.warn("You are using http to connect to the node, as a result the gas details won't be correct." + + " For correct gas details reporting, please use a websockets connection to your node."); } }