near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
124 stars 56 forks source link

Add check to circulating supply migration if we are on the mainnet #148

Closed telezhnaya closed 3 years ago

telezhnaya commented 3 years ago

https://github.com/near/near-indexer-for-explorer/blob/master/migrations/2021-08-04-151515_circulating_supply_table/up.sql

We don't need to create these entities on testnet

frol commented 3 years ago

While it is not ideal, I think it will only make things more complicated if we define "mainnet"-only migrations or something like that. There is no technical limitation of testnet, and it just does not make sense to collect those stats there, so we save some cycles, but it is fine to have the table.