Bitcoin Forum
May 25, 2024, 08:43:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 [84] 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 ... 590 »
1661  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Core Websocket RPC endpoint? on: December 29, 2017, 07:49:52 AM
Bitcoin Core has a startup option called blocknotify. You can give this a command which Bitcoin Core will run every time it receives a new block. This command can be a script which notifies something else.

You can also use the ZeroMQ notification framework which Bitcoin Core supports.
1662  Bitcoin / Development & Technical Discussion / Re: in bitcoin miner.cpp what means nblocksize on: December 29, 2017, 07:44:59 AM
it's value is 1000....The max block weight is 4000 units.
You've dropped a few zeros. The max block size was 1000000 bytes. The max block weight is 4000000 units.
1663  Bitcoin / Development & Technical Discussion / Re: Bitcoin Improvement Proposals - Case study - >Fallback Nodes on: December 29, 2017, 07:43:53 AM
I wonder if there is a study to decrease the latency of Bitcoin core p2p network nodes?
Yes, this is an area that has been extensively studied and researched. Reducing network latency has been something that Matt Corallo has been working on a lot and has resulted in FIBRE and BIP 152 Compact blocks.

if we increase the number of "Fallback Nodes".
compare the amount of "FB-nodes" with the miners / Fullnodes and / or network users.
Increasing the number of these fallback nodes would not help at all whatsoever. They are rarely used and are not even used for normal connections. Rather they are only briefly connected to to get the IP addresses of other nodes to connect to. Increasing their number would not help at all.
1664  Bitcoin / Development & Technical Discussion / MOVED: Php exploit Injector. Hack 65% of all faucets. free proofs inside on: December 28, 2017, 05:59:53 PM
This topic has been moved to Trashcan.

No Illegality.
1665  Bitcoin / Development & Technical Discussion / Re: Github code on: December 28, 2017, 06:12:22 AM
Is it agreed that bitcoin code is inherently very inefficient.
No, it is not agreed. Firstly, there is no "bitcoin code". There are multiple implementation of the Bitcoin consensus rules. If you are referring to Bitcoin Core, it can sometimes be inefficient but there is nothing inherent about consensus implementations for Bitcoin being inherently inefficient.

To me it appears much code is duplicated unnecessarily.
Bitcoin Core certainly has code duplication, but it is much better than it was in the past and it has become much more efficient.

Ultimately, to me, bitcoin's code is still pre-beta, with minimal comments and few modules.
Bitcoin Core may still be like that, but that is only one implementation.

Can someone please advise which .cpp file states which hashing algorithm, the coin is using. ie what differs between sha265 hashed coin's code vs an equihash.
There is not one place that specifies a hash function that is used; rather every time the hash function is used, the function itself is directly called. It's not like there are some UsePoWHash or UseConsensusHash functions.

The files that you are looking for are probably src/chainparams.cpp, src/validation.cpp, and the files under src/consensus/. However many other source files include consensus related things.

Take bitcoin gold for example. How does their wallet know how to interpret both equihash and sha265, depending on which block is being interrogated.
Presumably there is a swtich. Simply an if statement; if after activation height, use equihash, else use sha256d.

Bitgoin gold has significantly more lines of code than bitcoin. Is this purely to allow the blockchain to cope with two completely different hashes?
Yes.

I can recall older coins changing algorithm over the years, though most did a 1 to 1 swap at an exchange. To me that is cheating. Obviously it cant be done eg Bitgoin gold, though is an algorithm change mid blockchain difficult to implement?
Not necessarily.
1666  Bitcoin / Bitcoin Technical Support / MOVED: Is there any way to see a btc transfer real or fake? on: December 28, 2017, 05:42:42 AM
This topic has been moved to Trashcan.

Duplicate
1667  Bitcoin / Development & Technical Discussion / Re: Transaction Verification after Mining is Gone on: December 28, 2017, 04:34:40 AM
From what I understand the Miners are responsible for veirfying the accuracy of the transactions contained in a block
No. It is not the miner's job to verify transactions; that job is for the full nodes (of which miner's are a subset). Miners do not determine what valid transactions are. Their only purpose is to order transactions and, when there is a conflict, say which came first and is the correct one. This ordering is also subject to certain restrictions and all blocks are validated by full nodes.

and as a reward the quickest one to come up with the correct hash earns Bitcoins.  Maybe it's a stupid question but what will happen to the Bitcoin network once all 21 Million Bitcoins are in circulation and there is no longer an incentive for Miners to operate their expensive and power hungry rigs, who exit the system after selling their Bitcoins?  Who performs the transaction verification then?  Or will Bitcoin grind to a halt when that happens?
No, that is completely incorrect. As I said, transaction verification is done by full nodes. Secondly, each transaction pays a transaction fee which is rewarded to the miner that includes the transaction in a block. So transaction fees will replace the block subsidy in the block reward.
1668  Bitcoin / Development & Technical Discussion / Re: A few questions on creating a transaction on: December 28, 2017, 04:30:34 AM
When creating the scriptSig, we sign the transaction hash using the spender's private key. Does that mean that the scriptSig is the same for all inputs?  Or is the tx hash calculated separately for each input?
The hash is different for each input.

