hyperledger / besu

An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
https://www.hyperledger.org/projects/besu
Apache License 2.0
1.49k stars 811 forks source link

Snapserver GetTrieNodes request to handle short hash for storage #7264

Closed jframe closed 3 months ago

jframe commented 3 months ago

PR description

Allows snapsync server to GetTrieNodes request for storage to handle a hash with less than 32 bytes. It's not mentioned in the snap sync spec but Geth handles such requests and the hive tests rely on this behaviour. Implementing this fixes a hive test case.

Fixed Issue(s)

Thanks for sending a pull request! Have you done the following?

Locally, you can run these tests to catch failures early: