mempool / electrs

An efficient re-implementation of Electrum Server in Rust
MIT License
60 stars 30 forks source link

Adds support for batch operations in electrum RPC #98

Closed junderw closed 2 weeks ago

junderw commented 1 month ago

Fixes #77

Instead of sending one object per line { ... }.

The client can send an array of objects [{ ... }, { ... }, { ... }, { ... }] and the responses will be sent back in batches.

junderw commented 1 month ago

Return early with errors was messing things up. So instead, every error turns into a json Value.

@mononaut if you can think of anything else that needs fixing, let me know.