Questions tagged [functional-test]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Is it possible to make functional tests use my `bitcoind` running node as node?

I'm trying to fix some tests that are broken due to my own changes in the code base, and need to simultaneously run functional tests and bitconid in regtest mode and make functional tests to use my ...
Amir reza Riahi's user avatar
1 vote
1 answer
141 views

How can I tweak a private key in bitcoin core

I'm wondering what the workflow is for building tapscripts. I can generate a new address, but how do I tweak it with the tap script? I've done the bitcoin taproot workshop a couple times now and ...
Kaizen's user avatar
  • 331
0 votes
0 answers
23 views

A Failed bitcoin transaction [duplicate]

I made a bitcoin transaction of $570 it failed and it's been over 24 hours I haven't gotten my bitcoin back please what do I do?.... The transaction does even have a TXID..... Please help.
Funds's user avatar
  • 1
2 votes
1 answer
29 views

Where is an example of a feature test testing bitcoin-cli?

Looking for an example so I can run some functional tests against bitcoin-cli.
Kaizen's user avatar
  • 331
2 votes
2 answers
59 views

Error from launching single functional tests on macos

I'm getting acquainted with the functional testing suite in an attempt to become a bitcoin core developer. I'm attempting to run a single test with this command. python feature_shutdown.py I receive ...
Kaizen's user avatar
  • 331
1 vote
0 answers
331 views

How to ignore ResourceWarnings during running tests?

I was trying to run python tests in order to test a PR. I used this command to run p2p tests: [amirreza@localhost bitcoin]$ ./test/functional/test_runner.py test/functional/p2p* It produces lots of ...
Amir reza Riahi's user avatar
1 vote
1 answer
167 views

"Error: no RPC connection" when trying to run Bitcoin Core functional tests

