Questions tagged [debugging]

25 questions
13
votes
4 answers

How to limit the debug.log file while running bitcoind?

The debug.log file is getting pretty big on bitcoind. How do you limit the size of the file? I'm on Ubuntu 12.
Patoshi パトシ
  • 10,956
  • 18
  • 80
  • 151
7
votes
1 answer

What are the debug categories?

In the bitcoin configuration you can set debug logging for the following categories. I can't seem to find an explanation of what each of these categories does. Can someone explain them or point me in the right direction? debug=category Output…
6
votes
2 answers

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 understand. Any recommendations or good…
Michael Folkson
  • 14,337
  • 3
  • 11
  • 45
3
votes
2 answers

What IDE to use for Bitcoin development?

I want to experiment with Bitcoin's code (both Core and Unlimited, if it makes a difference). I really wanted to use CLion, but was unable to compile it and make it work (something to do with using a different Make?) I am weaker on the "setting up…
UriCS
  • 133
  • 1
  • 6
3
votes
2 answers

Debugging bitcoind

How do you attach a gdb to a bitcoind daemon. I wish to step through the functions. Here is what i have tried. gdb --args bitcoind -regtest -daemon This however exists when the daemon starts. So i tried attaching via the pid after the fork. gdb -p…
Bobo
  • 393
  • 1
  • 10
3
votes
1 answer

Another similar experience to "a Bug in copying BTC address"

Using my bitcoin.com wallet app, I sent $50 in BTC to the address: bc1qtzxadce2qzpfwl0xrq46xss9nxdjkjfekqvttj This is a transaction done times before and isn't unfamiliar. Yet, this deposit wasn't posting. So upon reviewing the transaction, I found…
Ra2377ven
  • 31
  • 3
3
votes
1 answer

Bitcoin transaction script debugging strategy - how to debug 'invalid script' errors

I've been playing around with DLC transactions but I can't seem to create a valid CET transaction to conclude simple all or nothing bets. Further details below on my specific case, though this question also relates to methods for debugging invalid…
2
votes
1 answer

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?
2
votes
2 answers

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 through the execution of the source files using…
JBaczuk
  • 7,278
  • 1
  • 11
  • 32
2
votes
1 answer

bitcoind 23.0 crashed mysteriously after 2 hours, what do I do next?

My new bitcoin node ran for about two hours and then crashed for no apparent reason. What do I do next to debug or fix the problem? This is my first time running a bitcoin node. I have lots of experience running Linux services in general. I started…
Epictitus
  • 51
  • 5
2
votes
1 answer

Fail at coding my private to public key converter (Pyhon)

Fail at coding my private to public key converter script for Bitcoin (Secp256k1) Currently going through the book "Programming Bitcoin by Jimmy Song", got stuck on page 61 (Chapter 3), but completed the exercise 5 from chapter 3. You can view the…
2
votes
2 answers

Does bitcoind validate every block for every time it starts?

When running bitcoind, it starts downloading the blockchain and validate every block in a row. It stores the blockchain in the ~/.bitcoin/blocks directory. And when we break daemon and restart it, starts downloading from the last block it downloaded…
2
votes
1 answer

How to check OP_CHECKLOCKTIMEVERIFY?

I try to simply get into the OP_CHECKLOCKTIMEVERIFY opcode and test it. However I get the error error: Locktime requirement not satisfied no matter what unix- or blocktime I enter in my btcdeb. I wanted to check out another debugger, but for…
zerotobtc
  • 323
  • 1
  • 9
2
votes
1 answer

What do these memory configurations in debug.log of BitCoin Core represent?

In the debug.log file of BitCoin Core, the cache configuration is described as follows. Cache configuration: Using 2.0 MiB for block index database Using 8.0 MiB for chain state database Using 441.0 MiB for in-memory UTXO set (plus up to 286.1…
GoneV
  • 175
  • 8
2
votes
1 answer

What possible explanation could there be that Bitcoin Core on Linux Mint claims to but does not save the wallet backups?

Linux Mint. Bitcoin Core 0.21.0. I go to "File" and "Backup wallet", then select any location. I've tried with /home/a and /tmp and others. Every time, Bitcoin Core says that the file has been successfully saved to the location I picked. Then I look…
Willas
  • 21
  • 2
1
2