diff --git a/src/cpp/ripple/RippleCalc.cpp b/src/cpp/ripple/RippleCalc.cpp index 6ff83e670c..dbed87da8c 100644 --- a/src/cpp/ripple/RippleCalc.cpp +++ b/src/cpp/ripple/RippleCalc.cpp @@ -692,7 +692,7 @@ Json::Value PathState::getJson() const jvPathState["out_pass"] = saOutPass.getJson(0); if (uQuality) - jvPathState["uQuality"] = Json::Value::UInt(uQuality); + jvPathState["uQuality"] = boost::str(boost::format("%d") % uQuality); return jvPathState; } diff --git a/src/js/remote.js b/src/js/remote.js index 3f5be45110..c5fa799d63 100644 --- a/src/js/remote.js +++ b/src/js/remote.js @@ -1451,6 +1451,7 @@ Transaction.prototype._account_secret = function (account) { // .message_key() NYI // .transfer_rate() // .wallet_locator() NYI +// .wallet_size() NYI Transaction.prototype.account_set = function (src) { this._secret = this._account_secret(src); this.tx_json.TransactionType = 'AccountSet'; diff --git a/test/path-test.js b/test/path-test.js index 581b0c89d0..6cf389d6c9 100644 --- a/test/path-test.js +++ b/test/path-test.js @@ -224,7 +224,7 @@ buster.testCase("Basic Path finding", { buster.testCase("Extended Path finding", { // 'setUp' : testutils.build_setup({ verbose: true, no_server: true }), - 'setUp' : testutils.build_setup({ verbose: true }), + // 'setUp' : testutils.build_setup({ verbose: true }), // 'setUp' : testutils.build_setup(), 'tearDown' : testutils.build_teardown(), @@ -360,7 +360,7 @@ buster.testCase("Extended Path finding", { }); }, - "=>alternative paths - consume best transfer first" : + "alternative paths - consume best transfer first" : function (done) { var self = this; @@ -408,6 +408,7 @@ buster.testCase("Extended Path finding", { self.remote.transaction() .payment('alice', 'bob', "77/USD/bob") .build_path(true) + .send_max("100/USD/alice") .once('proposed', function (m) { // console.log("proposed: %s", JSON.stringify(m)); callback(m.result !== 'tesSUCCESS'); @@ -419,9 +420,9 @@ buster.testCase("Extended Path finding", { testutils.verify_balances(self.remote, { - "alice" : [ "0/USD/mtgox", "63.63636363636363/USD/bitstamp" ], + "alice" : [ "0/USD/mtgox", "62.3/USD/bitstamp" ], "bob" : [ "70/USD/mtgox", "7/USD/bitstamp" ], - "bitstamp" : [ "-63.63636363636363/USD/alice", "-7/USD/bob" ], + "bitstamp" : [ "-62.3/USD/alice", "-7/USD/bob" ], "mtgox" : [ "0/USD/alice", "-70/USD/bob" ], }, callback);