HomePhabricator

make chronik-client_blocktxs_and_tx_and_rawtx work even when the wallet is not…

Description

make chronik-client_blocktxs_and_tx_and_rawtx work even when the wallet is not compiled

Summary:
This setup_script used the sendtoaddress and getnewaddress RPCs which are not available if the node is built without the wallet. We can use the MiniWallet from the test framework instead which works without the node's wallet.

The only notable change in behaviour is that now the transactions are all sent to the same address. This does not seem to affect the corresponding integration test.

Test Plan:

mkdir buildChronikWithoutWallet
cd buildChronikWithoutWallet
cmake -GNinja .. -DBUILD_BITCOIN_CHRONIK=ON -DBUILD_BITCOIN_WALLET=OFF
ninja check-functional
./test/functional/test_runner.py setup_scripts/chronik-client_blocktxs_and_tx_and_rawtx

Type next until the script completes succesfuly.

Then:

cd ..
cd modules/chronik-client
BUILD_DIR="${PWD}/../../buildChronikWithoutWallet" npm run integration-tests

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

Subscribers: bytesofman

Differential Revision: https://reviews.bitcoinabc.org/D15413

Details

Provenance
PiRKAuthored on Feb 9 2024, 11:55
PiRKPushed on Feb 12 2024, 07:44
Reviewer
Restricted Project
Differential Revision
D15413: make chronik-client_blocktxs_and_tx_and_rawtx work even when the wallet is not compiled
Parents
rABC77cdf6a39166: [Chronik] Add `/validate-tx` endpoint
Branches
Unknown
Tags
Unknown