Skip to main content

Questions tagged [testing]

Regarding testing of new features, algorithms, or concepts.

Filter by
Sorted by
Tagged with
1 vote
1 answer
83 views

Increase the fees in regtest

I have a Regtest environment with some Lightning nodes. I need to make the fees go up a lot to do some tests on how the Lightning nodes behave with high fees. What would be the most efficient/simple ...
polespinasa's user avatar
2 votes
1 answer
149 views

How can I validate if my miner works?

I recently challenged myself to build a BTC Miner that operates on solo.ckpool.org, yeah i know chances are close to zero to find a nonce (especially that not only nonce is in the process) but i ...
menelique777's user avatar
0 votes
1 answer
50 views

Testing new releases privately on selected nodes?

I think the main vulnerability of Bitcoin is a new release messing things up in a way that it will completely destroy people's faith in the protocol. By this I mean something like what happened in ...
mathboi's user avatar
  • 191
6 votes
3 answers
513 views

Is it advisable to operate a release candidate full node on mainnet?

Bitcoin Core 26.0rc2 was released a few days ago. I've observed that several node operators have already installed this test release candidate version and are running it on the mainnet. Data from ...
deyw's user avatar
  • 560
2 votes
2 answers
270 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.
Eoin's user avatar
  • 349
2 votes
1 answer
77 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 ...
Michael Folkson's user avatar
3 votes
1 answer
287 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 ...
Murch's user avatar
  • 76k
3 votes
1 answer
386 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 ...
m1xolyd1an's user avatar
  • 5,666
1 vote
1 answer
60 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 ...
Sergei Basharov's user avatar
2 votes
0 answers
227 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 ...
CryptoJoe's user avatar
1 vote
1 answer
69 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?
Michael Folkson's user avatar
2 votes
1 answer
84 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?
Michael Folkson's user avatar
2 votes
2 answers
447 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 ...
Shum's user avatar
  • 121
1 vote
1 answer
97 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?
Michael Folkson's user avatar
3 votes
1 answer
214 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"?
Michael Folkson's user avatar
0 votes
1 answer
3k 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 ...
Michael Folkson's user avatar
4 votes
1 answer
354 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?
Michael Folkson's user avatar
0 votes
1 answer
229 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 ...
Michael Folkson's user avatar
0 votes
1 answer
164 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 ...
Michael Folkson's user avatar
1 vote
1 answer
201 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 ...
MaXbeMan's user avatar
  • 125
4 votes
1 answer
372 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
0 votes
1 answer
99 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?
Michael Folkson's user avatar
2 votes
1 answer
49 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
136 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
275 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? ...
Michael Folkson's user avatar
4 votes
1 answer
119 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 ...
Michael Folkson's user avatar
1 vote
0 answers
83 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
1 vote
1 answer
110 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, ...
Michael Folkson's user avatar
3 votes
1 answer
152 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 ...
Michael Folkson's user avatar
0 votes
1 answer
615 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 ...
electrotype's user avatar
1 vote
1 answer
191 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 ...
electrotype's user avatar
2 votes
2 answers
160 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 ...
João Grilo Bitcoinheiro's user avatar
1 vote
2 answers
3k 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 ...
Bartek's user avatar
  • 11
0 votes
1 answer
79 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,...
Dmitry Petukhov's user avatar
2 votes
2 answers
387 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 ...
JBaczuk's user avatar
  • 7,418
3 votes
2 answers
311 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 ...
thunderbiscuit's user avatar
1 vote
1 answer
125 views

Testing Bitcoin Core source code? [closed]

What's the recommended way to start testing the Bitcoin Core source code. Thanks in advance, Jim
J. Dev's user avatar
  • 11
1 vote
1 answer
786 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?
Marc Alexander's user avatar
7 votes
1 answer
797 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
2 votes
0 answers
120 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 ...
Magnus's user avatar
  • 105
1 vote
0 answers
109 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://...
Peter Willemsen's user avatar
0 votes
1 answer
508 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 ...
benice's user avatar
  • 63
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 ...
UriCS's user avatar
  • 133
6 votes
2 answers
929 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?
Patoshi パトシ's user avatar
4 votes
1 answer
699 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 ...
stone.212's user avatar
  • 173
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 ...
ProkhorZ's user avatar
  • 174
1 vote
1 answer
201 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 ...
Cyrus's user avatar
  • 117
17 votes
2 answers
480 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 ...
Murch's user avatar
  • 76k
3 votes
1 answer
799 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 ...
bawejakunal's user avatar
0 votes
0 answers
234 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 ...
Md Shahadat Hossain's user avatar