Page MenuHomePhabricator

util: Fail to parse empty string in ParseMoney
ClosedPublic

Authored by PiRK on Jan 4 2021, 13:57.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC97abb2a88f38: util: Fail to parse empty string in ParseMoney
Summary

Remove unused ParseMoney that takes a c_str, fail to parse empty string

Supplying a fee rate or an amount on the command line as an empty string, which currently parses as 0 seems fragile and confusing.

This is a backport of Core PR18225

Test Plan

ninja && ninja check

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Jan 4 2021, 13:57
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/util/moneystr.h
24 ↗(On Diff #26602)

Fix the layout

This revision is now accepted and ready to land.Jan 4 2021, 14:10

close comment on new line