Questions tagged [testing]
Regarding testing of new features, algorithms, or concepts.
72
questions
2
votes
2
answers
254
views
Does each bitcoin node do Continuous Integration? Is this merely the process of the node syncing with the network? What is involved with it?
I notice the folder in the bitcoin core github repo for CI, and would like to know more about it.
I have read the entry in Wikipedia for Continuous Integration.
2
votes
1
answer
72
views
What is the history on how previous soft forks were tested prior to being considered for activation?
How were previous soft forks tested prior to being considered for activation? Were they added to the default testnet? Was a custom testnet setup with the soft fork functionality available on that ...
3
votes
1
answer
192
views
How can I simulate a reorg for testing?
I'm trying to test the Bitcoin Dev Kit Electrum client with Electrs 0.9.1 for the case of a 1-block reorg. I use
invalidateblock on my single regtest bitcoind 22.0, but I don't see my
test transaction ...
3
votes
1
answer
321
views
Tests for Pay To Taproot addresses?
I am having trouble finding examples showing a known WIF to a valid mainnet P2TR address.
I am working on a tool and want to see if my P2TR conversions/encodings are outputting the correct P2TR ...
1
vote
1
answer
52
views
Test environment for bitcoin transactions/wallets
I want to build a pet project which would use bitcoin for sending/receiving and see balance of wallets involved changed.
What are my options for having a local env that would allow me to perform these ...
2
votes
0
answers
194
views
Is there any way to test that a mining system is set up correctly (solo mining)?
I am running a full node and have written some mining software to learn more about how bitcoin works. I know that the chances of mining a block are basically zero given my hash rate, but I am curious ...
1
vote
1
answer
66
views
What is lnprototest exactly? Can it be used to test an individual Lightning implementation or just interoperability between implementations?
What is lnprototest exactly? Can it be used to test an individual Lightning implementation or just interoperability between implementations? What does an implementation need to do to use lnprototest?
2
votes
1
answer
76
views
What vulnerabilities have been found in Bitcoin Core using fuzzing?
Is there a list of vulnerabilities that have been found in Bitcoin Core using fuzz testing?
2
votes
2
answers
299
views
Setting the fee rate on regtest, or, quickly generating full blocks
I'm setting up some automated testing for a lightning wallet. At the heart of my tests is a bitcoind instance running in regtest mode. I need to be able to set the fee rate - both the fee rate ...
1
vote
1
answer
93
views
Why doesn't Bitcoin Core use Google's OSS-Fuzz?
Google offers free access to their ClusterFuzz fuzzing infrastructure (through OSS-Fuzz) to open source projects. Why does Bitcoin Core not take advantage of this?
3
votes
1
answer
210
views
What is structured fuzzing and is the fuzzing that Bitcoin Core does currently considered structured?
Can you define what structured fuzzing is and the benefits it brings over plain vanilla fuzzing?
Is some of the fuzzing that Bitcoin Core does currently considered "structured"?
0
votes
1
answer
2k
views
What is a fuzz testing harness?
The Bitcoin Core fuzzing docs refer to "fuzzing harnesses". What is a harness in this context?
(There have been two previous Bitcoin Core PR review club sessions on fuzz testing at the time ...
4
votes
1
answer
336
views
What is fuzz testing?
I've been looking at the Bitcoin Core PR review club sessions on fuzz testing here and here.
Can you explain at a high level what is fuzz testing?
0
votes
1
answer
186
views
Should I try to get fuzz testing working on MacOS or should I stick to Linux?
The Bitcoin Core fuzzing docs contain some hints for getting fuzz testing working on MacOS. But if I have access to a Linux machine/VM should I stick to doing all fuzzing on Linux? I'm assuming there ...
0
votes
1
answer
149
views
Which fuzzer should I use to fuzz test Bitcoin Core?
In the Bitcoin Core fuzzing docs there are setup instructions for three different fuzzers: libFuzzer, american fuzzy lop (afl-fuzz) and Honggfuzz. Presumably I should try them in this order. How do ...
1
vote
1
answer
166
views
Test vector 1 BIP32 in Python
i tried to replicate code in this git
https://github.com/tongokongo/bitcoin-basics/blob/master/HD_wallet/bip32.py .
I'm not familiar with python but the xpub is correct (this is the Test Vector 1 from ...
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?
0
votes
1
answer
87
views
What is an uninitialized read? Can you point out some examples found in Bitcoin Core? How do you detect them?
What is an uninitialized read? Can you point out some examples found in Bitcoin Core? How do you detect them?
2
votes
1
answer
45
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 ...
3
votes
2
answers
109
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?
2
votes
1
answer
274
views
I have written a test for an open Bitcoin Core PR. Should I open a PR to the author's fork or wait for it to be merged?
I have written an additional test for an open Bitcoin Core pull request (PR). Should I seek to extend the PR by forking the author's fork of Bitcoin Core and opening a pull request to his PR branch? ...
4
votes
1
answer
104
views
Should I run the tests every time I review an open Bitcoin Core PR?
I am reviewing an open Bitcoin Core PR. Should I run the tests or can I rely on the CI (continuous integration) output to catch test failures?
If I am to ACK a commit should I seek to catch flaky ...
1
vote
0
answers
78
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?
1
vote
1
answer
107
views
Property based tests have been added to Bitcoin Core. What are they and could they replace some of the unit tests in Bitcoin Core?
Property based tests have been added to Bitcoin Core.
This Dev article describes property based tests as randomized unit tests that in some cases could replace unit tests.
"Generally speaking, ...
3
votes
1
answer
149
views
Can someone explain the output from running Bitcoin Core unit tests on Mac OS please?
When I build and run the unit tests on Mac OS using the make check command the output contains these two summaries (images uploaded below). Why does the testsuite summary initially summarize zero ...
0
votes
1
answer
529
views
Is there a way to delete a test wallet without stopping bitcoind?
For my unit tests, I'd like to be able to delete and recreate a wallet without having to stop bitcoind and manually deleting the wallet directory.
When I try to delete such wallet directory without ...
1
vote
1
answer
181
views
What is the simplest command I could use to test that my wallet unlocking process works properly?
I simply want to unit test that my lock/unlock process works well on an encrypted wallet.
What would be the easiest command I could send (that doesn't involve sending coins) to actually validate if ...
2
votes
2
answers
154
views
Is writing unit tests a good way to start contributing to Bitcoin core?
I'm considering writing unit tests to Bitcoin core as a first step to C++ development and Bitcoin contribution. Anyone have any suggestions about the journey I'm about to begin and possible files that ...
1
vote
2
answers
2k
views
Where can I get bigger amount of test BTC?
We are conducting some testing with the end users of our application and I need a bigger amount of test BTC for it. Using faucets, I can get 0.1 or 0.01 per request with captcha, but I need something ...
0
votes
1
answer
70
views
Transaction deserialization test vectors for Elements sidechain?
I'm working on adding support for Elements sidechain to https://github.com/Simplexum/python-bitcointx/ library.
Transaction serialization/deserialization seems to be working, but to test it properly,...
2
votes
2
answers
374
views
Debugging Bitcoin Core with gdb - how to turn off compiler optimizations
I ran the configure script with the --enable-debug flag, then ran make. I am running unit tests:
gdb --args src/test/test_bitcoin --log_level=all --run_test=script_standard_tests
I'm trying to step ...
2
votes
2
answers
261
views
Any idea how to download a small part of the chain for testing purposes?
I am experimenting with Python and Rust libraries on my laptop. I don't actually want to get a node going on it and download the full chain; I just need some blocks to play with.
I want to keep my ...
1
vote
1
answer
114
views
Testing Bitcoin Core source code? [closed]
What's the recommended way to start testing the Bitcoin Core source code.
Thanks in advance,
Jim
1
vote
1
answer
761
views
Does one of these exchanges have a sandbox to test?
I want to test some trading. Does Binance, Bittrex, Poloniex, Kraken or Gemini have a sandbox to trade fake crypto to test systems?
7
votes
1
answer
729
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 ...
2
votes
0
answers
113
views
Why does the feature_block.py bitcoin functional test fail in tagged release 0.16.0?
I tried running the unit and functional tests from the latest tagged release (0.16.0) from https://github.com/bitcoin/bitcoin.git.
To my surprise, there is one functional test that persistently fails ...
1
vote
0
answers
108
views
Altering blockinfo to include valid nonce and extraNonce's in the miner_tests
I currently work on upgrading an old cryptocurrency (fork of an old bitcoin version) to the latest of Bitcoin that includes a lot of tests.
I currently am stuck with making this test succeed: https://...
0
votes
1
answer
502
views
Blockchaind Node Monitoring and local testnet
Im getting my self into blockchain. I have a few newbie questions:
I'm Running a few bitcoind Daemons on OpenStack VMs.
Can i Monitor transactions coming in? Can I log all inputs and outputs and ...
1
vote
1
answer
42
views
Any stress-tests done after 2015?
I was considering running a small test using Bitcoin transactions when I ran into the stress-test / DDOS that Coinwallet.eu conducted in July 2015 (and maybe September too, I am not really sure) where ...
6
votes
2
answers
918
views
Is there a Shapeshift service for Testnet coins to convert Bitcoins to other Altcoin testnet coins?
I'm building an app and I'm working with btc testnet coins, but I want to be able to convert them to other altcoin testnet coins. Is there such a service out there?
4
votes
1
answer
647
views
Good way to test Electrumx?
Has anyone else gotten an electrumx server up and running lately?
I have just gotten to the point where I'm not seeing any errors during "# service electrumx status", but I'm also not seeing my ...
5
votes
2
answers
2k
views
Which altcoin would be the easiest to fork a cryptocurrency from for educational purposes?
Which codebase would you recommend for a novice who wants to create and run an altcoin in order to understand the technology - like a student compiling their own version of MINIX in order to ...
1
vote
1
answer
196
views
Automated Testing using bitcoind in regtest mode, problems due to race condition
So I have multiple instances of bitcoind in regtest mode. 1 instance is for the app wallet and one stimulates a wallet of a possible user.
I want to perform various functional and integration tests ...
17
votes
2
answers
451
views
How thoroughly has Segregated Witness been tested?
I've encountered claims that Segregated Witness was "not really tested" and is being "rushed".
It is my understanding that SegWit had been running on Elements for more than half a year already, and ...
3
votes
1
answer
771
views
Bitcoin testnet not connecting to hardcoded ip addresses
I am trying to force bitcoind running in testnet mode to connect to my own defined set of ip addresses(basically 127.0.0.1:diffPorts). For this I have disabled dnsseed and starting with a fresh ...
0
votes
0
answers
232
views
how to get confirmed balance for bitcoin testnet server? [duplicate]
I can't get confirmed BTC from https://tpfaucet.appspot.com/ server.
Tried many address and can't get balance with confirmation. for that reason my testnet server balance is always 0.0
bitcoin.conf
...
0
votes
0
answers
103
views
How to send an invalid transaction for testing purposes?
How could I send an invalid transaction—for testing purposes, such as with testnet or regtest?
For example, I would like to to try to double-spend, spend non existent coins, etc.
2
votes
1
answer
1k
views
BlockChain API playground OR SandBox?
I am android developer. I have used https://blockchain.info/api/blockchain_wallet_api API for my application But the problem is now how can I test my application (transactions) with out having bit-...
0
votes
0
answers
111
views
Leakage of information about selfish mining - what message is responsible?
A few weeks back I had asked a question about how honest nodes could detect a Selfish Mine Attack and if there were mechanisms that would disclose selfish mining.
In a very first step: I've slightly ...
1
vote
0
answers
213
views
How to fork blockchain intentionally without RPC commands?
Are there any methods other than RPC command invalidateblock <hash> for creating forks?
I know that forks occur when two miners (nearly) simultanously each generate a block for a previous common ...