Fantom-foundation / Sonic

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

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

Closed thaarok closed 4 months ago

thaarok commented 5 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.