meriadec
6 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
1 additions and
4 deletions
-
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( |
|
|
|