CodeChain-io / codechain-indexer

A blockchain data indexing tool for CodeChain
Apache License 2.0
21 stars 15 forks source link

Hard-coded min fee not works in private network or test network #369

Open majecty opened 4 years ago

majecty commented 4 years ago

Indexer hardcode min fee in static distribution code. It works for the CodeChain Main network, but not works for test networks or private networks.

https://github.com/CodeChain-io/codechain-indexer/blob/4a4006a66eadce67bd6214e94dc2d73d849bd741/src/worker/staticFeeDistribution.ts#L117

Indexer queries the min fees in the dynamic fee calculation. It seems that (not confident) CodeChain before 2.0 does not have a feature that queries the min fee.