Browse Source

Support for XSN and activate Sapling for Komodo

gre-patch-1
KhalilBellakrid 6 years ago
parent
commit
00996e5aa9
No known key found for this signature in database GPG Key ID: 832CFB62DD2E7D24
  1. 2
      package.json
  2. 4
      src/commands/libcoreSignAndBroadcast.js
  3. 1
      src/config/cryptocurrencies.js

2
package.json

@ -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",

4
src/commands/libcoreSignAndBroadcast.js

@ -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 => {

1
src/config/cryptocurrencies.js

@ -24,6 +24,7 @@ const supported: CryptoCurrencyIds[] = [
'vertcoin',
'peercoin',
'viacoin',
'stakenet',
'stealthcoin',
'poswallet',
'clubcoin',

Loading…
Cancel
Save