Skip to content

Commit

Permalink
update ledger tool to restore cost table from blockstore (#18489)
Browse files Browse the repository at this point in the history
* update ledger tool to restore cost model from blockstore when compute-slot-cost

* Move initialize_cost_table into cost_model, so the function can be tested and shared between validator and ledger-tool

* refactor and simplify a test

(cherry picked from commit b6dff12)

# Conflicts:
#	core/src/cost_model.rs
#	core/src/validator.rs
#	ledger-tool/src/main.rs
  • Loading branch information
tao-stones authored and mergify-bot committed Jul 15, 2021
1 parent 940c473 commit d274a93
Show file tree
Hide file tree
Showing 3 changed files with 565 additions and 0 deletions.
Loading

0 comments on commit d274a93

Please sign in to comment.