Also, is there a developers chat or group?
#bitcoin-dev on freenode.
1669  Bitcoin / Development & Technical Discussion / Re: if I have no clue for the wallet.dat password of bitcoin core on: December 28, 2017, 04:29:35 AM
No, it is impossible. If it were, then what's the point of having a password and encryption?
1670  Bitcoin / Bitcoin Technical Support / Re: ERROR: ConnectBlock: Consensus::CheckBlock: bad-txnmrklroot, hashMerkleRoot mism on: December 28, 2017, 04:27:19 AM
What standard diagnostics tool is regularly used by this forum?
memtest86

Not sure I have a hardware problem. I've been using this external hard drive to torrent and run other tasks, and have no problems. I can also play video games and utilize my RAM with no issues as well.
Using an external hard drive is not recommended, both for performance reasons and data corruption reasons. USB is generally slower than the internal connection to a hard drive, so the sync will be much slower. Furthermore, we have found that people have had a hard time with syncing to external hard drives as Bitcoin Core will need continuous connection to the drive and any sort of interruption will result in data corruption. Have you tried not using the external drive?
1671  Bitcoin / Development & Technical Discussion / Re: what is the struct of value in the leveldb when use 'b' + block hash as a key on: December 28, 2017, 04:22:08 AM
There is no struct; it is a class that has a specific serialization. The implementation details can be found here: https://github.com/bitcoin/bitcoin/blob/master/src/chain.h#L370. The other stuff there (which can vary for each block), include the block's position on disk, its height, and the number of transactions.
1672  Bitcoin / Development & Technical Discussion / Re: Improving confirmation time on: December 27, 2017, 02:29:05 AM
So if you don’t like the term mempool, how about unconfirmed transaction pool, as long as you know what I’m talking about. I understand the transactions are not received at the same time by all nodes and miners, that’s why I brought up as a requirement that the content of the next block has to be agreed upon early enough. And no, the blockchain still has its value since the content is only then secured with the proof-of-work requirement.
How do you have all nodes agree on the contents of the next block? Don't just say "somehow", provide exactly how you think they would be able to do this. Furthermore, this does in fact allow for the blockchain to be done away with. The Proof of Work is how Bitcoin determines the transaction order and determines who is correct. Having some other method of determining the transaction order thus does not need the Bitcoin blockchain (note that this does not mean it can't use PoW or have PoW somewhere as part of it).
1673  Bitcoin / Development & Technical Discussion / Re: bitcoin is decided by port and algorithm? on: December 26, 2017, 07:08:38 PM
I tested the bitcoin wallet. I changed the name of the coin but I keep
1 I keep the port 8333 and 8332
2 I keep sha256d algorithm
3 I keep using the same genesis hash
And
I change the bitcoin name and the max_money

i found the the coin I mined was dropped and it will also follow the long Blockchain

Does that means
Once the algorithm and port and genesis hash was decided, the coin will merge even i changed the coin name etc?
Yes. The name is completely cosmetic; there is no name in the Bitcoin blockchain that identifies it as being Bitcoin. The thing that identifies it as being Bitcoin are the consensus rules. This DOES NOT include the port, but it includes the mining algorithm, the genesis block, the difficulty adjustment algorithm, etc. If you do not change any of the consensus rules, then you are using Bitcoin.
1674  Bitcoin / Development & Technical Discussion / Re: How to set bitcoin checkpointdata parameter in checkpoints.cpp on: December 26, 2017, 07:06:32 PM
mining itself will also be counted?
What do you mean by "mining itself"? Mining is not involved in this.
1675  Bitcoin / Bitcoin Technical Support / Re: hola my friends , need some help with a selling and transfer problems on: December 26, 2017, 02:50:50 AM
Please post the transaction ids of the transactions in question.
1676  Bitcoin / Development & Technical Discussion / Re: Where is the bitcoin source code and guide to compile the bitcoin wallet on: December 26, 2017, 02:45:08 AM
Is there any instructions for how to compile a new one?especially for qt wallet and Ubuntu version ?
Read the documentation provided in the source code. Specifically this file and this file.
1677  Bitcoin / Development & Technical Discussion / Re: How to set bitcoin checkpointdata parameter in checkpoints.cpp on: December 26, 2017, 01:41:18 AM
Use a script which requests from Bitcoin Core each block and count the number of transactions in each block. Keep a running sum until you reach the block you want to checkpoint at.
1678  Bitcoin / Development & Technical Discussion / Re: Improving confirmation time on: December 26, 2017, 01:36:08 AM
Figure 2 — Coordinated ordered transaction mempool
The blockchain's sole purpose is to establish transaction ordering; if we can do that in the mempool (i.e. without the blockchain), then there's no need for the blockchain! This is effectively impossible to do though because Bitcoin is an asynchronous system; my node's mempool will be different from your node's mempool and, because of network latency, I will receive transactions in different orders than you do.
1679  Bitcoin / Wallet software / MOVED: You can use Breadwallet and Electrum at the same time. on: December 25, 2017, 02:16:51 AM
This topic has been moved to Trashcan.

Duplicate
1680  Bitcoin / Development & Technical Discussion / Re: Debugging Bitcoin/Litecoin on QT Creator? Is this possible? on: December 23, 2017, 09:46:42 PM
The developers of Bitcoin Core (which Litecoin Core routinely rebases onto and thus instructions for recent versions of Core also apply to Litecoin) use the Linux command line and GDB to debug. Very few developers use an IDE or GUI for any sort of work. It is all mostly done with text editors and GDB from the command line.
Pages: « 1 ... 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 [84] 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 ... 590 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!