Skip to content

Commit

Permalink
difficulty now working, remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rpl-ffl committed Sep 19, 2024
1 parent ce980a3 commit 8891cdb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions protobuf/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,6 @@ func (entry *Substate_Account_StorageEntry) decode() (types.Hash, types.Hash, er

// decode converts protobuf-encoded Substate_BlockEnv into aida-comprehensible Env
func (env *Substate_BlockEnv) decode() (*substate.Env, error) {
/*
var difficulty *big.Int = nil
//if env.GetDifficulty() != nil && env.GetRandom() == nil {
if env.GetDifficulty() != nil {
difficulty = types.BytesToBigInt(env.GetDifficulty())
}
*/

var blockHashes map[uint64]types.Hash = nil
if env.GetBlockHashes() != nil {
blockHashes = make(map[uint64]types.Hash, len(env.GetBlockHashes()))
Expand Down

0 comments on commit 8891cdb

Please sign in to comment.