HomeSource World

common: remove ToHex and ToHexArray (#21610)

Description

common: remove ToHex and ToHexArray (#21610)

ToHex was deprecated a couple years ago. The last remaining use
was in ToHexArray, which itself only had a single call site.

This just moves ToHexArray near its only remaining call site and
implements it using hexutil.Encode. This changes the default behaviour
of ToHexArray and with it the behaviour of eth_getProof. Previously we
encoded an empty slice as 0, now the empty slice is encoded as 0x.

Details

Provenance
Marius van der Wijden <m.vanderwijden@live.de>Authored on Wed, Nov 4, 10:20 AM
GitHub <noreply@github.com>Committed on Wed, Nov 4, 10:20 AM
Parents
rGETHb63bffe8202d: les, p2p/simulations/adapters: fix issues found while simulating les (#21761)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETH3eebf340386d: common: remove ToHex and ToHexArray (#21610) (authored by Marius van der Wijden <m.vanderwijden@live.de>).Wed, Nov 4, 10:20 AM