5

It is used for incoming Tor connections. See here and here for more info. You can use -bind=127.0.0.1:XXXX=onion to use port XXXX instead.


6

BIPs are just proposals. Whether any particular piece of software supports/adopts it is up to the developers of that software. To find out which BIPs are supported by Bitcoin Core specifically, look at its doc/bips.md file.


4

In the data directory, there should be a file named settings.json. Just delete the lines with the names of the wallets that you have removed. The file needs to contain valid json, so you also need to make sure that the last name entry in the wallet array does not contain a trailing comma. For example, if you created wallets named wallet1, wallet2, wallet3, ...


3

Yes, Bitcoin Core will permit slightly overshooting the selection target when using the Branch and Bound algorithm, as long as the overshoot is smaller than the cost of creating and spending a change output. In the loop that evaluates input set candidates, the search will backtrack if the selected amount exceeds selection_target + cost_of_change, but if the ...


3

The hash160 of the script is e9c3dd0c07aac76179ebc76a6c78d4d67c6c160a Prepend the version byte 05 05e9c3dd0c07aac76179ebc76a6c78d4d67c6c160a Double sha-256 gives a checksum of 1. 5dad64852fbff1510074011803d9bf50b9650a517240d298a07ea5c525cdc5e7 2. 7f297f3156a14d114af23b33c339817a1241afcb52a154d19683c67c538b7278 first 4 bytes: 7f297f31 Encoding ...


3

In general, in order for a thread to interact with any resource external to itself (such as disk I/O, other processes, other threads, etc.), it does so through the use of system calls. There are many system calls, many which could be dangerous in the right context, and many which a thread is not going to use. Syscall sandboxing thus restricts the system ...


3

Observe that the type of the output is: "type": "pubkey" Pay-to-Public-Key (P2PK) outputs do not have addresses. They pay directly to a public key rather than the hash of the public key, as the name suggests. Bitcoin addresses encode public key hashes, for example, addresses starting with a 1 are known as Pay-to-Public-Key-Hash (P2PKH) ...


3

The simple answer is that when the parameter '%U' is missing from the 'Exec' line in a gnome/Ubuntu desktop file, the OS creates a new instance whenever the application is called (in this case by the browser on clicking a bitcoin: link on a web page). That fails when the application can only have one instance running (bitcoin-qt by itself handles the bitcoin ...


3

The dumpwallet RPC was introduced in this commit, in the v0.9 release of Bitcoin Core. This was back in time when the wallet was just a random bag of independent keys. That is, before HD wallets came along. So there was no such thing as a seed, hence the dumpfile being simply a long list of keys. Since HD wallets were introduced, no-one has modified this RPC ...


2

After reading the comments on your question, i think you are not parsing the witness data and continuing with parsing a new transaction when you are actually reading witness data. In a SegWit transaction, the varint that tells you how much inputs there are also tells you how much pieces of witness data there are. For each input one. Each piece of witness ...


2

It is probable that the issue you are facing is the result of incorrectly parsing or failing to parse the witness data. In segwit, witness data for each input is included after the outputs. The witness data for an input is an array of an array of bytes (each array is length prefixed with a compact size unsigned int). There is one witness data for each input ...


2

Using the info @Prayank provided, I managed to do it the following way: Run first cmd session and changed directory to where bitcoind.exe resides. Then run bitcoind.exe Run second cmd session, changed directory to the same one as above and then run bitcoin-cli loadwallet directory_where_wallet.dat_resides bitcoin-cli encryptwallet "my pass phrase"


2

Is there a way to insert a password to a wallet.dat file from windows cmd? Run cmd Change directory to run bitcoind.exe. If Windows is installed in C drive: cd "C:\Program Files\Bitcoin\daemon" Open another command prompt, change directory to above path and run this command: bitcoin-cli.exe walletpassphrase "my pass phrase" 60 https://...


2

The version that you are deserializing is not the block version but rather the client version that wrote that entry to the database. In your case, a client version of 210000 means Bitcoin Core 0.21 wrote that entry. The block header (which includes the block version) is found after the status conditional fields (i.e. after undo pos). It is serialized as the ...


2

Yes, open the command console inside the GUI and type walletpassphrase "your password" 1 This will only succeed if the password is correct.


2

Buying and selling of bitcoin is done using exchanges. If it is a centralized exchange you will do KYC, use bank account to transfer money and deposit/withdraw bitcoin. Only bitcoin transactions are available on Bitcoin blockchain and everything else stays with the exchange. Most of the exchanges will share it with government when required. If it is ...


2

Why is 18445 port used to bind when 2222 was mentioned in -bind while running bitcoind (node 1)? When torcontrol is enabled, Bitcoin Core will listen on two separate ports by default: one for incoming connections from the public network, and one for incoming connections from tor. Using two separate ports helps Bitcoin Core distinguish which connections are ...


2

Yes, finding bugs in Bitcoin would be valuable. However this doesn't seem to be one. What's shown here is a series of supposed "signatures". However, a cryptographic signature is only meaningful in the context of the message it signs. To verify a signature, you need three inputs: 1) the message, 2) the signature, 3) the public key. Generating a &...


