- LockableScore scorer = null;
- if (use_invoice_payer) { scorer = LockableScore.of(Scorer.with_default().as_Score()); }
+ ProbabilisticScoringParameters params = ProbabilisticScoringParameters.with_default();
+ ProbabilisticScorer default_scorer = ProbabilisticScorer.of(params, this.router);
+ Result_ProbabilisticScorerDecodeErrorZ score_res = ProbabilisticScorer.read(default_scorer.write(),
+ TwoTuple_ProbabilisticScoringParametersNetworkGraphZ.of(params, this.router));
+ assert score_res.is_ok();
+ Score score = ((Result_ProbabilisticScorerDecodeErrorZ.Result_ProbabilisticScorerDecodeErrorZ_OK) score_res).res.as_Score();
+ MultiThreadedLockableScore scorer = null;
+ if (use_invoice_payer) { scorer = MultiThreadedLockableScore.of(score); }