mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 02:01:02 +00:00
srml-contracts: Avoid unnecessary lookups during call context initialization (#3121)
* srml-contracts: Remove lookups during CallContext initialization. * Bump node runtime impl_version.
This commit is contained in:
committed by
Sergei Pepyakin
parent
8e09338e27
commit
eea9437805
@@ -174,15 +174,19 @@ Assuming marshaled size of a balance value is of the constant size we can neglec
|
||||
|
||||
## Initialization
|
||||
|
||||
Before a call or create can be performed the execution context must be initialized. This involves
|
||||
two calls:
|
||||
Before a call or create can be performed the execution context must be initialized.
|
||||
|
||||
For the first call or instantiation in the handling of an extrinsic, this involves two calls:
|
||||
|
||||
1. `<timestamp::Module<T>>::now()`
|
||||
2. `<system::Module<T>>::block_number()`
|
||||
|
||||
the complexity of initialization depends on the complexity of these functions. In the current
|
||||
The complexity of initialization depends on the complexity of these functions. In the current
|
||||
implementation they just involve a DB read.
|
||||
|
||||
For subsequent calls and instantiations during contract execution, the initialization requires no
|
||||
expensive operations.
|
||||
|
||||
## Call
|
||||
|
||||
This function receives input data for the contract execution. The execution consists of the following steps:
|
||||
|
||||
Reference in New Issue
Block a user