5 votes

What protocol do bitcoin nodes use to talk to each other?

What protocol do bitcoin nodes use to talk to each other? Most Bitcoin nodes will primarily use: Layer Protocol Application Layer Bitcoin Protocol Transport Layer Transport Control Protocol (TCP) ...
RedGrittyBrick's user avatar
3 votes
Accepted

Is it possible to use the getboolarg function in interpreter.cpp

interpreter.cpp is part of the internal libbitcoin_consensus library, while GetBoolArg() is in common/args.{h/cpp} which is part of the internal libbitcoin_common library. The Makefile specifies a ...
Ava Chow's user avatar
  • 70.4k
3 votes
Accepted

What is the nBits field in the CBlockHeader class?

I interpret that it's a representation of the difficulty for the block. ... Is my understanding correct? Yes, it is a compact representation of the network target for that block. The target being a ...
RedGrittyBrick's user avatar
2 votes

What protocol do bitcoin nodes use to talk to each other?

Bitcoin nodes use a custom tcp-based protocol to communicate with each other. There's a work in progress to deploy a new one with some privacy enhancements.
Davidson Souza's user avatar
2 votes

How to get block height from CTransactionRef object in Bitcoin C++ code?

The block height for a transaction may be recorded in two different places: the txindex, or in the wallet. Both of these have functions that can take a transaction hash and return information about ...
Ava Chow's user avatar
  • 70.4k
1 vote
Accepted

How to use the base58 in c++

This solution is used by Bitcoin Core base58.h // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2023 Loopite. #ifndef ...
Loopite's user avatar
  • 301
1 vote

What protocol do bitcoin nodes use to talk to each other?

Bitcoin uses TCP-IP protocol. The structure of data follows 2 parts: Header Payload Header part Magic Bytes (4 bytes) which indicates the selected network by nodes. Command (12 bytes). You can see ...
Loopite's user avatar
  • 301
1 vote

How do I hash header block with C++

I have a class/function which will format them into a hex string, which i get as You don't format as hex-string, it's 80-bytes raw bytes, serialized as: - version (4-bytes little-endian) - ...
Davidson Souza's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible