From 687bcc8539f480319c5d4c49f0647c67dcb97d2a Mon Sep 17 00:00:00 2001 From: wltsmrz Date: Tue, 18 Mar 2014 16:35:01 -0700 Subject: [PATCH] Add HISTORY.md --- HISTORY.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 HISTORY.md diff --git a/HISTORY.md b/HISTORY.md new file mode 100644 index 00000000..95a330bb --- /dev/null +++ b/HISTORY.md @@ -0,0 +1,45 @@ + +##0.7.35 + ++ `LastLedgerSequence` is set by default on outgoing transactions. This refers to the last valid ledger index (AKA sequence) for a transaction. By default, this index is set to the current index (at submission time) plus 8. In theory, this allows ripple-lib to deterministically fail a transaction whose submission request timed out, but whose associated server continues to emit ledger_closed events. + ++ Transactions that err with `telINSUF_FEE_P` will be automatically resubmitted. This error indicates that the `Fee` supplied in the transaction submission request was inadquate. Ideally, the `Fee` is tracked by ripple-lib in real-time, and the resubmitted transaction will most likely succeed. + ++ Added Transaction.iff(`Function`). Function expects first argument to be an Error or null, second argument is a boolean which indicates whether or not to proceed with the transaction submission. If an `iff` function is specified, it will be executed prior to every submission of the transaction (including resubmissions). + ++ Transactions will now emit `presubmit` and `postsubmit` events. They will be emitted before and after a transaction is submitted, respectively. + ++ Added Transaction.summary(). Returns a summary of a transaction in semi-human-readable form. JSON-stringifiable. + ++ Remote.requestAccountTx() with `binary: true` will automatically parse transactions. + ++ Added Remote.requestAccountTx filter, map, and reduce. + +```js + remote.requestAccountTx({ + account: 'retc', + ledger_index_min: -1, + ledger_index_max: -1, + limit: 100, + binary: true, + + filter: function(transaction) { + return transaction.tx.TransactionType === 'Payment'; + }, + + map: function(transaction) { + return Number(transaction.tx.Amount); + }, + + reduce: function(a, b) { + return a + b; + }, + + pluck: 'transactions' + }, console.log) +``` + ++ Added persistence hooks. + ++ General performance improvements, especially for long-running processes. +