Page MenuHomePhabricator

util: Add [[nodiscard]] to all {Decode,Parse}[...](...) functions returning bool
ClosedPublic

Authored by deadalnix on Nov 21 2019, 14:13.

Details

Summary
  • miner: Default to DEFAULT_BLOCK_MIN_TX_FEE if unable to parse -blockmintxfee
  • tests: Check return value of ParseParameters(...)
  • tests: Explicitly ignore the return value of DecodeBase58(...)
  • Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes.

This is a backport of Core PR13815

Depends on D4500

Test Plan

Build and make sure there is no arnign due to discarded result.

Diff Detail

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

Event Timeline

jasonbcox added a subscriber: jasonbcox.

The build plan is ambiguous, so I trust you did both make and ninja

src/attributes.h
1 ↗(On Diff #14290)

Pretty sure Satoshi didn't author this file :P
but this is in the original PR, so w/e I guess.

This revision is now accepted and ready to land.Nov 21 2019, 20:01