Skip to content

Commit

Permalink
cost model table fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dostrelith678 committed Dec 2, 2021
1 parent fdef182 commit a185d2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/grest/rpc/_cached_tables/epoch_info_cache.sql
Expand Up @@ -71,7 +71,7 @@ INSERT INTO grest.epoch_info_cache SELECT DISTINCT ON (b.time)
ep.min_pool_cost AS p_min_pool_cost,
ENCODE(ep.nonce, 'hex') AS p_nonce,
ENCODE(b.hash, 'hex') AS p_block_hash,
ep.cost_models AS p_cost_models,
cm.costs AS p_cost_models,
ep.price_mem AS p_price_mem,
ep.price_step AS p_price_step,
ep.max_tx_ex_mem AS p_max_tx_ex_mem,
Expand All @@ -85,6 +85,7 @@ INSERT INTO grest.epoch_info_cache SELECT DISTINCT ON (b.time)
FROM
epoch e
LEFT JOIN epoch_param ep ON ep.epoch_no = e.no
LEFT JOIN cost_model cm ON cm.id = ep.cost_model_id
INNER JOIN block b ON b.time = e.start_time
ORDER BY
b.time ASC,
Expand Down

0 comments on commit a185d2b

Please sign in to comment.