-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Blockchain Interfaces WIP * Added multihash package to retrieve blake2b hash * Added sort_key method for Ticket struct * Added equals method for TipSetKeys struct type * WIP for Tipset new fn * WIP cid method for block type which would return CID of block * New Tipset fn WIP * Added new conditional checks as per spec update * WIP sorted and compare logic for ticket size * Fix cid method for blockHeader * WIP new fn tests * Added unit tests * Added unit tests for tipset methods * WIP tipset new fn * Added unit tests * Added unit tests for tipset methods * Added tipset new logic * Added new tipset logic, includes conditional checks and sorting based on ticket size * Added unit tests for tipset methods * Added cid fn although it is incomplete as we need cbor encoding * Fixed equals fn * Fixed equals fn check * Linted * Remove typo * Made requested changes * Updated multihash to specific version * Removed extern crate statement * Improved commenting * Updated sort statement * Improved unit test setup * Updated error messages for tipset condition checks * Made requested changes * Updated cid reference * Removed pub from mod.rs * Requested changes made * Updated error to handle String * Removed unnecessary import * Removed sort_key method for Ticket * Requested changes made * Removed dead code and unused variable tag * Remove reverse in sort * improved tests
- Loading branch information
1 parent
f777233
commit 9fba7d9
Showing
6 changed files
with
274 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/target | ||
**/*.rs.bk | ||
/Cargo.lock | ||
/Cargo.lock | ||
.idea/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ edition = "2018" | |
vm = {path = "../vm"} | ||
address = {path = "../vm/address"} | ||
cid = "0.3.1" | ||
multihash = "0.8.0" |
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.