ilp-plugin-ethereum icon indicating copy to clipboard operation
ilp-plugin-ethereum copied to clipboard

Limit incoming queue to a single claim

Open kincaidoneil opened this issue 5 years ago • 1 comments

On a T04 errors, the plugin sends the latest claim to the peer. Often, this requires verifying the signature, which if many T04s are triggered, can overwhelm the plugin/connector.

Alternatively, only allow a single validate claim task in the queue, and if a new one is enqueued, drop any others without running them.

kincaidoneil avatar May 21 '19 20:05 kincaidoneil

Also, one simple heuristic to use that could improve performance: if the signature in the new claim is the same as the existing claim, don't do anything!

kincaidoneil avatar Jun 07 '19 15:06 kincaidoneil