github celestiaorg/celestia-node v0.4.1
v0.4.1 - Bug fixes for `namespaceHasher` and `CoreAccessor`

latest releases: v0.17.0-rc8, v0.16.0-beta.0, v0.17.0-rc7...
23 months ago

This patch release contains a two bug fixes for issues found during testing on v0.4.0.

  1. namespaceHasher.Write's error is not properly handled for, so in the case that data comes in that is of an unexpected length, the error is not caught and causes a panic. To remedy that, namespaceHasher.Sum now returns nil in the case that the data is empty such that multihash.encodeHash will catch it and an error will be returned.

  2. CoreAccessor used the context passed into it from construction to manage its lifecycle which was incorrect as that context should only be used for the start operation rather than the management of its lifecycle. CoreAccessor now manages its own context internally to the component.

What's Changed

IMPROVEMENTS

  • refactor(rpc): move sanity check logic from rpc handlers to implementations. by @HoytRen in #1213

BUG FIXES

  • fix: returning nil sum when hasher receives data with incorrect length by @distractedm1nd in #1245
  • fix(state): CoreAccessor manages its own context by @renaynay in #1247

MISC

  • .github: add triggering on versioned tags by @MSevey in #1237
  • refactor(share/ipld): Use consts for node type determination by @renaynay in #1244

Full Changelog: v0.4.0...v0.4.1

Don't miss a new celestia-node release

NewReleases is sending notifications on new releases.