Fantom-foundation / Sonic

go-opera fork for Carmen and Tosca integration
GNU Lesser General Public License v3.0
14 stars 16 forks source link

Refactor block/header serialization in RPC - remove duplicite code #143

Closed thaarok closed 2 months ago

thaarok commented 3 months ago

The block/header JSON serialization is duplicated between ethapi (regular RPC queries) and filters (handling of eth_subscribe(newHeads)) - this moves this serialization into a single place and ensures the same format for both.