Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 73a3cce

Browse files
wltsmrzgeertweening
authored andcommittedDec 10, 2014
Do not bump LastLedgerSequence on resubmit
1 parent d5ef477 commit 73a3cce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/js/ripple/transactionmanager.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,9 @@ TransactionManager.prototype._request = function(tx) {
588588
}
589589

590590
if (!tx._setLastLedger) {
591-
// Honor LastLedgerSequence set by user of API. If left unset by API, bump
592-
// LastLedgerSequence
593-
tx.tx_json.LastLedgerSequence = tx.submitIndex + this._lastLedgerOffset;
591+
// Honor LastLedgerSequence set with tx.lastLedger()
592+
tx.tx_json.LastLedgerSequence = tx.initialSubmitIndex
593+
+ this._lastLedgerOffset;
594594
}
595595

596596
tx.lastLedgerSequence = tx.tx_json.LastLedgerSequence;

0 commit comments

Comments
 (0)
Please sign in to comment.