The changes involved for splitting signrawtransaction into
signrawtransactionwithkey and signrawtransactionwithwallet will be split
to allow for easier review, and the deprecation of signrawtransaction
will lead to multiple test failures. This diff will avoid breaking the
tests, and will be reverted when these tests are converted to the new
signrawtransactionwith* function.
Details
Details
./test/functional/test_runner.py --extended
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- PR10579_fix_broken_tests
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 4292 Build 6649: Bitcoin ABC Buildbot (legacy) Build 6648: arc lint + arc unit
Event Timeline
test/functional/mempool_reorg.py | ||
---|---|---|
21 | This syntax is very strange and I can't find a reference to it. I'm assuming this duplicates the inner list? |
Comment Actions
I'm not a big fan of this approach because it is completely unclear why these test require this change and not others or why this change is required at all. This change is not self contained.
Is there a reason these test cannot be changed alongside the code that require them to be changed ?
Comment Actions
signrawtransaction is being deprecated in D2007, and will break all these tests at once.
In order to avoid breaking the tests, here is the strategy:
- This diff allow the use of the deprecated rpc
- Then the backport (D2007) deprecates the signrawtransaction rpc, and set the ones. Tests are not broken thanks to the -deprecatedrpc option
- The tests are fixed with the new RPC in D2008
- This diff is reverted to remove the -deprecatedrpc option (actually part of D2008, will split pending)
- A new test is added to check that the old api is still available through the -deprecatedrpc option, in D2009
Doing so avoid breaking the tests along the process.
Comment Actions
You need to proceed as follow:
- Build the alternative to signrawtransaction
- Convert the tests to use the alternative
- Deprecate signrawtransaction, and add the flag to the tests that need it.