mirror of
https://github.com/tornadocash/tornado-cli.git
synced 2024-11-22 01:37:08 +01:00
Change xDai to GnosisChain
This commit is contained in:
parent
00ca8a07f7
commit
394d487cb8
@ -230,15 +230,15 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
|
||||
"netId100":{
|
||||
"rpcUrls":{
|
||||
"publicRpc":{
|
||||
"name":"xDAI Chain RPC",
|
||||
"url":"https://rpc.xdaichain.com"
|
||||
"name":"Gnosis Chain RPC",
|
||||
"url":"https://rpc.gnosischain.com"
|
||||
},
|
||||
"publicRpc2":{
|
||||
"name":"xDAI Chain RPC2",
|
||||
"name":"Gnosis Chain RPC2",
|
||||
"url":"https://xdai.poanetwork.dev"
|
||||
},
|
||||
"publicRpc3":{
|
||||
"name":"xDAI Chain RPC3",
|
||||
"name":"Gnosis Chain RPC3",
|
||||
"url":"https://dai.poa.network/"
|
||||
}
|
||||
},
|
||||
|
4
cli.js
4
cli.js
@ -581,7 +581,7 @@ function getCurrentNetworkName() {
|
||||
case 56:
|
||||
return 'BinanceSmartChain'
|
||||
case 100:
|
||||
return 'xDai'
|
||||
return 'GnosisChain'
|
||||
case 137:
|
||||
return 'Polygon'
|
||||
case 42161:
|
||||
@ -822,7 +822,7 @@ async function fetchEvents({ type, currency, amount}) {
|
||||
const updatedEvents = await initJson(fileName);
|
||||
const updatedBlock = updatedEvents[updatedEvents.length - 1].blockNumber
|
||||
console.log("Cache updated for Tornado",type,amount,currency,"instance to block",updatedBlock,"successfully")
|
||||
console.log('Total events:', updatedEvents.length)
|
||||
console.log(`Total ${type}s:`, updatedEvents.length)
|
||||
return updatedEvents;
|
||||
}
|
||||
const events = await loadUpdatedEvents();
|
||||
|
Loading…
Reference in New Issue
Block a user