Browse Source

Correctly build additionals for decred

gre-patch-1
meriadec 6 years ago
parent
commit
b00325b5fc
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 5
      src/commands/libcoreSignAndBroadcast.js

5
src/commands/libcoreSignAndBroadcast.js

@ -117,6 +117,7 @@ async function signTransaction({
}
} else if (currency.id === 'decred') {
expiryHeight = Buffer.from([0x00, 0x00, 0x00, 0x00])
additionals.push('decred')
}
const rawInputs = transaction.getInputs()
@ -124,10 +125,6 @@ async function signTransaction({
const inputs = await Promise.all(
rawInputs.map(async input => {
const additionals = []
if (currency.id === 'decred') {
additionals.push('decred')
}
const rawPreviousTransaction = await input.getPreviousTransaction()
const hexPreviousTransaction = Buffer.from(rawPreviousTransaction).toString('hex')
const previousTransaction = hwApp.splitTransaction(

Loading…
Cancel
Save