mirror of https://github.com/ethereum/go-ethereum
rpc: use correct stringer-method for serializing BlockNumberOrHash (#28358)
The String() version of BlockNumberOrHash uses decimal for all block numbers, including negative ones used to indicate labels. Switch to using BlockNumber.String() which encodes it correctly for use in the JSON-RPC API.pull/28416/head
parent
f7b62e5506
commit
d8c6ae054c
Loading…
Reference in new issue