Page MenuHomePhabricator

Backport leftovers from 15788
ClosedPublic

Authored by deadalnix on Apr 26 2020, 23:25.

Details

Summary

test: Have segwit always active in (Basic)TestingSetup
test: Use test_bitcoin setup in bench, Add test utils

This is a partial bakport of Core PR15788 . the original backport missed many bits.

I did not port the RPC like method because they don't build for us and they are dead code.

Depends on D5848

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Branch
pr15788
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10419
Build 18659: Default Diff Build & Tests
Build 18658: arc lint + arc unit

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

Fabien requested changes to this revision.Apr 27 2020, 09:29
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/bench/duplicate_inputs.cpp
16

Why ?

src/test/setup_common.cpp
150

This is already done by the BasicTestingSetup constructor

src/test/util.cpp
22

Without the rpc this can be simplified:

#include <test/util.h>

#include <chainparams.h>
#include <config.h>
#include <consensus/merkle.h>
#include <miner.h>
#include <pow.h>
#include <validation.h>
src/test/util.h
9

Remove

This revision now requires changes to proceed.Apr 27 2020, 09:29
This revision is now accepted and ready to land.Apr 27 2020, 13:07
This revision was landed with ongoing or failed builds.Apr 27 2020, 13:23
This revision was automatically updated to reflect the committed changes.