Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [bitcoincore-development]

This tag should be used for questions regarding Bitcoin Core development. This includes questions about the source code and development of Bitcoin Core.

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

How Does Bitcoin Core Client Keep Track of Longest Chain/Strongest PoW Chains?

Bitcoin Core stores blocks in files in local disk. And it uses LevelDb to form an index on top of block storage to make it faster to retrieve a block (basically a simple key-value pair db). See this ...
1
vote
1answer
36 views

Is Bitcoin Core required for wallet projects?

My team wants to create a cryptocurrency service provider platform to Sell/Buy BTC and something else in form of web/mobile app. It's about one month that I have been studying different articles about ...
0
votes
0answers
23 views

What is the algorithm used to calculate profitability for Bitmain mining SHA-256 [duplicate]

I want to know how I can calculate the profit of bitcoin mining using SHA-256 Algorithm. I am interested in the formula that is used by calculators. For example lets say I have 700mh/s hashrate, ...
0
votes
1answer
26 views

How to calculate the Public key P2SH from hexadecimal script?

My study on the scripts goes next. I'm creating a ScriptPubKey decompiler, now I have a problem with the P2SH, So how is calculate the key p2sh? I using this code but I not think is correct ...
0
votes
0answers
34 views

How get the public key to hex script? like command decodescript of bitcoin core

If I want to recreate the command decodescript of bitcoin core? how is the process for decode the script P2PK? So I'm writing for personal exercise the Bitcoin script decompiler, form moment I have a ...
3
votes
0answers
30 views

How to segregate wallet from bitcoin core | Run multiple wallets in different servers on one centralized bitcoin node

I am running bitcoin full node in a centralized server. I have many web applications running in various places. I want to connect this web applications with centralized full bitcoin node. How to ...
1
vote
2answers
35 views

What testnet environment and configuration for Bitcoin?

Every tutorial I have gone through to download bitcoind, I haven't been able to complete because my computer can't handle the full node download. These are my specs: 2017 Processor - 2.3 GHz Intel ...
-1
votes
1answer
24 views

Spend and unspent

Please I sent btc to a particular wallet, initially it was both showing unspent but I only see one spent now what does it mean?
1
vote
0answers
25 views

Bitcoin SPV not able to fetch transactions

I am developing a Bitcoin wallet SPV and using 3rd party SDK for the same. However, I tried to create wallet and it gets successfully created and I can also restore those wallets but amount and ...
0
votes
0answers
32 views

Do I need to download whole blockchain?

Im using bitcoin core debian linux to process payments on my shop using RPC API calls. Now im switching wallet server, do I need to download whole block chain in order to process transactions on my ...
0
votes
1answer
30 views

What does the scriptSing contain when it is decoded with RPC framework?

I'm trying to get the wallet id from scriptSing and ScriptPubKey. When I decode the scriptSig, the result does not contain the address address. But when I decode the scriptPubKey, it contains the ...
1
vote
1answer
36 views

Original Bitcoin (Core), how did it generate private key?

I'm a newbie at this, but I have a question. How did the original Bitcoin (Core) v0.1 program generate random private keys? I was hoping for the exact source code or at least a good description of ...
3
votes
1answer
31 views

What are the downsides of integrating accumulators like utreexo to bitcoind?

