Questions tagged [testing]

Regarding testing of new features, algorithms, or concepts.

Filter by
Sorted by
Tagged with
1
vote
1answer
38 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
0answers
73 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
1answer
39 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
1answer
51 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
2answers
79 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
1answer
69 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
1answer
160 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
1answer
739 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
1answer
202 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
1answer
100 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
1answer
87 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
1answer
60 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 ...
3
votes
1answer
282 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
1answer
79 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
1answer
35 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 ...
0
votes
1answer
25 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
1answer
264 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
1answer
73 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
0answers
49 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
1answer
95 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
1answer
130 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
1answer
131 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
1answer
106 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
2answers
94 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 ...
0
votes
2answers
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
1answer
58 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,...
1
vote
2answers
273 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
2answers
152 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
1answer
86 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
1answer
686 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?
4
votes
1answer
555 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
0answers
86 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
0answers
100 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
1answer
481 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
1answer
27 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
2answers
891 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
0answers
526 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
2answers
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
1answer
176 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
2answers
430 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
1answer
697 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
0answers
226 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
0answers
91 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
1answer
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
0answers
104 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
0answers
192 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 ...
3
votes
2answers
72 views

Why can't the block size upgrade be trialed on testnet with an organised "stress test"

A stress test was run on mainnet to see the effect of exponential demand in Tx volume. Why can't a testnet "stress test" be organised to look at the implications of the 20Mb block size (and other ...
2
votes
1answer
268 views

BIP39 Japanese Mnemonic vector unit test process

There is a json for unit tests of Japanese characters which I want to validate using Python, specifically with this fork of pybitcointools, which has bip39 functionality. Unit tests from Trezor's ...
1
vote
1answer
445 views

Trouble running bitcoin unit tests with test_bitcoin on Ubuntu

From Bitcoin Core's test directory (bitcoin/src/test), the executable test_bitcoin is supposed to run the unit tests. When I run test_bitcoin, however, I get: replication requires locking support ...
8
votes
3answers
825 views

Testing blockchain forks

I want to test if a service can manage a blockchain fork. However there is no way to get bitcoind to create test forks under the regtest mode. I've tried modifying it to generate blocks with arbitrary ...