Page MenuHomePhabricator

util: Simplify path argument for CBlockTreeDB ctor
ClosedPublic

Authored by PiRK on Oct 26 2020, 10:11.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABC6fdaf6f55d6f: 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

Diff Detail

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