mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Fix ineffectual assignments (#7403)
* update rpc/beacon * more fixes to beacon-chain/rpc * update beacon-chain/sync * Merge refs/heads/master into fix-ineffectual-assignments * updates beacon-chain/p2p * Merge branch 'fix-ineffectual-assignments' of github.com:prysmaticlabs/prysm into fix-ineffectual-assignments * update beacon-chain/* * fix imports * update beacon-chain/blockchain * more updates * Merge refs/heads/master into fix-ineffectual-assignments * Merge branch 'master' into fix-ineffectual-assignments * Merge refs/heads/master into fix-ineffectual-assignments * next round of updated * Merge branch 'fix-ineffectual-assignments' of github.com:prysmaticlabs/prysm into fix-ineffectual-assignments * wrap up remaining items
This commit is contained in:
@@ -102,6 +102,9 @@ func decrypt(cliCtx *cli.Context) error {
|
||||
// Any password is valid.
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
isDir, err := fileutil.HasDir(fullPath)
|
||||
if err != nil {
|
||||
@@ -139,6 +142,9 @@ func encrypt(cliCtx *cli.Context) error {
|
||||
// Any password is valid.
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
privateKeyString := cliCtx.String(privateKeyFlag.Name)
|
||||
if privateKeyString == "" {
|
||||
|
||||
@@ -177,6 +177,9 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
postRoot, err := postState.HashTreeRoot(context.Background())
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
log.Infof("Finished state transition with post state root of %#x", postRoot)
|
||||
|
||||
// Diff the state if a post state is provided.
|
||||
|
||||
Reference in New Issue
Block a user