Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

15
votes
6answers
18k views

Where to find help understanding Bitcoin's source code in C++?

I am looking to understand the Bitcoin C++ source code on GitHub. The Python one is simpler, but even that is too complicated for a beginner. Could someone guide me to some good resources on the ...
0
votes
2answers
19 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 ...
0
votes
1answer
54 views

Help With Gitian-Builder - Failed to load “rcfile”

I' having hard time building the Bitcoin using gitian-builder. I'm getting closer but i'm stuck at this error and I dont know what it really means or why is it even there. I'm using the gitian-build....
2
votes
1answer
406 views

Where is the source code that allows new coins to be generated?

As per Bitcoin documentation, new coins are generated and brought into circulation when miner receive the reward. I am not talking about existing coins that are collected at the time of mining. Can ...
9
votes
2answers
127 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
39 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
49 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 ...
-4
votes
1answer
1k views

Bitcoin-Core Developers sharing e-mail address?

I've been looking into the Github commit history of Bitcoin. I have no clue how git works, but interestingly, I'm seeing a number of developers' mail addresses associated with commits of others. For ...
0
votes
1answer
40 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/...
1
vote
4answers
1k views

Are there any opensource PHP cryptocurrency exchange/marketplace

As the title suggest, are there any opensource PHP cryptocurrency exchange/marketplace. Most of the ones I found does not seem to work or are abandoned.
0
votes
1answer
35 views
0
votes
1answer
31 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 ...
1
vote
1answer
46 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 ...
1
vote
1answer
91 views

Adding Dependencies to Bitcoin Core

I am currently editing a fork of Bitcoin Core. I have three libraries I would like to add as dependencies. One is my own creation (CPISync) and it depends on a second library (NTL) which in turn ...
0
votes
1answer
52 views

Prompting an account name

I made an account "hello" in bitcoin daemon and wanted to run this. Whenever i put in hello when prompted, getac1 would return empty array; whereas, getac2 and getac3 returns addresses associated with ...
9
votes
1answer
3k views

Why does the default miner implementation use pay-to-pubkey?

