From 00996e5aa930708429a9229f5f5e7ca2fb23b8b0 Mon Sep 17 00:00:00 2001 From: KhalilBellakrid Date: Thu, 3 Jan 2019 23:36:25 +0100 Subject: [PATCH] Support for XSN and activate Sapling for Komodo --- package.json | 2 +- src/commands/libcoreSignAndBroadcast.js | 4 ++-- src/config/cryptocurrencies.js | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e342f101..2c9a4a14 100644 --- a/package.json +++ b/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", diff --git a/src/commands/libcoreSignAndBroadcast.js b/src/commands/libcoreSignAndBroadcast.js index b683a58b..a5847864 100644 --- a/src/commands/libcoreSignAndBroadcast.js +++ b/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 => { diff --git a/src/config/cryptocurrencies.js b/src/config/cryptocurrencies.js index c29ccbc7..4c29f7b3 100644 --- a/src/config/cryptocurrencies.js +++ b/src/config/cryptocurrencies.js @@ -24,6 +24,7 @@ const supported: CryptoCurrencyIds[] = [ 'vertcoin', 'peercoin', 'viacoin', + 'stakenet', 'stealthcoin', 'poswallet', 'clubcoin',