From 1f0aa8f56ccb19190ba1159246d27cca7c331a05 Mon Sep 17 00:00:00 2001 From: jed Date: Thu, 29 Nov 2012 15:54:59 -0800 Subject: [PATCH 1/2] have remote.js emit all messages --- src/js/remote.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/js/remote.js b/src/js/remote.js index 8ebadb6a2a..89a813a1cd 100644 --- a/src/js/remote.js +++ b/src/js/remote.js @@ -485,13 +485,10 @@ Remote.prototype._connect_message = function (ws, json) { this.emit('ledger_closed', message.ledger_hash, message.ledger_index); break; - // Account subscription event - case 'account': - if (this.trace) utils.logObject("remote: account: %s", message); - break; - + // All other messages default: - unexpected = true; + if (this.trace) utils.logObject("remote: "+message.type+": %s", message); + this.emit(message.type, message); break; } } From 6a889d6ccc724b95971ede38a17c4f99242b3da9 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Thu, 29 Nov 2012 15:56:04 -0800 Subject: [PATCH 2/2] Add missing comma (fix transaction metadata persistence.) --- src/cpp/ripple/DBInit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/ripple/DBInit.cpp b/src/cpp/ripple/DBInit.cpp index 5d88dc5b3b..13d5f7ad6a 100644 --- a/src/cpp/ripple/DBInit.cpp +++ b/src/cpp/ripple/DBInit.cpp @@ -13,7 +13,7 @@ const char *TxnDBInit[] = { FromSeq BIGINT UNSIGNED, \ LedgerSeq BIGINT UNSIGNED, \ Status CHARACTER(1), \ - RawTxn BLOB \ + RawTxn BLOB, \ TxnMeta BLOB \ );", "CREATE TABLE PubKeys ( \