fix: use isolates in bip340 event verifier#345
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #345 +/- ##
=======================================
Coverage 71.64% 71.64%
=======================================
Files 142 142
Lines 5283 5287 +4
=======================================
+ Hits 3785 3788 +3
- Misses 1498 1499 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
can we merge #327 (and #332) Used like this: final data = await IsolateManager.instance
.runInComputeIsolate<PARAMTYPE, RETURNTYPE>(
<function>,
<params>
);
final data = await IsolateManager.instance
.runInComputeIsolate<_MiningParams, Nip01Event>(
_mineEventInIsolate,
_MiningParams(
event: event,
targetDifficulty: targetDifficulty,
maxIterations: maxIterations ?? 1000000,
),
);
|
depends if performance-wise verifying a lot of events proves to be noticeable better with |
|
applied the fix from #346 and changed to use |
No description provided.