Bitcoin Forum
May 11, 2024, 03:23:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 21 22 23 24 25 26 27 28 29 30 31 32 33 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 ... 589 »
1401  Bitcoin / Development & Technical Discussion / Re: How are unique address in Bitcoin calculated? on: February 08, 2018, 06:39:45 AM
Addresses cannot be deleted; in fact on a technical level, there are no addresses.

What that chart shows is how many unique addresses contains coins. Recently many people have been moving their coins to segwit wallets which means that they are consolidating their coins into fewer addresses. Furthermore, many people have been doing such consolidations to avoid paying higher fees in the future.
1402  Bitcoin / Development & Technical Discussion / Re: Estimating Segwit transaction fees on: February 08, 2018, 06:37:44 AM
It's that Core's fee estimation (like Electrum) is bad.
Compared to other fee estimators, it's very good. Note that Electrum basically uses Core's fee estimation (the estimation from the Electrum servers which use Core as the backend).

Which leads me back to square one: How are people estimating their fees with Segwit? There's gotta be a better way.
Many people look at fee information charts like https://dedi.jochen-hoenicke.de/queue/#24h and choose a fee rate based on what outbids most transactions. Unfortunately this kind of pattern seeing and the processes that the human brain does in order to make such a decision is hard to do algorithmically. Note that just doing that in software is actually very gameable and ignores a ton of other information that helps make a better fee rate prediction.
1403  Bitcoin / Development & Technical Discussion / Re: MultiSig: Is there such a thing as 'reverse SSS' ? (Shamir secret) on: February 08, 2018, 03:26:43 AM
What you are interested in is key and signature aggregation. Recently such a scheme using Schnorr signatures was announced. The thread about it is here: https://bitcointalk.org/index.php?topic=2818782.0
1404  Bitcoin / Development & Technical Discussion / Re: bitcoin wiki: target calculation mistake? on: February 08, 2018, 01:01:13 AM
0xFFFF0000 is a compact representation of the target. The target is a 256 bit integer, but is compacted into a 32 bit form that can be stored in blocks. What that format is is described here: https://bitcoin.org/en/developer-reference#target-nbits.
1405  Bitcoin / Development & Technical Discussion / Re: Generate coinbase from to send to miner (ckpool source code question) on: February 08, 2018, 12:58:07 AM
1. Transaction ids received from GBT should be reversed byte-wise or used as is to calculate markel ?
Things are only reversed for display to the user. On the protocol level, things are used as provided.

2. Considering the is no transaction so sha256d of coinbase becomes the markel and 2xhash output of coinbase should be used as is in block header or it should flipped byte-wise ?
ex: 2xSha256 of below coinbase
The sha256d of the coinbase will be the merkle root if there are no other transactions.

01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff2c03dc851300043c487b5a0c5a7b47ff0100000000000000066e5175616e740d2f6e5175616e 742e706f6f6c2fffffffff026fe2ab04000000001976a9144ab4b2aa35879fe47e6a16ea783494f 9dcf615b788ac0000000000000000266a24aa21a9ed60af3e8651f28353ad47a0664c3892b67d82 0d3828af0c5dc854fc2e0bec44d200000000

= 5cb15257b783b9a4c12d1425ad80985a9d43ee474019d5026d04a0e80090f32b

So block header should use it as is or it should be flipped ?

0000002062be1e317f0dce1aa3fcf2b3bf9d604e2b20e853a7575ba03e0d0000000000005cb15257b783b9a4c12d1425ad80985a9d43ee474019d5026d04a0e80090f32b898e7b5aaddc001b00000000
As is. This is correct.

3. Submitblock param = block header + (number of transactions + 1 for coinbase) + coinbase + All the transaction data field received from GBT . Is this correct ?
Yes.
1406  Bitcoin / Development & Technical Discussion / Re: Estimating Segwit transaction fees on: February 08, 2018, 12:54:40 AM
I also haven't wrapped my head around satoshis/bytes vs. satoshis/vbytes and how to figure out how much transaction size is allocated to witness data.
vbytes are calculated by first dividing just the size of the witness data by 4 and then adding that to the size of the non-witness data.

I basically just eyeballed the Core next-block fee in satoshi/byte and reduced it by 25% to be on the safe side.
Bitcoin Core's estimator actually uses vbytes, it's just labeled improperly.
1407  Bitcoin / Development & Technical Discussion / Re: Atomic Multi-Path? on: February 07, 2018, 07:14:29 PM
So how excited should I be while it still appears to be in the concept phase?  Is it one of those "if it sounds too good to be true... etc" deals?
You should be fairly excited. The proposal comes from Laolu, one of the primary architects of the Lightning Network and main developer of LND. While perhaps the proposal as it was exactly written in the email won't happen, I'm sure that something very similar to it will be created and implemented.