Inspired by the discussion in this question I wonder what would be the downsides of adding accumulators like utreexo (paper at: https://eprint.iacr.org/2019/611.pdf) to bitcoind? On the positive ...
0
votes
1answer
42 views

Total Bitcoins in circulation on any given day? [duplicate]

I'm creating a spreadsheet to track total bitcoins in circulation from day 1. This would be to add up each Bitcoin per day created and add to an accumulating total. For example, if we picked any day ...
0
votes
1answer
58 views

How do I start a bitcoind server in deprecated mode for multiple functions

I have a bitcoind server running bitcoin-core version 0.17. Now since I need to use deprecated RPC methods I need to start the bitcoind server in deprecated mode, so I am already able to run it to ...
1
vote
2answers
105 views

How do I install a specific version of bitcoin-core

I need to run bitcoind version 0.17, however the latest available version is 0.18, if I follow the instructions from this link it installs the latest version. The below links lists the packages for ...
12
votes
1answer
1k views

Where in Bitcoin Core does it do X?

Note that this is a general question and answer designed to serve as a guide for finding things in Bitcoin Core. Where in Bitcoin Core's source code does it do X? How can I find that code by myself? ...
0
votes
1answer
62 views

How to transfer BTC balance when I have Private Key? [duplicate]

I have BTC public address and privatekey with balance. Can I Transfer the balance for another address?
0
votes
1answer
52 views

bitcoind bulk import private keys to different wallets and update with one rescan

I was wondering if someone already has this thoughts or problems: I generate bitcoin addresses and private keys by a script - to not depend on the bitcoin daemon and manage them in a database. By ...
7
votes
1answer
402 views

Could Neutrino technically as side-effect, incentivize centralization of the bitcoin network?

TWO questions on Neutrino:: 1) Could Neutrino technically as side-effect, incentivize centralization of the bitcoin network? Or other formulation: ...hinder higher degree of decentralization? Why ...
0
votes
0answers
64 views

Exception CompactSize when I parsing the blk file >= 976

I wrote a bitcoin core parser, for my personal project and because it helped me to start understanding the bitcoin protocol as a data structure. This project mainly parsers every blk file and creates ...
3
votes
1answer
53 views

Differences to CCompactSize and CVarInt

I'm developing a parser bitcoin core and I have a problem whit the type CVarInt, I using the decodifier mode of the CCompact size but at the block 976 I Have a problem whit the type, because the value ...
1
vote
1answer
103 views

I formated my hard drive with bitcoin core on it

First timer here ...I downloaded bitcoin core a few weeks ago until last week where it still had not synced so i started all over...I was originally waiting for BTC CORE to synchronize(I missed the ...
1
vote
1answer
63 views

Script Null into raw trasaction bitcoin core

I'm developing a parser for bitcoin core and into the alpha test of the parser,I noticed than the script bitcoin core are null and the hash raw transaction exist. An example: for this transaction the ...
0
votes
0answers
24 views

How to keep node mining automatically in qt wallet or console wallet

In the qt wallet, manually need to start the mining process in wallet console by giving generate nblock. so is there any other command or solution to automatically mine the block and how to confirm ...
0
votes
0answers
26 views

How to decrease target difficulty in bitcoin source (v0.8)

I have followed this video series ( https://www.youtube.com/watch?v=mDGxGYvkDEE ) to create an alt-coin by forking Litecoin v0.8, which i followed the videos and successfully created an altcoin. Now ...
1
vote
1answer
129 views

How happens the serealization the data in the file blkxxxx.dat in the bitcoin

I'm writing a blockchain parser for bitcoin core with C++ and now I want to enrich the data I read with the raw transaction and the previous and next block hashes. I used this library to convert the ...
0
votes
2answers
80 views

Verifying a digital signature that a transaction is going to an output with value X inside a script

Edit; after writing this post i have found that OP_CHECKDATASIG is basically this in a nutshell. It is implemented on Bitcoin Cash and may soon be on Bitcoin Core as well. Someone has even written ...
0
votes
1answer
54 views

Why future Bitcoin Core release shouldn't be in python?

Python offers various advantages including simplified rules of coding and ease of readability. It offers OOP, cross platform compatibility and has numerous libraries that have been added over time. It ...
1
vote
1answer
82 views

Why was/is Bitcoin written in C++ instead of C? [duplicate]

Why C++ and not C? Are there some features of C++ not present in C required for Bitcoin to function as it does? I can see that a similar question has been asked before but I am more curious as to the ...
0
votes
1answer
45 views

Need to use two bitcoin core but issue with syncing

Need to know how we can use two bitcoin node for example. I do have two bitcoin full nodes A and B. Created wallet address at A and has all transaction details at wallet.db in node A. But I need to ...
0
votes
0answers
17 views

Is their a way to use Bitcoin's Testnet/LN Testnet within CLI without downloading Bitcoind?

I'd like to start working with Bitcoin's & Lightning's Testnet but don't want to download bitcoind on my current computer.
0
votes
2answers
37 views

Bitcoin core make error

I am new to bitcoin core development. I have created a clone using bitcoin core on a mac os mojave 10.14.3. I am have installed all dependencies and am able to run the autogen.sh and configure with ...
9
votes
2answers
222 views

BIP44: What's the use of internal addresses?

I've read other questions (and their answers) on this but I still don't see the use for internal addresses. I get that you're supposed to send the change of a transaction there but I don't see how ...
1
vote
1answer
183 views

How to discover startup flags or command-line options for bitcoind?

I'd like to query the Bitcoin daemon (bitcoind) to find out what startup flags (command-line options) were sent to it on startup (or the current state if it has changed, e.g. -server=0/1 changing). ...
-3
votes
1answer
61 views

Reset or backup from a blockchain possible? [closed]

i have a coin for my own interests. With this i will learn how works all. So i have install the daemon on a vps All works fine. Mining works. And the first 300 blocks i have created. Now i will ...
0
votes
1answer
36 views

in transaction, what is 'hash' data?

i'm studying Bitcoin: A Peer-to-Peer Electronic Cash System Satoshi Nakamoto and this paper introduce a transaction model. (above picture) but i don't understand what is 'Hash' means exactly i ...
0
votes
1answer
44 views

Can i create wallet services of bitcoin core wallet [closed]

Is it possible to create wallet url services for bitcoin core wallet
1
vote
1answer
175 views

Extract sender ID and recipient ID of a bitcoin transaction [duplicate]

I'm new to this world and I'm trying to learn the blockchain world and especially now I've concentrated du bitcoin-core, I would like to parser and get the various information like the various sites ...
0
votes
1answer
70 views

json-rpc of bitcoin not working for testnet(curl command)

I am trying this command to get transaction from bitcoin testnet: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["txId"] }' -H 'content-type: text/...
0
votes
1answer
145 views

Unable to get transaction with json-rpc command

I am trying this command to get transaction from bitvoin testnet: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["txId"] }' -H 'content-type: text/...
2
votes
1answer
59 views

