HomePhabricator

util: Make Assume() usable as unary expression

Description

util: Make Assume() usable as unary expression

Summary:
Assume shouldn't behave different at the call site depending on build flags. Currently compilation fails if it is used as expression. Fix that by using the lambda approach from Assert() without the assert().

This is a backport of core#21317

Test Plan: ninja && ninja check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10855

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Feb 28 2021, 15:38
PiRKCommitted on Jan 21 2022, 10:07
PiRKPushed on Jan 21 2022, 10:07
Reviewer
Restricted Project
Differential Revision
D10855: util: Make Assume() usable as unary expression
Parents
rABC0dfb5f46534b: test: speedup wallet_listtransactions by whitelisting peers (immediate tx relay)
Branches
Unknown
Tags
Unknown