Skip to content

Commit

Permalink
fix(BCH - Split): Revert back to SIGHASH_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Nov 21, 2018
1 parent c00a27e commit 9347ab5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/blockchain-wallet-v4/src/signer/bch.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as crypto from '../walletCrypto'

export const signSelection = curry((network, coinDust, selection) => {
const hashType =
BitcoinCash.Transaction.SIGHASH_SINGLE |
BitcoinCash.Transaction.SIGHASH_ALL |
BitcoinCash.Transaction.SIGHASH_BITCOINCASHBIP143
const tx = new BitcoinCash.TransactionBuilder(network)
tx.enableBitcoinCash(true)
Expand Down Expand Up @@ -72,13 +72,13 @@ export const wifToKeys = curry((network, selection) =>
)

// signWithWIF :: network -> selection -> selection
export const signWithWIF = curry((network, coinDust, selection) => {
return compose(
export const signWithWIF = curry((network, coinDust, selection) =>
compose(
signSelection(network, coinDust),
sortSelection,
wifToKeys(network)
)(selection)
})
)

export const signWithLockbox = function*(
selection,
Expand Down

0 comments on commit 9347ab5

Please sign in to comment.