Instead of get()'ing the currency then accessing the ticker member. This makes it possible to hide the underlying type and store a string_view so we can use a constexpr constructor for Currency. With SSO the performance impact is negligible.
Details
Details
- Reviewers
bytesofman - Group Reviewers
Restricted Project - Commits
- rABC6bfc68020f14: Add a Currency::getTicker() shortcut
ninja all check-all
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) Goodbye, 3-hour code review sessions.
────────────────────────────────────────
Review complete
No findings ✔
15 files reviewed:
- src/consensus/amount.cpp
- src/consensus/amount.h
- src/feerate.cpp
- src/init.cpp
- src/qt/test/wallettests.cpp
- src/rpc/avalanche.cpp
- src/rpc/blockchain.cpp
- src/rpc/mempool.cpp
- src/rpc/misc.cpp
- src/rpc/net.cpp
... and 5 more files
────────────────────────────────────────