Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions eth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,13 +376,10 @@
return nil, fmt.Errorf("failed to validate block %d: %w", block.Number(), err)
}

if err = testWitness(blockchain, block, witness); err != nil {
return nil, err
}
return witness, nil
}

func testWitness(blockchain *core.BlockChain, block *types.Block, witness *stateless.Witness) error {

Check failure on line 382 in eth/api.go

View workflow job for this annotation

GitHub Actions / check

`testWitness` is unused (deadcode)
stateRoot := witness.Root()
diskRoot, err := rawdb.ReadDiskStateRoot(blockchain.Database(), stateRoot)
if err != nil && !errors.Is(err, leveldb.ErrNotFound) {
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
const (
VersionMajor = 5 // Major version component of the current release
VersionMinor = 9 // Minor version component of the current release
VersionPatch = 4 // Patch version component of the current release
VersionPatch = 5 // Patch version component of the current release
VersionMeta = "mainnet" // Version metadata to append to the version string
)

Expand Down
Loading