From 96a09cf478c1eaa5870729c4a3f5987be59b5100 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Wed, 15 Jun 2022 13:39:40 +0200 Subject: [PATCH] Setup fiat rates downloader for Ethereum Archive --- bchain/coins/blockchain.go | 1 + configs/coins/ethereum_archive.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bchain/coins/blockchain.go b/bchain/coins/blockchain.go index 33b996e9..6172bf55 100644 --- a/bchain/coins/blockchain.go +++ b/bchain/coins/blockchain.go @@ -68,6 +68,7 @@ func init() { BlockChainFactories["Zcash"] = zec.NewZCashRPC BlockChainFactories["Zcash Testnet"] = zec.NewZCashRPC BlockChainFactories["Ethereum"] = eth.NewEthereumRPC + BlockChainFactories["Ethereum Archive"] = eth.NewEthereumRPC BlockChainFactories["Ethereum Classic"] = eth.NewEthereumRPC BlockChainFactories["Ethereum Testnet Ropsten"] = eth.NewEthereumRPC BlockChainFactories["Ethereum Testnet Ropsten Archive"] = eth.NewEthereumRPC diff --git a/configs/coins/ethereum_archive.json b/configs/coins/ethereum_archive.json index 313d800d..d47eaaba 100644 --- a/configs/coins/ethereum_archive.json +++ b/configs/coins/ethereum_archive.json @@ -55,8 +55,8 @@ "processInternalTransactions": true, "queryBackendOnMempoolResync": false, "fiat_rates": "coingecko", - "fiat_rates_params": "{\"url\": \"https://api.coingecko.com/api/v3\", \"coin\": \"ethereum\", \"periodSeconds\": 60}", - "4byteSignatures": "https://www.4byte.directory/api/v1/signatures/" + "fiat_rates_params": "{\"url\": \"https://api.coingecko.com/api/v3\", \"coin\": \"ethereum\",\"platformIdentifier\": \"ethereum\",\"platformVsCurrency\": \"eth\",\"periodSeconds\": 900}", + "fourByteSignatures": "https://www.4byte.directory/api/v1/signatures/" } } },