Implement Remote#reserve().

This commit is contained in:
Stefan Thomas
2013-07-26 13:02:06 -07:00
parent f69ad8b172
commit 6bb9f9e5e4
2 changed files with 14 additions and 3 deletions

View File

@@ -157,7 +157,9 @@ var create_accounts = function (remote, src, amount, accounts, callback) {
.on('proposed', function (m) {
// console.log("proposed: %s", JSON.stringify(m));
callback(m.result != 'tesSUCCESS');
if (m.result != 'tesSUCCESS') {
callback(new Error("Transaction did not succeed."));
} else callback(null);
})
.on('error', function (m) {
// console.log("error: %s", JSON.stringify(m));