-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1356: refactor: Add CellDep and change OutPoint data structure r=TheWaWaR a=TheWaWaR 1. Add a new `CellDep` data structure, and changed `Transaction`: ``` rust // For support dep group pub struct CellDep { out_point: OutPoint, is_dep_group: bool, } // deps changed to cell_deps and header_deps pub struct Transaction { // ... cell_deps: Vec<CellDep>, header_deps: Vec<H256>, // ... } ``` 2. `OutPoint` data structure renamed from origin `CellOutPoint`. 3. `HeaderProvider` changed to `HeaderChecker` because header now lazy loaded. 4. `SourceEntry` rename `Dep` to `CellDep` and add a new variant `CellHeader`, you can load `CellHeader` from `deps.headers` by index in VM. ``` rust enum SourceEntry { Input, Output, // Cell dep CellDep, // Header dep CellHeader, } ``` Co-authored-by: Linfeng Qian <[email protected]> Co-authored-by: Qian Linfeng <[email protected]>
- Loading branch information
Showing
62 changed files
with
2,145 additions
and
2,271 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.