go-ethereum/eth
Martin Holst Swende 9231770811
rpc: change BlockNumber constant values to match ethclient (#27219)
ethclient accepts certain negative block number values as specifiers for the "pending",
"safe" and "finalized" block. In case of "pending", the value accepted by ethclient (-1)
did not match rpc.PendingBlockNumber (-2).

This wasn't really a problem, but other values accepted by ethclient did match the
definitions in package rpc, and it's weird to have this one special case where they don't.

To fix it, we decided to change the values of the constants rather than changing ethclient.
The constant values are not otherwise significant. This is a breaking API change, but we
believe not a dangerous one.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2023-05-23 13:18:38 +02:00
..
catalyst all: tie timestamp based forks to the passage of London (#27279) 2023-05-19 11:27:19 +03:00
downloader eth/downloader: fix error aggregator (#27217) 2023-05-05 08:55:32 +03:00
ethconfig all: remove ethash pow, only retain shims needed for consensus and tests (#27178) 2023-05-03 12:58:39 +03:00
fetcher all: new empty trie with types.EmptyRootHash instead of null (#27230) 2023-05-11 10:19:42 +03:00
filters rpc: change BlockNumber constant values to match ethclient (#27219) 2023-05-23 13:18:38 +02:00
gasprice eth/gasprice: fix typo (#27202) 2023-05-02 04:24:35 -04:00
protocols all: new empty trie with types.EmptyRootHash instead of null (#27230) 2023-05-11 10:19:42 +03:00
tracers eth/tracers: fix flatCallTracer crasher (#27304) 2023-05-23 11:02:50 +02:00
api_backend.go internal/ethapi: remove unused err-return (#27240) 2023-05-11 08:23:47 -04:00
api_test.go all: new empty trie with types.EmptyRootHash instead of null (#27230) 2023-05-11 10:19:42 +03:00
api.go all: remove ethash pow, only retain shims needed for consensus and tests (#27178) 2023-05-03 12:58:39 +03:00
backend.go all: remove ethash pow, only retain shims needed for consensus and tests (#27178) 2023-05-03 12:58:39 +03:00
bloombits.go eth: move eth.Config to a common package (#22205) 2021-02-05 13:51:15 +01:00
handler_eth_test.go eth: use new atomic types (#27137) 2023-04-25 12:06:50 +02:00
handler_eth.go eth: use new atomic types (#27137) 2023-04-25 12:06:50 +02:00
handler_snap.go eth: check snap satelliteness, delegate drop to eth (#22235) 2021-02-02 10:44:36 +02:00
handler_test.go all: cleanup tests (#25641) 2022-09-07 20:21:59 +02:00
handler.go all: remove ethash pow, only retain shims needed for consensus and tests (#27178) 2023-05-03 12:58:39 +03:00
peer.go eth: remove admin.peers[i].eth.head and difficulty (#26804) 2023-03-06 09:27:46 +02:00
peerset.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
state_accessor.go core/types, params: add blob transaction type, RLP encoded for now (#27049) 2023-04-21 12:52:02 +03:00
sync_test.go eth: use new atomic types (#27137) 2023-04-25 12:06:50 +02:00
sync.go eth: use new atomic types (#27137) 2023-04-25 12:06:50 +02:00