Commit c53c9831eedaf3b311bb942945268830f9ba3abc introduced the utility function get_datadir_path
, however not all places in the code use this util function. Using the util function everywhere makes it easier to review pull requests related to the datadir.
This commit replaces datadir path creation with the datadir
member of TestNode
, which itself uses get_datadir_path
.