Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
1answer
413 views

Bitcoin Cash - Trying to implement Explorer in Linux server but getting error

I have tried to setup bitcoin cash explorer in my Linux server and server start working for 5 minutes but after 5 minutes it is returning an error and I have configured explorer-API and it is not ...
0
votes
1answer
47 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 ...
0
votes
0answers
50 views

How does the bitfury crystal software works?

Can someone explain to me how the crystal software works? The transfers made using multiple wallets are anonymous and not traceables?
1
vote
2answers
97 views

Can bitcoin script look at the output?

I was wondering if it possible for a bitcoin script check part of the output of the transaction. Lets say, I want to check that the transaction is splited equaly between 3 outputs, I dont care which.
0
votes
1answer
43 views

What does bitcoin actually do with these problems?

I understand this might be a simple question but what do cryptocurrency companies do with these problems when you mine. I know you get reward for solving a problem but what will bitcoin do with that?
0
votes
0answers
22 views

When bitcoin is rewarded to a miner, is the transaction recorded on the blockchain? [duplicate]

Bitcoin is created out of thin air and rewarded to the first miner with a valid PoW, but if this transaction recorded on the blockchain then someone else has to validate this transaction and so on it ...
0
votes
1answer
84 views

Mining & The Double Spending Dilemma

My understanding of the double spending problem is as follows: Suppose account A has 1 Bitcoin and sends it to account B and then creates another transaction which sends the same Bitcoin to account ...
0
votes
3answers
696 views

Bitcoin Speed: 7 Transactions Per Second?

I read somewhere that Bitcoin can only handle 7 transactions per second. This works out to 604,800 transactions per day. Visa currently processes about 1,700 transactions per second (and can handle ...
1
vote
1answer
1k views

How to create a blockchain snapshot for a hardfork?

I've done source forks (altcoins) and I understand how those work. But I'm a little stuck on how forks are activated? I need to know how blockchain snapshots are created and how the wallets know to ...
0
votes
1answer
71 views

I have set blockgeneration time to 15 second but blocks are generated with the speed of 1 block per min(avg)

I have forked Litcoin 0.8v to make my own costomized coin(learning purpose), with some changes in parameters: 1. Total no of coins to be mined = 270,000,000. 2. Block formation time = 15sec. 3. ...
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
406 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
218 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
185 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
103 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
185 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
423 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
175 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
409 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
51 views

Updating the site's wallet now that SSL support for RPC,has been dropped

I used to have an old bitcoin wallet version 0.11.2 on my site for years. Now I've downloaded the latest version 0.15.1 and it says RPC: SSL support has been dropped. I've removed the rpcssl=1 ...
0
votes
0answers
129 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
245 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
220 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
273 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
87 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
37 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
42 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
354 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
141 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?
1
vote
1answer
670 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
93 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
519 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
97 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
290 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!
0
votes
2answers
311 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
68 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
57 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
69 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
123 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
274 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
197 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
309 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
115 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
262 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?