aboutsummaryrefslogtreecommitdiffstats
path: root/RPCTests/scripts/tests/MineBlocks2/step01_node01_getBlockHash.js
diff options
context:
space:
mode:
authorDimitry <dimitry@ethdev.com>2017-02-17 20:19:07 +0800
committerDimitry <dimitry@ethdev.com>2017-02-17 20:19:07 +0800
commit0e7c51bb0a4755a2bebe11c72a579a962b3c205b (patch)
tree98d45d474f720014f348e7f5ba85a975b135e22c /RPCTests/scripts/tests/MineBlocks2/step01_node01_getBlockHash.js
parenta20bb807ab40fb06277ca278a00c77eac57d551a (diff)
downloaddexon-tests-0e7c51bb0a4755a2bebe11c72a579a962b3c205b.tar
dexon-tests-0e7c51bb0a4755a2bebe11c72a579a962b3c205b.tar.gz
dexon-tests-0e7c51bb0a4755a2bebe11c72a579a962b3c205b.tar.bz2
dexon-tests-0e7c51bb0a4755a2bebe11c72a579a962b3c205b.tar.lz
dexon-tests-0e7c51bb0a4755a2bebe11c72a579a962b3c205b.tar.xz
dexon-tests-0e7c51bb0a4755a2bebe11c72a579a962b3c205b.tar.zst
dexon-tests-0e7c51bb0a4755a2bebe11c72a579a962b3c205b.zip
move tests to separate folders
Diffstat (limited to 'RPCTests/scripts/tests/MineBlocks2/step01_node01_getBlockHash.js')
-rw-r--r--RPCTests/scripts/tests/MineBlocks2/step01_node01_getBlockHash.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/RPCTests/scripts/tests/MineBlocks2/step01_node01_getBlockHash.js b/RPCTests/scripts/tests/MineBlocks2/step01_node01_getBlockHash.js
new file mode 100644
index 000000000..d3a3b0bbf
--- /dev/null
+++ b/RPCTests/scripts/tests/MineBlocks2/step01_node01_getBlockHash.js
@@ -0,0 +1,13 @@
+process.stdout.write("TEST_getBlockHashOnNode1 ");
+
+var onResult = {};
+web3.eth.getBlock("latest", function(err, res){ onResult(err, res); })
+
+onResult = function (err,res)
+{
+ if (res.hash == args["node2_lastblock"].hash)
+ console.log("OK");
+ else
+ console.log("FAILED ");
+ callback(err, res);
+}