Has anyone identified any pitfalls or shortcomings yet?  Or is it simply too early to tell?
There is active discussion about this on the mailing list (I haven't really been following), and it is still in the concept phase so expect the proposal to change and the issues worked out over time.
1408  Bitcoin / Development & Technical Discussion / Re: any way of deriving legacy private key from a segwit address for forked coins? on: February 07, 2018, 07:08:27 PM
Segwit addresses are not derived from legacy addresses. However a legacy address can be derived from a private key for a segwit address, and vice versa. Private keys are just numbers and are not locked to a specific type of address that they should be used to create.

Note that Electrum uses a special format for private keys in order to indicate what type of address they should be used for. You will need to export those private keys and convert them into a format that your forked coin's wallet can understand.
1409  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Core 0.15.1 re-d/l ? on: February 07, 2018, 07:05:11 PM
which can be found here, https://www.bitcoinarmory.com/
That is the old website. The correct one is https://btcarmory.com/.

do you know what armorydb.exe is? big thanks for replies...  Grin
Armorydb.exe is the backend for the Bitcoin Armory wallet. It communicates with Bitcoin Core and builds its own databases and block index from Bitcoin Core's data. This is what actually performs the transaction scanning stuff.

ArmoryQt.exe is the GUI application for Armory. It relies on ArmoryDB in order to function.
1410  Bitcoin / Development & Technical Discussion / Re: Why did satoshi develop bitcoin in windows? on: February 07, 2018, 04:45:33 PM
He probably only had experience programming in windows and with GUIs. Bitcoin 0.1.0 was a Windows only, GUI only application.
1411  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Core 0.15.1 re-d/l ? on: February 07, 2018, 04:31:45 PM
The 'bitcoind' app is 'bitcoin daemon'? What exactly does that do?
Yes.

It does everything that Bitcoin Core's GUI does but without a GUI. it's meant for people running headless servers or who just don't like GUIs.

And- do I need to open bitcoin core every time before opening Armory? Thanks for your reply-
Yes.
1412  Bitcoin / Development & Technical Discussion / Re: Generate coinbase from to send to miner (ckpool source code question) on: February 07, 2018, 04:26:04 PM
Thanks, Below is the request received from pool, so if you check first header above which looks like big endian has previous hash as is.
It is not big endian.

I do not think that this is exactly what your miner received from the pool. I think what you are seeing is based on an internal representation of the data which makes it appear to be different than what it actually is.

So bloc header has previous hash flipped in 32 bit chunk ?
That is what is being displayed, but that is not what it actually has to be in the block header.

But as per documentation it doesn't say so.
Because your miner is displaying that information incorrectly.

prev_hash: da780ff935f3917ed99a7b616cb98ebb3104b3fa000b7acd0000000000000000
The correct block hash is f90f78da7e91f335617b9ad9bb8eb96cfab30431cd7a0b000000000000000000. You will notice that if you byteswap this so that it is actually in big endian, the block hash becomes 0000000000000000000b7acd3104b3fa6cb98ebbd99a7b6135f3917eda780ff9 which is an actual block that you look up on a block explorer or node. Looking up what your miner is displaying in both its original form and byteswapped form results in not being able to find such a block.
1413  Bitcoin / Development & Technical Discussion / Re: Bitcoin Core & Milestones on: February 07, 2018, 04:15:52 PM
The new issues and PRs are related to critical-sh bugs found in RC1 and RC2. The final version will be released when those bugs are resolved and no new ones are found with the next RC.
1414  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Core 0.15.1: RPC call to re-read config file? on: February 07, 2018, 04:14:32 PM
Quote
New rpc command "reloadconfig" to dynamically update configuration parameters (Issue #309). Command line parameters will not be overridden. Notice that many core parameters are used only during startup.

But such command does not seem to exists.
Because that Pull Request was not merged.


Why do I need it? - it seems that adding an entry wallet=mynewwallet.dat will create a new mynewwallet.dat if it does not exists when the program starts.
This is good since I want to be able to dynamically add wallets in a multi-wallet mode. but the server needs to restart entirely which is bad for me.

Is there an option I missed in Bitcoin Core RPC to reload the conf file? My version is 0.15.1 on Windows 10.
No, there is not.

Reloading the bitcoin.conf file comes with a lot of potential consequences that can result in strange or broken behavior. There are many things that have to happen at startup in order for some things to work.

What you want is unrelated to the bitcoin.conf file. There is no need to let the bitcoin.conf file be reloaded in order to allow for wallets to by dynamically loaded and unloaded. Instead of jumping to that extreme, we can just add a feature that lets you dynamically load and unload wallets. In fact, there is an open pull request for exactly that: https://github.com/bitcoin/bitcoin/pull/10740. It is not merged yet so this behavior does not currently exist in Bitcoin Core. But hopefully in the next major release, it will.
1415  Bitcoin / Development & Technical Discussion / Re: Generate coinbase from to send to miner (ckpool source code question) on: February 07, 2018, 05:33:17 AM
cgminer log shows stratum header constructed as below
20000000da780ff935f3917ed99a7b616cb98ebb3104b3fa000b7acd0000000000000000854e4bd db4eeb7c1841b651ceb26f4d12116bfcc2c41ed18220fd701571914ba5a6fdbfa176c2146000000 00

Look at version, time, difficulty part. Shouldn't it be flipped as big endian ?
No, everything in Bitcoin is serialized as little endian. Actually, this is serialized as big endian, but in kind of a strange way. It seems like it is being printed out with each 4 byte chunk (32 bit integer length) in big endian, which also means that the merkle root and previous block hash fields are messed up. But this is not the actual block header it is hashing.

And at the calculation of midsate its flipping all 4 bytes.. meaning 00000020f90f78da7e91f335617b9ad9bb8eb96cfab30431cd7a0b000000000000000000dd4b4e8 5c1b7eeb41c651b84d1f426ebccbf162118ed412c01d70f22
This is the correct block header. Everything is in little endian as it should be. This is what the block header should look like.

When submitblock is called, what should be sent as block header ?
The second one.
1416  Bitcoin / Development & Technical Discussion / Re: Bitcoin's earliest developers on: February 06, 2018, 04:47:03 PM
Sipa is the only person still working on Bitcoin on that list, and is therefore the longest serving programmer in Bitcoin development. So Sipa has probably contributed to Bitcoin development more than anyone else.
I'm pretty sure that sipa was only added to that list so that he could help migrate/maintain the bitcoin-dev mailing list. Development had moved from sourceforge to github in 2010 before the sourceforge repo was abandoned.

IIRC all of Wladimir, Pieter, Greg, Gavin, Jeff, and Matt all got involved within months of each other in 2010-2011. I think Wladimir is actually the longest contributing active contributor.

The person who contributed the longest and is still somewhat active is actually Dooglus.



A good place to find this kind of history is to scroll through the git log in reverse (i.e. earliest commit first).
1417  Bitcoin / Development & Technical Discussion / Re: Bitcoind - Getbalance command on: February 06, 2018, 04:02:00 PM
You can't do it with bitcoind/Bitcoin Core. In order to find the balance of an address, an address index is required. But maintaining an address index is expensive and not that useful since the node does not need it to operate, so one is not maintained. There is no code in Bitcoin Core to build such an address index.

It is important to note that addresses and balances do not exist on a technical level. It requires significant computation to produce balances for all addresses, and requires a lot of additional storage space to store that data.
1418  Bitcoin / Development & Technical Discussion / Re: Why the fuck did Satoshi implement the 1 MB blocksize limit? on: February 06, 2018, 05:40:02 AM
This thread has devolved into a lot of trolling, mudslinging, and flaming. Thus it shall be locked.
1419  Alternate cryptocurrencies / Altcoin Discussion / Re: private network question on: February 06, 2018, 05:39:22 AM
Private network based on what? Bitcoin does not have a "genesis Json file"
1420  Bitcoin / Development & Technical Discussion / Re: A few questions about bitcoin's codebase on: February 06, 2018, 01:48:25 AM
Hello all, i've been a developer for the past couple of years and i would like to jump onto the blockchain coding paradigms, i've downloaded the first satoshi client's code (0.1) and there's this overview https://bitcointalk.org/index.php?topic=41718.40 that i would like to follow but there's a couple of missing files (i presume) mainly, i can't find the init.cpp file,
It doesn't exist in 0.1.0. A lot of stuff has changed since then, and it really is not worth your time to read through the original source code. So much has changed that whatever you learn is not applicable to the latest source code. You should instead try to learn and understand Bitcoin Core's latest source code. Keep in mind that the project has grown significantly since 0.1.0 and is much more complex.

anyway, i would like to ask a couple of questions to any developer that delved into the code out there, first, does anyone out there know of a chatting room/forum for people like myself?
You can try the #bitcoin, #bitcoin-dev, and #bitcoin-core-dev channels on Freenode's IRC.

Also, does anyone know of any guides/overviews/write ups that explain any parts of the code of any version of the bitcoin client? or is there any other altcoins that are similar to follow but a little easier? Any books that helped you go through the code?
I don't know of any recent ones that are accurate. But it isn't all that hard to follow the code. It is fairly well commented and the names of things are self explanatory. You can start with src/bitcoind.cpp where the main function is for bitcoind and then follow along from there. Knowing how to use grep to find things is also very useful.

and what cryptography knowledge books did you make use of?
Bitcoin does not actually use that much cryptography. You just need to understand some basics, like what a hash function is and what digital signatures are. That's about it.
Pages: « 1 ... 21 22 23 24 25 26 27 28 29 30 31 32 33 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 ... 589 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!