2

Will EVERY address I'll generate AFTER the passphrase will NOT be accessible to the old copy (Before the passphrase) Correct. When encrypting a wallet, every key/address used from that point on will be new and encrypted. The wallet will not delete the old keys of course, otherwise it would lose all the funds before encryption. But from that point on, it ...


2

A full node is a node that validates all network rules, regardless of whether it listens for incoming connections or not. Bitcoin Core is full node software which always does this. To see whether you can be reached by others, look at the network view and see if you have any incoming connections. Note that it may takes hours to days before your IP address is ...


1

That is the coinbase transaction of the genesis block, as the screenshot says. It pays the reward for mining that block (50 BTC) to that address (owned by the miner of the first block, assumed to be Satoshi Nakamoto). It pays to the address, but has not been touched since (and in fact, the genesis block reward is technically unable to be spent even if ...


1

I would assume its possible to create a backup of the encrypted wallet, copy it to my macbook and use it in a core client (which is synced)? Yes, you could certainly do that. Just be careful not to overwrite the wallet on your macbook if it also contains bitcoin. I'm still not sure how the synced client would know anything about the wallets balance without ...


1

I went through a similar problem for generating new bitcoin wallets. I used the following python libraries: pycoin bitcoinlib


1

Is this enough for Bitcoin Core to route any communication through Tor, or does this risk any name resolution or something being queried directly instead of channeled in Tor? According to doc/tor.md, proxy option sets the proxy for DNS requests; with onion they will not route over Tor. So using -proxy=127.0.0.1:9050 should be enough to ...


1

Each wallet folder contains all of the data for a wallet. If you delete a folder, you delete a wallet and all of its data. This includes any and all private keys, unless you have made a backup of that wallet. The wallet.dat that is not in a folder is the wallet data file for the default wallet (the wallet whose name is the empty string). If you only backup ...


1

Bitcoin cannot reasonably be mined on commodity hardware, and Bitcoin Core does not include any functionality to mine by itself anymore. The profit would be orders of magnitude smaller than your electricity bill and wear and tear to your hardware. If you want to mine BTC, you need specialized hardware (called ASICs).


1

As @Andrew Chow said: Bitcoin-qt is not just a frontend GUI or wallet handling software. It is bitcoind with a GUI. There is a WIP project for separating things and make this possible, but it's still very early and not recommended for end users. What are some common wallets that support this feature? (trusted nodes via RPC or SPV to a bitcoind full node) ...


1

Sometimes ago I've allready wrote the script that supports parsing Witness data from the raw database. For example, parsing the file blk01896.dat (from my local database) with my blockchain parser. The parsing results of the first block 0000000000000000000D9C6917E3E865812D419648349D85C40C5A8302842D79 is: The first transaction in that block ...


1

You can use the rescanblockchain command/RPC to rescan in stages. Simply provide a start height and stop height, then next time, start from the previous place you left off. You can continue this until you've rescanned the entire chain. You can use the getwalletinfo RPC to see the current rescan progress too. If the wallet is already scanning, you can use ...


1

Nobody† knows. The motivation for features in Bitcoin core is rarely documented in easily accessible places - though you might examine the source code for hints. It might be, for example, that the original author of dumpwallet felt that backupwallet was adequate for people seeking to preserve the seed and that they intended dumpwallet as a debugging aid for ...


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