Skip to content

Commit

Permalink
CheckWeight re-implemented on polymesh
Browse files Browse the repository at this point in the history
  • Loading branch information
fmiguelgarcia committed Feb 2, 2021
1 parent ac38bf3 commit cf4f97d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Substrate is a next-generation framework for blockchain innovation 🚀.

## Polymath changelog

### [v2.0.1-1] - 2021-01-26
### [v2.0.1-1] - 2021-02-02
#### Changed
- Transactions are now ordered by its `priority` and its `insertion_id`.
- `frame_system::weights` is public.
- `CheckWeight` can be re-implemented external projects.

## Trying it out

Expand Down
4 changes: 2 additions & 2 deletions frame/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@ decl_storage! {
ExtrinsicCount: Option<u32>;

/// The current weight for the block.
BlockWeight get(fn block_weight): weights::ExtrinsicsWeight;
pub BlockWeight get(fn block_weight): weights::ExtrinsicsWeight;

/// Total length (in bytes) for all extrinsics put together, for the current block.
AllExtrinsicsLen: Option<u32>;
pub AllExtrinsicsLen: Option<u32>;

/// Map of block numbers to block hashes.
pub BlockHash get(fn block_hash) build(|_| vec![(T::BlockNumber::zero(), hash69())]):
Expand Down

0 comments on commit cf4f97d

Please sign in to comment.