Looking at the v0.9.3 source in miner.cpp: CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey) { CPubKey pubkey; if (!reservekey.GetReservedKey(pubkey)) return NULL; ...
0
votes
1answer
46 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
44 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/...
0
votes
1answer
56 views

Lightning Network: what about tx fragmentation?

I really have no idea how to aks it right. Let me give an example: We have a some peoples A,B,C,D.... And A makes transaction to B, then A need to pay to C, then send some coins to D, etc... After ...
4
votes
1answer
523 views

Is there a class or sequence diagram for BitcoinCore?

I'm looking at the code located at https://github.com/bitcoin/bitcoin/tree/master/src Does anyone have a basic diagram of what calls what, just a sequence chart of how all the classes piece together ...
0
votes
1answer
56 views

Diferent redeemscript for the same scriptpubkey?

Most transactions to p2sh address has the follwing scriptpubkey HASH160 f45d94733d430261962932e0c847075195916a04 OP_EQUAL As I understood, this transaction do not need to be signed. Is it true? ...
2
votes
1answer
33 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
34 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
1answer
51 views

Converting raw scriptPubKey to readable format

I am debugging Bitcoin cpp code. I wanted to see what exactly come for scriptPubKey property of output. Theoretically, I know this but I want to see in the code how does it looks like. Now while ...
0
votes
2answers
70 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
96 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 ...
1
vote
1answer
52 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
53 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 ...
5
votes
2answers
558 views

How do I program smart contracts?

Is there a guide to learn how to program smart contracts for the Bitcoin blockchain?
6
votes
2answers
2k views

How to open bitcoin source in IDE?

After downloading bitcoin source from github I'l try to open it in Netbeans for Mac. Please tell how to open all bitcoin project for run it with breakpoints in IDE?
1
vote
0answers
24 views

Transaction broadcast mechanism

After initiation of transaction, transaction will remain in the memory pool of all peered nodes. How Transaction reach to the memory pool after receiving by the node? Do transaction broadcast to all ...
3
votes
1answer
50 views

OP_CHECKLOCKTIMEVERIFY . Include / reject or will not included in block?

What happened if I translate to network transaction with the folowing redeem script: [now + 3 months] CHECKLOCKTIMEVERIFY DROP DUP HASH160 [Bob's Public Key Hash] EQUALVERIFY CHECKSIG This tx will ...
1
vote
1answer
56 views

Is it safe to store bitcoins on p2sh (no multisig)?

I've just generated p2sh btc address and look in the output script: HASH160 PUSHDATA(20)[e5c32bdc7f7fb1e6ae7aa1baf42a429803054d2c] EQUALVERIFY while normal (legacy btc address) transaction has ...
0
votes
1answer
29 views

how to calculate max spendable from all wallet

Using latest bitoind, any way to calculate max spendable from wallet with some amount of outputs? For example i need to send all wallet amount to 2 outputs and set mining fee enough to get ...
3
votes
1answer
432 views

Is Bitcoin network an Asynchronous network or a synchronous network?

Conventional BFT protocols work on weak timing assumptions, and if a faulty primary does not respond or forward a client's request a view change message is initiated by the backup nodes. Therefore, if ...
1
vote
1answer
909 views

Why do we need block hashes in blockchain?

I believe there are around 3 types of overall hashes that we deal with in Bitcoin. block hashes Merkle tree hashes (makes transactions tamper proof by hashing them up to the Merkle root) public-...
0
votes
1answer
373 views

Bitcoin Insight API - How to create new address?

I need to create new public address with private key. but there is no way to create new address using insight rest api. If you guys are aware about insight api then please share with me code snippet ...
3
votes
1answer
3k views

Problem In Creating Genesis Block Twister-Core using Ubuntu and (Qt Creator IDE)

I am trying to create a genesis block in twister-core using Ubuntu and IDE Qt Creator. I have compiled the twister-core successfully, I have changed the these parameters for creating the genesis block ...
1
vote
1answer
96 views

bitcoin debug withe clion

I got this error when I have tried to compile on lubuntu 16.04 34: error: expected ‘)’ before ‘host_16bits’ inline uint16_t htole16(uint16_t host_16bits) using clion, is there any guide on how to ...
1
vote
1answer
67 views

Anyone could teach me more detail about version prefix

In this post Does the version prefix of an address force the type of transactions the address may treat?, I saw "the version byte doesn't actually appear in the final transaction." I don't understand ...
0
votes
1answer
281 views

how to get block information using node js

I have used bitcoin-core package in node js to get the information about the block detail using rpc command. For example: var Client = require('bitcoin-core'); const client = new Client({ headers:'...
0
votes
1answer
94 views

Payment Processing [duplicate]

Hoping to get some information from the community, as I've been searching for hours. We own a platform that processes payments for our vendor/customers in stripe and paypal. Recently, we started to ...
0
votes
2answers
77 views

How to monitor balance for addresses other than by using importAddress?

Is there any way, other than importaddress, to watch balances of specific addresses? If not, how it is possible for wallets and explorers to give information (balance, transactions) about specific ...
0
votes
2answers
141 views

Calculate the difficulty of Bitcoin network

Which variable among the components of the block header is computed (or rather obtained) to achieve the difficulty posed by the bitcoin network? Nonce or Previous block hash?
0
votes
2answers
143 views

find the maximum possible reward for creating a block using

I'm new to bitcoin development someone request from me to know the maximum possible reward for creating a block using some address. My Questions :- 1- Which framework and tools can help to do that ? ...
1
vote
1answer
33 views

Does all miners in mining pool increase the nonce variable one by one starting from zero?

Let us consider we have n miners in our mining pool. Now the manager of the pool verified the transactions and packed into a block to be mined. Then it passed the block to all n miners in the pool. ...
1
vote
0answers
13 views

how do i change my bitcoin cleint application?

I recently downloaded the bitcoin (--testnet) blockchain data using Bitcore(I thought it was the Orginal client) for some development purpose. but now, I like to move to bitcoin core client. Should I ...
0
votes
2answers
1k views

Question on getaccountaddress, getnewaddress, getAddressesByAccount

I would like to get some feedback. I am new to the bitcoin development and I don't want to misunderstand something important before I start designing the application. I am working on bitcoin online-...
-2
votes
1answer
43 views

Why does bitcoin not have live support

I have at least to wallets never spent from that were recently restored 1 has 50 bitcoin the other I believe at least a thousand started in 2009 my question is who has access to remotely upgrade my ...