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.

0
votes
1answer
18 views

bitcoin: time of block size

I'm trying to figure out the size of the block and i have trouble calculating the number of bytes of time one block has time like this: "time":1516430234 After counting the bytes, the value is :5 ...
1
vote
1answer
490 views

BTC Source code amount.h file

I have question about the source code, under src/amount.h I see the max coin supply being 21.000.000 (million) under the variable called MAX_MONEY. I want to ask what other variables mean, CAmount ...
0
votes
1answer
230 views

How to create multi-user bitcoin wallet using UTXO?

We are developing bitcoin wallet for multi-user. We are using Bitcoin core as Bitcoin wallet. Bitcoin core is generating random address. we cannot show balance because After one transaction rest of ...
0
votes
2answers
194 views

Can you mine smaller cryptocurrencies - e.g. coins found in an ICO etc?

E.g. any of the coins found here: https://coinmarketcap.com/
0
votes
1answer
172 views

Bitcoin unconfirmed transactions - what is the best solution to fast it up? [duplicate]

I have couple of unconfirmed transactions that i want fast up. How i do it quickly and easily ? What do you do ? the fees going insane (over $12 for the smallest transactions) i want to send with ...
1
vote
1answer
212 views

In Bitcoin source, what is the UniValue objects purpose?

In the bitcoin source code you can see a lot of objects of type UniValue, particularly in the miner.cpp and rpc/mining.cpp. What is the utility of this UniValue object? Is it used to update the ...
4
votes
2answers
477 views

How double spend is handled in lightning Network?

How Lightning Network handles double-spend? What will happen when the other person is not available online to enforce the integrity of the transactions? PFB my understanding of the Lightning Network. ...
1
vote
1answer
185 views

Where is merkle path of a transaction stored in a transaction?

I understand every transaction can be verified if it belongs to a block by a merkle path which is basically a set of hashes that finally end up at the merkle root. I know the merkle root is stored in ...
4
votes
1answer
433 views

Why increasing block size increases centralisation?

I understand this is a contentious question. Help me understand Why increasing block size increases the risk of centralization? I don't understand what Antonopoulos meant when he said few people can ...
0
votes
0answers
149 views

Help with multi-input transaction by code

I'm trying to consolidate multiple inputs into a single output, all left over is for the miner. When I send my transaction to a peer, it is never mined. I believe something is invalid in the multi-...
3
votes
1answer
249 views

What Software Patterns does the Bitcoin source code use?

I'm a Master Student in Computing Science and currently investigating the Bitcoin source code on the Software Patterns that are used. Part of the assignment is to ask the community to guide us. I ...
0
votes
1answer
251 views

What is the mathematics behind the maximum number of 21 million bitcoins that can be generated? [duplicate]

How is this number 21 million bitcoins arrived at? What is the mathematics behind this number? Or is this number a constant that can be changed in the source code?
0
votes
1answer
325 views

Where to get a `BIP32 test pubkey`

I would like to create a gateway on MyCelium.com. This is for my testing, so I want to test it out first. But I struggle in getting a BIP32 test pubkey. There is no documentation on MyCelium.com, ...
1
vote
0answers
126 views

Why bitcoin does not generate and support Segwit addresses by default automatically?

I downloaded the latest bitcoin core, but the generated wallet and address was not a segwit. Why bitcoin core, does not support segwit by default? and when it will be changed?
0
votes
1answer
94 views

Where does the Bitcoin Core code serialize the number of transactions?

I've been studying the Bitcoin Core code, and I noticed that it uses a template READWRITE to serialize data structures for storing blocks. But it never seems to actually call "READWRITE(nTxs)", the ...
0
votes
1answer
38 views

What is 'Dvn2' stand for?

I started a regtest bitcoin network. Then I found most of my UTXOs are sending to a bitcoin address 'msvXYdtdhgWefyKPym2HnSmTUkxUsiDvn2'. The address is belongs to account 'Dvn2'. What is 'Dvn2' stand ...
3
votes
2answers
2k views

What is the difference between on-chain scaling and off-chain scaling?

What is on-chain scaling and off-chain scaling? What is the core difference between on-chain scaling and off-chain scaling?
1
vote
0answers
44 views

Do we know which companies donated to Bitcoin Core development?

Similar to a previous question (How do the people who work on Bitcoin Core get paid?) which I felt does not adequately answer my interest. Do we know specifically which developers are drawing a ...
1
vote
0answers
375 views

