Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Make it possible to calculate the storage root as often as you want #7714

Merged
merged 5 commits into from
Dec 21, 2020

Commits on Dec 10, 2020

  1. Make it possible to calculate the storage as often as you want

    So, until now each Substrate based blockchain has calculated the storage
    root once, at the end of the block. Now there is Frontier that wants to
    calculate some intermediate storage root. However this failed on block
    import. The problem with that was the extrinsics root. When building the
    block we stored `Default::default()` as extrinsics root, because yeah,
    we don't know the extrinsics root before finishing the block. At the end
    this extrinsics root was then calculated. But on block import we passed
    the already known extrinsics root. This was no problem, as we removed
    this value at the end of the block. However when you all the storage
    root in between, that changes the storage root between block building
    and block import.
    
    This pr changes this behavior. It removes the `ExtrinsicsRoot` storage
    entry and also doesn't pass it anymore to `System::initialize`. By doing
    it, we remove the difference in the storage and fix the storage root mismatch.
    bkchr committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    def70f0 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2020

  1. Configuration menu
    Copy the full SHA
    75efe93 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bc5e925 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2020

  1. Review feedback

    bkchr committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    1b4f0e8 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2020

  1. Configuration menu
    Copy the full SHA
    12b1651 View commit details
    Browse the repository at this point in the history