Skip to content

Add txindex=1 option to QA tests #7538

@unsystemizer

Description

@unsystemizer

I'd find it useful for workload testing if txindex= was an option in QA tests.
For example, related to indexing, there's the reindex test but it takes just 2-3 seconds to run. (I'm not even sure if it any actual indexing takes place, but even if it does, it's meaningless from a workload testing perspective).
It would be nice to be able to enable indexing. I tried inserting -txindex=1 in files such as qa/pull-tester/run-bitcoind-for-test.sh and qa/rpc-tests/test_framework/util.py, but I am still missing something because sooner or later I get this.

Running testscript listtransactions.py...
Initializing test directory /blockchain/tmp
: You need to rebuild the database using -reindex to change -txindex.

Do you want to rebuild the block database now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions