|
def gas_price(self, token_id: int) -> Optional[int]: |
The current estimation will estimate based on the historical gas price of the same token id, which may be empty or small if the token id is not frequently used. A better way may still estimate the price for QKC first and then convert to the price for token id.
Further, returning MIN_TX_POOL_GAS_PRICE for other token ids other than QKC may be wrong.
pyquarkchain/quarkchain/cluster/shard_state.py
Line 1777 in d470e13
The current estimation will estimate based on the historical gas price of the same token id, which may be empty or small if the token id is not frequently used. A better way may still estimate the price for QKC first and then convert to the price for token id.
Further, returning MIN_TX_POOL_GAS_PRICE for other token ids other than QKC may be wrong.