I'm using WSL on Windows 10. I'm able to build from source and run the unit tests. Integration tests are failing for me when I run test/functional/test_runner.py --extended with error AssertionError: [...
fon's user avatar
  • 77
2 votes
0 answers
112 views

How to compile and conduct functional tests of Bitcoin core for CPU (32 bit) and memory constrained system?

I wanted to use my old laptop to run a bitcoin full node. Specifications: Processor: Intel Core2Duo @2.2 GHz i686 OS: Lubuntu 18.04.6 LTS (I have tried first on Lubuntu 16.04, but it failed due to ...
Manapy's user avatar
  • 21
1 vote
1 answer
51 views

What is -vbparams argument and what its the difference with -testactivationheight on Bitcoin functional tests?

Taproot test use the argument -vbparams , but other test like SegwWit use -testactivationheight, what is the use of each one and the difference for using one or the other? class WalletTaprootTest(...
Bitcoin_1o1's user avatar
3 votes
0 answers
265 views

Creating a P2SH-P2WPKH using Bitcoin Functional Test Framework

I'm using the Bitcoin Functional Test framework to understand how SegWit works by analyzing and building a P2SH-P2WPKH transaction. When I run my code the transaction gets created, but when I inspect ...
Bitcoin_1o1's user avatar
2 votes
1 answer
76 views

How can I keep my disk usage under control when regularly running the Bitcoin Core functional tests?

What directories should I delete regularly to keep my disk usage under control when regularly running Bitcoin Core and the unit/functional tests?
Michael Folkson's user avatar
0 votes
0 answers
35 views

send_and_ping() in bitcoin core tests

Is there any downside if send_and_ping() was a hidden RPC instead of just a function in python test framework? def send_and_ping(self, message, timeout=60): self.send_message(message) ...
user avatar
1 vote
1 answer
503 views

Get node 1 to mine another block, send it to node 2, and check that node 2 received it

I am trying to write a test with the bitcoin/test/functional/example_test.py to get node 1 to mine another block, send it to node 2, and check that node 2 received it. Any idea on how to go about/get ...
spraveenitpro's user avatar
0 votes
1 answer
72 views

Does python-bitcoinlib and the Bitcoin Core functional test framework share code? Were changes ever pushed down/upstream?

Does python-bitcoinlib and the Bitcoin Core functional test framework share code? Were changes ever pushed down/upstream?
Michael Folkson's user avatar
1 vote
1 answer
97 views

What backward compatibility testing is done on Bitcoin Core?

The unit and functional tests of the latest release of Bitcoin Core obviously test the codebase of that release. What backward compatibility testing is done to ensure the latest release passes ...
Michael Folkson's user avatar
1 vote
1 answer
87 views

What does the MiniWallet class currently do and need to do in the Bitcoin Core functional test framework?

I tried to run the Taproot functional tests after building Bitcoin Core with the wallet disabled (as I knew there was no Taproot code in the Core wallet at the time of writing, December 2020). However,...
Michael Folkson's user avatar
1 vote
1 answer
83 views

Can I speed up the running of functional tests?

I am running the Bitcoin Core functional tests using the test runner and it is taking a long time to get through all the tests. Is there a way to speed it up? test/functional/test_runner.py --extended
Michael Folkson's user avatar
0 votes
1 answer
100 views

How do I tweak the bip340_test_vectors to check that signature verification fails for other test vectors?

I now understand why some of the bip340_test_vectors fail signature verification. I would like to tweak these test vectors to check that signature verification fails for other test vectors. How do I ...
Michael Folkson's user avatar
1 vote
1 answer
229 views

I'm digging further into the open Taproot PR. Can you explain the BIP340 test vectors?

I'm digging further into the open Taproot PR. I found these BIP340 test vectors. They have secret keys, public keys, aux_rand (auxiliary randomness), message, signature and whether the signature ...
Michael Folkson's user avatar
0 votes
1 answer
101 views

How do I debug Taproot functional tests using pdb?

I am looking at the some of the Taproot functional tests such as feature_taproot.py to review the open Taproot PR. I would like to use pdb to debug these tests. Can you provide some guidance on how to ...
Michael Folkson's user avatar
4 votes
1 answer
359 views

I would like to dig into the open Taproot PR to understand it, test it and possibly even review it. Any advice or recommendations?

I would like to dig into the open Taproot PR (PR #19953) to understand it, test it and possibly even review it. Any advice or recommendations?
Michael Folkson's user avatar
2 votes
1 answer
47 views

What are some examples of previous first contributions improving Bitcoin Core tests?

I have heard that improving the Bitcoin Core tests is a good way to start contributing to Bitcoin Core. What are some good examples of previous first contributions to the tests to take some ...
Michael Folkson's user avatar
3 votes
2 answers
112 views

How can I analyze the test coverage of the Bitcoin Core codebase?

I have heard writing tests is a good starting point for contributing to Bitcoin Core. How do I work out which parts or specific lines of the codebase need additional test coverage?
Michael Folkson's user avatar
2 votes
1 answer
196 views

What is Valgrind? When should I use it for debugging Bitcoin Core over using gdb, lldb, pdb etc?

I was watching Fabian Jahr's presentation on debugging Bitcoin Core at Bitcoin Edge Dev++ 2019. He mentioned Valgrind briefly at the end. What is it and when should I use it over gdb, lldb, pdb etc?
Michael Folkson's user avatar
0 votes
1 answer
68 views

What is the difference between node, peer and mininode in the functional test framework in Bitcoin Core?

I am learning about the functional test framework in Bitcoin Core. I am seeing the terms "node", "peer" and "mininode" being used. How are these defined and how are they ...
Michael Folkson's user avatar
6 votes
2 answers
593 views

How do I get started debugging Bitcoin Core functional tests?

I would like to get started with debugging Bitcoin Core code. I have heard debugging Bitcoin Core functional tests is a good place to start as they are in Python rather than C++ and they are easier to ...
Michael Folkson's user avatar
1 vote
0 answers
79 views

I am getting this error when I try to run example_test.py. Is there anything I am doing wrong?

I am getting this error when I try to run example_test.py. Is there anything I am doing wrong?
Sishir Giri's user avatar
7 votes
1 answer
738 views

How does bitcoin functional test framework work?

Could someone explain how and where in the code the bitcoin test framework calls map to C++ bitcoin core code or RPC calls such that regression suite tests the bitcoin core functionality? Background ...
Happy ITWala's user avatar