Skip to main content
The 2024 Developer Survey results are live! See the results
10 votes

DEFAULT_MAX_PEER_CONNECTIONS for Bitcoin Core is 125 or 130?

To be fair when the source says "about" 130 connections it doesn't claim to be exact. It's true that the maximum number of automatic connections is 125 per default, but on top of this there ...
Lightlike's user avatar
  • 736
3 votes

Where exactly is the mining code in Bitcoin Core?

Most of the mining code was removed from Bitcoin Core as CPU mining gave way to GPU, FPGA and ASIC mining. The minimal amount of code that's left is intended for testing purposes, i.e. creating blocks ...
Vojtěch Strnad's user avatar
3 votes

Is the OP_PUSHBYTES_X opcode always required after OP_RETURN?

This is a notational issue, resulting from how you're choosing to write the Scripts in readable form. This question simply makes no sense when you look at the actual binary encoding of Scripts, ...
Pieter Wuille's user avatar
3 votes
Accepted

Most efficient way to check if utxos are consumed in mempool txs using core rpc and rust

Using a wallet would allow you to do this, whether you choose to use BDK or Bitcoin Core's watchonly wallet. But since you are only interested in mempool transactions spending a specific output you ...
Antoine Poinsot's user avatar
2 votes
Accepted

Can a block more than a week old be considered a valid chain tip?

Bitcoin Core will generally connect to at least 10 outbound peers (8 regular, 2 blocks-only). It will ask all of the peers for their chaintips and then start synchronizing the header chain for the ...
Murch's user avatar
  • 76.4k
2 votes
Accepted

Is the OP_PUSHBYTES_X opcode always required after OP_RETURN?

My existing answer stands, but as I feel we're talking past each other due to different assumptions about what Script notations mean, let me add this to dig deeper into that. I'm going to change the ...
Pieter Wuille's user avatar
2 votes

Is the OP_PUSHBYTES_X opcode always required after OP_RETURN?

It is not necessary for a data push to follow an OP_RETURN. By consensus, it is not required that an OP_RETURN be followed by a data push. Encountering an OP_RETURN stops Script execution immediately ...
Antoine Poinsot's user avatar
2 votes
Accepted

Checksum of addr() descriptor

Bitcoin Core only accepts addresses in its addr() descriptors that match the chain type it is running for. So if bitcoind is running with e.g. -regtest, it will only accept regtest addresses, not ...
Pieter Wuille's user avatar
1 vote
Accepted

Does Bitcoin Core have Prometheus support?

Bitcoin Core doesn't have any code for Prometheus support. There is a closed issue discussing it, with links to other related discussions and potential solutions, such as USDT (User-space, Statically ...
Vojtěch Strnad's user avatar
1 vote

Sparrow to Remote Bitcoin Core 403 issue

I had a brain fart. The local node was not on 192.168.0.0/24. I resolved the issue by removing rpcallowip=127.0.0.1 rpcallowip=192.168.0.0/24 and replacing with rpcallowip=0.0.0.0/0, which is fine ...
Alement's user avatar
  • 43
1 vote

Can I run a Bitcoin Core 27 wallet on two devices at the same time?

Running multiple instances of Bitcoin Core using the same wallet is not recommended. Concerns include (this is not an exhaustive list): If you use a non-HD wallet, eventually each instance of the ...
Murch's user avatar
  • 76.4k
1 vote

Is the OP_PUSHBYTES_X opcode always required after OP_RETURN?

Script Notation: OP_RETURN <11 bytes hexadecimal> and OP_RETURN PUSH_BYTES_11 <11 bytes hexadecimal> are synonyms. They both translate to 0x6a0b<11 bytes hexadecimal>. I didn't know ...
Lee's user avatar
  • 958
1 vote

Are there limits to number of attempts at entering a passphrase in bitcoin qt

You can recover your wallet password using hashcat. hashcat allow you to try thousands of password on the wallet's hash. Once you find the correct password, you can use it on your wallet.dat.
Pizzaboy's user avatar

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