Use FastSSZ Everywhere Applicable (#6135)

* use fast ssz anywhere applicable
* use fastssz clearly
* Merge branch 'master' into use-fastssz
* Apply suggestions from code review
* imports
* Update beacon-chain/p2p/fork.go
* Merge branch 'master' into use-fastssz
* update go-ssz
* update go-ssz
* Merge refs/heads/master into use-fastssz
* Merge refs/heads/master into use-fastssz
This commit is contained in:
Raul Jordan
2020-06-05 08:48:40 -05:00
committed by GitHub
parent e37c9d1334
commit 302b0f8c80
51 changed files with 70 additions and 166 deletions

View File

@@ -9,7 +9,6 @@ go_library(
deps = [
"//beacon-chain/cache:go_default_library",
"//beacon-chain/db:go_default_library",
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
],
)

View File

@@ -6,7 +6,6 @@ import (
"io/ioutil"
"os"
"github.com/prysmaticlabs/go-ssz"
"github.com/prysmaticlabs/prysm/beacon-chain/cache"
"github.com/prysmaticlabs/prysm/beacon-chain/db"
)
@@ -38,7 +37,7 @@ func main() {
if gs == nil {
panic("nil genesis state")
}
b, err := ssz.Marshal(gs)
b, err := gs.InnerStateUnsafe().MarshalSSZ()
if err != nil {
panic(err)
}