Files
status-linea-besu/consensus
Gabriel Fukushima 9ceebc4a57 Replace getByBlockNumber by getByBlockHeader (#5020)
* Replace getByBlockNumber by getByBlockHeader where trivial

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* Fix tests

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* Fix tests

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* Rolledback change since tests will need non trivial changes

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* Rollback replace

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* Change other 2 trivial tests

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* spotless

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* Pass ProcessableBlockHeader to the mocks

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* Replace getByBlockNumber by getByBlockHeader

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* Add mock of blockHeader

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* Use any() for the tests

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

* Add unit test for headBlockHeader()

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>

---------

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
2023-02-06 07:37:58 +11:00
..