WS: Add ledger_entry option ledger.

This commit is contained in:
Arthur Britto
2012-09-27 14:40:56 -07:00
parent 22c22bd734
commit 84dd986b6e
2 changed files with 36 additions and 4 deletions

View File

@@ -163,6 +163,26 @@ buster.testCase("Websocket commands", {
});
});
},
'ledger_entry index' :
function(done) {
alpha.ledger_closed(function (r) {
// console.log("result: %s", JSON.stringify(r));
buster.refute('error' in r);
alpha.ledger_entry({
'ledger_index' : r.ledger_index,
'index' : "2B6AC232AA4C4BE41BF49D2459FA4A0347E1B543A4C92FCEE0821C0201E2E9A8",
} , function (r) {
console.log("node: %s", JSON.stringify(r));
buster.assert('node_binary' in r);
done();
});
});
},
});
// vim:ts=4