HomePhabricator

banman: reformulate nBanUtil calculation

Description

banman: reformulate nBanUtil calculation

Summary:
Avoid reassigning parameters.

This is a partial backport of Core PR14605 : https://github.com/bitcoin/bitcoin/pull/14605/commits/1ffa4ce27d4ea6c1067d8984455df97994c7713e

Depends on D4127

Test Plan:

make check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Carl Dong <accounts@carldong.me>Authored on Oct 31 2018, 04:13
deadalnixCommitted on Sep 22 2019, 12:43
deadalnixPushed on Sep 22 2019, 12:43
Reviewer
Restricted Project
Differential Revision
D4128: banman: reformulate nBanUtil calculation
Parents
rABC697f4827b1e5: banman: add thread annotations and mark members const where possible
Branches
Unknown
Tags
Unknown