Skip to content

Commit

Permalink
fix VerifiedBlockchain._getVerifiedTx
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Nov 24, 2014
1 parent 1e8ddaa commit 5dc7146
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"browser-request": "^0.3.2",
"bs58": "^2.0.0",
"buffer-equal": "0.0.1",
"coloredcoinjs-lib": "git://github.com/chromaway/coloredcoinjs-lib.git#v0.0.10",
"coloredcoinjs-lib": "git://github.com/chromaway/coloredcoinjs-lib.git#v0.0.11",
"delayed": "^1.0.1",
"errno": "^0.1.1",
"lodash": "^2.4.1",
Expand Down
8 changes: 4 additions & 4 deletions src/blockchain/VerifiedBlockchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,12 @@ VerifiedBlockchain.prototype._getVerifiedTx = function(txId) {

var self = this

var tx = self._txCache.get(txId)
if (!_.isUndefined(tx))
return Q(tx)
var cachedResult = self._txCache.get(txId)
if (!_.isUndefined(cachedResult))
return Q(cachedResult.tx)

if (_.isUndefined(self._getVerifiedTxRunning[txId])) {
var height, merkleRoot
var tx, height, merkleRoot

var promise = self._getTx(txId).then(function(result) {
tx = result
Expand Down
2 changes: 1 addition & 1 deletion src/tx/OperationalTx.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ OperationalTx.prototype.getDustThreshold = function() {

/*
* @param {ColorValue}
* @param {?Object} [feeEstimator=null]
* @param {?Object} feeEstimator
* @param {OperationalTx~selectCoins} cb
*/
OperationalTx.prototype.selectCoins = function(colorValue, feeEstimator, cb) {
Expand Down

0 comments on commit 5dc7146

Please sign in to comment.