cosmos / iavl

Merkleized IAVL+ Tree implementation in Go
Apache License 2.0
417 stars 263 forks source link

refactor: Drop error results from functions that never fail #777

Closed elias-orijtech closed 1 year ago

elias-orijtech commented 1 year ago

The hashing procedure can never fail, and not returning an error frees up callers from worrying about it.

Also includes a performance optimization.

Fixes #757. Fixes #756.

CC @odeke-em

tac0turtle commented 1 year ago

could we get a changelog for the api break also linting is failing

elias-orijtech commented 1 year ago

could we get a changelog for the api break also linting is failing

Done.

tac0turtle commented 1 year ago

could we fix the linting issues as well please