aboutsummaryrefslogtreecommitdiffstats
path: root/RPCTests/scripts/test03_node02_getBlockHash.js
blob: fc09f8423660cc885818908d693eaa6f90072e82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
process.stdout.write("TEST_getBlockHashOnNode2 ");

var onResult = {};
web3.eth.getBlock("latest", function(err, res){  onResult(err, res); })

onResult = function (err,res) 
{
    if (res.hash == args["node1_lastblock"].hash)   
        console.log("OK");
       else
        console.log("FAILED");
    callback(err, res);
}