HomePhabricator

util: Simplify path argument for CBlockTreeDB ctor

Description

util: Simplify path argument for CBlockTreeDB ctor

Summary:

This PR:

  • simplifies path argument (datadir/blocks/index) for CBlockTreeDB constructor
  • does not change behavior as GetBlocksDir() with unset "-blocksdir" returns the same path
  • improves code readability

This is a backport of Core PR17059

Test Plan: ninja all check-all

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Oct 26 2020, 20:56
PiRKCommitted on Oct 26 2020, 20:57
abc-botPushed on Oct 26 2020, 20:59
Reviewer
Restricted Owners Package
Differential Revision
D8119: util: Simplify path argument for CBlockTreeDB ctor
Parents
rABC939736aaca47: build: Fix #include sys/poll.h to just poll.h (without sys/)
Branches
Unknown
Tags
Unknown