where is the adjustment calculation for the target value in the source code?

Can someone point me to the source code and explain how the average is calculated for the adjustment of difficulty that takes place every 2016 ? Update: i have consulted with previous questions but ...
1
vote
0answers
37 views

Bitcoin Wallet generation and TX signing [closed]

I am developing a Bitcoin Wallet in Javascript. I've worked on ETH but it's my first time on BTC. Here are following queries if anyone can help: How do we generate bitcoin Wallet like we do in ...
0
votes
2answers
243 views

Non-standard transaction scripts broadcasting

I'm developing an application on Bitcoin blockchain, and I use output transaction scripts that are not standard according to the classic payment methods. However, even so, on Tesnet everything works ...
0
votes
2answers
202 views

Invoking the listunspent command via json-rpc on a full node

I am trying to use the following example code for C# programming, so I can connect to my own bitcoin full node: https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#.NET_.28C.23.29 Which has resulted ...
10
votes
1answer
1k views

What is the tradeoff between privacy and implementation complexity of Dandelion (BIP156)

Dandelion is a new relay protocol for transactions on cryptocurrency peer-to-peer networks. It has been heralded as a huge privacy improvement for cryptocurrencies at the networking level– I'm ...
0
votes
1answer
122 views

bitcoin core wallet transactions syncing

ill explain the steps i want figure out. I have an empty bitcoin core wallet . Step 1. I backup the wallet and go offline. Step 2. Someone send me a bitcoin to this wallet and i can see it(in ...
1
vote
2answers
155 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 ...
0
votes
1answer
80 views

CScript to CPubKey or derive CPubKey from CScript

Please can someone advise if it is possible to derive the CPubKey from a CSript object? Provided i get it up with an address before hand, I can use numerous functions to attain all the info from the ...
0
votes
1answer
111 views

Different redeemScript for the same scriptPubKey?

Most transaction outputs to P2SH addresses have the following scriptPubKey: HASH160 f45d94733d430261962932e0c847075195916a04 OP_EQUAL As I understand it, this transaction do not need to be signed. ...