Skip to content

Commit

Permalink
Fix usage of bitcoinjs lib
Browse files Browse the repository at this point in the history
  • Loading branch information
caedesvvv committed Oct 19, 2014
1 parent e7695e8 commit 8f91152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/backend/services/mixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ function(Port, Channel, Protocol, Bitcoin, CoinJoin, BtcUtils, CryptoJS) {
var tx = Bitcoin.Transaction.fromHex(txHex);
var pending = tx.ins.length;
tx.ins.forEach(function(anIn) {
console.log("[mixer] check tx", anIn.outpoint.hash);
if (identity.wallet.wallet.outputs[Bitcoin.bufferutils.reverse(anIn.hash).toString()+":"+anIn.outpoint.index]) {
console.log("[mixer] check tx", Bitcoin.bufferutils.reverse(anIn.hash).toString('hex'));
if (identity.wallet.wallet.outputs[Bitcoin.bufferutils.reverse(anIn.hash).toString('hex')+":"+anIn.outpoint.index]) {
// this is our own input
return;
}
Expand Down

0 comments on commit 8f91152

Please sign in to comment.