-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass code_hash to ContractCode when it's available (#3102)
Don't re-hash a contract code after a read if the `code_hash` is already available in the account ID. The only place to rehash is when `apply_genesis_records` is called. Ref: #3094 ## Test plan: - [x] CI - [x] Run fee estimator again. To compare. **this PR** ```rust data_receipt_creation_config: DataReceiptCreationConfig { base_cost: Fee { send_sir: 1035057529250, send_not_sir: 1035057529250, execution: 1035057529250, }, cost_per_byte: Fee { send_sir: 23636040, send_not_sir: 23636040, execution: 23636040, }, }, ``` vs ```rust data_receipt_creation_config: DataReceiptCreationConfig { base_cost: Fee { send_sir: 4697339419375, send_not_sir: 4697339419375, execution: 4697339419375, }, cost_per_byte: Fee { send_sir: 59357464, send_not_sir: 59357464, execution: 59357464, }, }, ``` **this PR** ```rust function_call_cost: Fee { send_sir: 1185240500000, send_not_sir: 1185240500000, execution: 1185240500000, }, function_call_cost_per_byte: Fee { send_sir: 1158368, send_not_sir: 1158368, execution: 1158368, }, ``` vs ```rust function_call_cost: Fee { send_sir: 2319861500000, send_not_sir: 2319861500000, execution: 2319861500000, }, function_call_cost_per_byte: Fee { send_sir: 2235934, send_not_sir: 2235934, execution: 2235934, }, ```
- Loading branch information
Evgeny Kuzyakov
authored
Aug 9, 2020
1 parent
b26a0da
commit 7ee16b5
Showing
7 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters