aboutsummaryrefslogtreecommitdiffstats
path: root/RPCTests/scripts/test05_node01_getBlockHash.js
blob: d3a3b0bbf8a5f123f0be119ddf985b6a3514b9eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}