Bitcoin QT - why do I have an undefined reference to `qInitResources_bitcoin() error

I have built the Bitcoin source code, created my own genesis block and everything was working great! Now that I have changed the word bitcoin to GELF in some places of the program to suit my own ...
1
vote
1answer
55 views

Is there a way to launch bitcoin-core and have it shut down when synchronized? [duplicate]

I use bitcoin core infrequently. I don't want to have it running all the time, but I'm willing to (for now) devote disk space to having it stay current. I'd like to be relatively current whenever I ...
1
vote
1answer
2k views

Where is debug.log file in Bitcoin source code?

I am running 64bit Ubuntu 17.04, I am following this tutorial for creating a new altcoin. I am up to section 7, here to be exact: The first time you run the compiled code (daemon or qt), it will say "...
0
votes
2answers
151 views

Where is the nonce incremented in Bitcoin source code?

Where is the nonce incremented in Bitcoin source code? I found where the extra nonce is incremented, but not the regular nonce?
2
votes
1answer
703 views

How do the people who work on Bitcoin Core get paid?

I'm wondering how the people who work on or manage Bitcoin Core get paid, e.g. Wladimir J. van der Laan. Do they do the work just... as volunteers?
1
vote
1answer
94 views

Is there a logging system for bitcoind, and if so then where is the log?

Where and what is the name of log files of bitcoind? If I make a command like "sendtoaddress", will the command and the arguments (like the amount of bitcoin I sent and which address I sent) all be ...
1
vote
2answers
42 views

Which server(s) determine the difficulty and issue coins

I understand that the blockchain is a decentralized database, however what I don't understand is who runs the bitcoin software. Is this also decentralized? There has to be some form of "backend" to ...
1
vote
0answers
539 views

bitcoind transaction fee calculation

I'm using bitcoind and for the transfer of tokens from one account to other, I'm using sendFrom method. but there is a transaction fee calculation and on the bitcoin-qt panel, In the transactions ...
0
votes
1answer
98 views

How to create bitcoin wallet for many users?

I need create bitcoin wallet for many users but I have no idea how to do it. Before that I thought to do it with bitcoin-core. But it turned out that accounts are not what I need. In the new version (...
0
votes
1answer
315 views

How to create and load new wallet using multi-wallet feature (bitcoin-core v0.15.0)

I want to use bitcoin-core for many users and with the new version it became possible. I have no idea how to use this new feature. Please help me!
1
vote
2answers
330 views

Difference between account balance and the sum unspent transaction outputs

I have account in bitcoin-core (for example it's "maks") and there I have 0.00010884 BTC. getbalance "maks" 0.00010884 But when I get UTXO: listunspent 1 999999 [...array of addresses belongs to "...
1
vote
1answer
69 views

sendrawtransaction RPC format across core versions

Has there been any changes across core versions for the sendrawtransaction interface. I am trying to understand if upgrading the core version from say 12 to 15 needs a change in serialization. I'd ...
0
votes
1answer
58 views

What part of the code is responsible for coinbase payouts?

Looking for the part of the code responsible for doling out coinbase to the miner who solves the puzzle. I'm guessing it's somewhere in src/rpc/mining.cpp, but it's tough to figure out from the code ...
3
votes
1answer
70 views

Development questions regarding debugging and control flow

I'm looking for a better understanding of how the flow of the code works. I'm running bitcoind -regtest in one terminal window, and in the other I'm using bitcoin-cli regtest generate to create blocks....
1
vote
1answer
133 views

How transaction becomes confirmed by miners if InputScript has only the Sig

Please help me to understand how bitcoind client verifying TX with Input Script which consist only from the Sig. For example TX 6D5DF6C0D66CFFC25CC1ABA3655952D7B081ED4E9EA3B70FCD964FDBBA01E91E has ...
0
votes
3answers
276 views

How can I start development in Bitcoin?

How can I start development in Bitcoin? I am a software engineer and i am interested in development and programming part of bitcoin. A little guidance would be appreciated.
0
votes
1answer
25 views

When does bitcoin wallet subtracts the coins spent by that particular address?

After how many confirmations does the bitcoin wallet subtracts/updates the account balance in respect of respective wallet address.
3
votes
1answer
227 views

What are the trust assumptions in --assumed-valid in bitcoin core 0.14?

Please help me understand and distinguish the trust assumptions in the following three cases shown below. Specifically, please elaborate the attacks possible (even though completely theoretical) and ...
0
votes
1answer
315 views

Does bitcoin mining power add up and how does this affect the difficulty?

I read that if my hashpower remains constant, and total network hashpower increases, after 2016 blocks difficulty will increase. Now as far as I have understood, difficulty increases if blocks are ...
0
votes
2answers
121 views

How is it possible to patch Bitcoin?

How can someone patch Bitcoin? I don't understand, if someone wants to change or add code to the Bitcoin repo. I've read there is a few people that have access to publish new code (?). Why are those ...
0
votes
1answer
301 views

Is it possible to calculate a public key from the message hash and signature?

Is it possible to calculate a public key from the message hash and signature?
0
votes
2answers
204 views

When does `vin` contain multiple addresses

I need to find out all the bitcoins transferred from a particular address to a particular address. For this I am using the blockexplorer API, for this I use their "Transactions for multiple ...
2
votes
1answer
408 views

What is the required input for python-bitcoinlib getrawtransaction command?

I am running a bitcoin node on my machine, fully synced with RPC commands enabled, rpc server live and txindex=1. In the command-line I can run the following RPC call and obtain the information ...
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-...
1
vote
3answers
2k views

bitcoin setup using nodejs

I have to to use bitcoin api using nodejs. but I cannot understand from where I have to start.Search some node module like bitcoin-core and bitcoin. Can anyone describe the step how can I set up ...
0
votes
1answer
301 views

Web Wallet difference

I have some questions about the listed Web wallets. Can someone please help me understand? The bitcoin.org page for some web wallets says "Shared control over your money" (e.g. BitGo, BTC.com) while ...
0
votes
2answers
237 views

Sync too low when using BitCoinJ to create and host own wallet

I need to use BitcoinJ to create and host wallet on my own website. However, it keeps downloading blocks and the sync seems taking forever. I need to be able to create a wallet within a few seconds. ...
0
votes
0answers
135 views

How does the proof of burn helps in mining?

Following are question related to proof of burn. Miners sends the coin to a non-spendable address. What are the coins sent to the non-spendable address? Is it transaction fee or miners own coin or ...
0
votes
1answer
191 views

Bitcoin decompiler

Is there any tool for Bitcoin blockchain decompiling? I see news about Ethereum Decompiler, but is something like for Bitcoin?
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 ...
0
votes
3answers
78 views

what if someone tries to finish public keys by non-stop creating

Lets say one big company or country start a war against bitcoin and they have very powerful machines. What happens if they starts to create public key all the time? Is it possible to finish all the ...
0
votes
1answer
65 views

Which code part in bitcoin-core project generates new bitcoin addresses?

i am trying to find out which c++ code in https://github.com/bitcoin/bitcoin is responsible for generating bitcoin address and private key.