Summary generated by Reviewpad on 20 Jul 23 20:52 UTC
This pull request includes the following changes:
Added a new function GetTreeHashes in the trees.go file.
Added import statements in various files.
Added functions and tests related to preparing and inserting blocks, getting validator set hashes, and hashing validator set.
Added a test function TestTreeStore_GetTreeHashes in the trees_test.go file.
Made changes to the block.proto file including updating the BlockHeader message, adding the ValidatorSet message, and adding the ValidatorIdentity message.
Added a method GetTreeHashes in the treestore_module.go file.
Made changes to the openapi.yaml file related to the "Block" schema.
Added a new function GetValidatorSet in the actor.go file.
Made changes to the actor_test.go file related to importing packages and adding test functions.
Made changes to the rpc/utils.go file related to adding fields to the BlockHeader struct in the blockToRPCBlock function.
Added a new method GetValidatorSet to the PersistenceReadContext interface in the persistence_module.go file.
Issue
Fixes N/A
Type of change
Please mark the relevant option(s):
[x] New feature, functionality or library
[ ] Bug fix
[ ] Code health or cleanup
[ ] Major breaking change
[ ] Documentation
[ ] Other
List of changes
Adds state tree hashes as a map to the block header
Add next validator set hash to the block header
Testing
[x] make develop_test; if any code changes were made
[x] make test_e2e on k8s LocalNet; if any code changes were made
[x] e2e-devnet-test passes tests on DevNet; if any code was changed
Description
Summary generated by Reviewpad on 20 Jul 23 20:52 UTC
This pull request includes the following changes:
GetTreeHashes
in thetrees.go
file.TestTreeStore_GetTreeHashes
in thetrees_test.go
file.block.proto
file including updating theBlockHeader
message, adding theValidatorSet
message, and adding theValidatorIdentity
message.GetTreeHashes
in thetreestore_module.go
file.openapi.yaml
file related to the "Block" schema.GetValidatorSet
in theactor.go
file.actor_test.go
file related to importing packages and adding test functions.rpc/utils.go
file related to adding fields to theBlockHeader
struct in theblockToRPCBlock
function.GetValidatorSet
to thePersistenceReadContext
interface in thepersistence_module.go
file.Issue
Fixes N/A
Type of change
Please mark the relevant option(s):
List of changes
Testing
make develop_test
; if any code changes were mademake test_e2e
on k8s LocalNet; if any code changes were madee2e-devnet-test
passes tests on DevNet; if any code was changedRequired Checklist
godoc
format comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*
if I updatedshared/*
README(s)