diff options
author | Dimitry <dimitry@ethdev.com> | 2017-02-17 20:19:07 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2017-02-17 20:19:07 +0800 |
commit | 0e7c51bb0a4755a2bebe11c72a579a962b3c205b (patch) | |
tree | 98d45d474f720014f348e7f5ba85a975b135e22c /RPCTests/scripts/tests/MineBlocks2/step01_node01_getBlockHash.js | |
parent | a20bb807ab40fb06277ca278a00c77eac57d551a (diff) | |
download | dexon-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.js | 13 |
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); +} |