Page MenuHomePhabricator

refactor: Replace std::optional<bilingual_str> with util::Result
ClosedPublic

Authored by PiRK on Dec 15 2023, 09:36.

Details

Summary
Test Plan

ninja all check-all

grep -r 'std::optional<bilingual_str>' src/

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Dec 15 2023, 09:36

I backported this so we can use util::Result somewhere, but i'm not convinced of its usefulness for this particular use case. It is not less verbose.

The real reason I need util::Result is because it will be used in assumeutxo code (core#27862)

This revision is now accepted and ready to land.Dec 15 2023, 10:10