Browse Source
Support for XSN and activate Sapling for Komodo
gre-patch-1
KhalilBellakrid
6 years ago
No known key found for this signature in database
GPG Key ID: 832CFB62DD2E7D24
3 changed files with
4 additions and
3 deletions
-
package.json
-
src/commands/libcoreSignAndBroadcast.js
-
src/config/cryptocurrencies.js
|
|
@ -40,7 +40,7 @@ |
|
|
|
"@ledgerhq/hw-app-xrp": "^4.32.0", |
|
|
|
"@ledgerhq/hw-transport": "^4.32.0", |
|
|
|
"@ledgerhq/hw-transport-node-hid": "^4.32.0", |
|
|
|
"@ledgerhq/ledger-core": "2.0.0-rc.14", |
|
|
|
"@ledgerhq/ledger-core": "2.0.0-rc.15", |
|
|
|
"@ledgerhq/live-common": "4.13.0", |
|
|
|
"animated": "^0.2.2", |
|
|
|
"async": "^2.6.1", |
|
|
|
|
|
@ -110,7 +110,7 @@ async function signTransaction({ |
|
|
|
const additionals = [] |
|
|
|
let expiryHeight |
|
|
|
if (currency.id === 'bitcoin_cash' || currency.id === 'bitcoin_gold') additionals.push('bip143') |
|
|
|
if (currency.id === 'zcash') { |
|
|
|
if (currency.id === 'zcash' || currency.id === 'komodo') { |
|
|
|
expiryHeight = Buffer.from([0x00, 0x00, 0x00, 0x00]) |
|
|
|
if (blockHeight >= 419200) { |
|
|
|
additionals.push('sapling') |
|
|
@ -121,7 +121,7 @@ async function signTransaction({ |
|
|
|
} |
|
|
|
const rawInputs = transaction.getInputs() |
|
|
|
|
|
|
|
const hasExtraData = currency.id === 'zcash' |
|
|
|
const hasExtraData = currency.id === 'zcash' || currency.id === 'komodo' |
|
|
|
|
|
|
|
const inputs = await Promise.all( |
|
|
|
rawInputs.map(async input => { |
|
|
|
|
|
@ -24,6 +24,7 @@ const supported: CryptoCurrencyIds[] = [ |
|
|
|
'vertcoin', |
|
|
|
'peercoin', |
|
|
|
'viacoin', |
|
|
|
'stakenet', |
|
|
|
'stealthcoin', |
|
|
|
'poswallet', |
|
|
|
'clubcoin', |
|
|
|