Bitcoin Forum
September 23, 2024, 03:14:59 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 [352] 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 ... 590 »
7021  Bitcoin / Development & Technical Discussion / Re: Segwit details? N + 2*numtxids + numvins > N, segwit uses more space than 2MB HF on: March 19, 2016, 09:34:41 PM
If N squared performance assumes a single giant transaction, why not a rule to limit the size of a transaction?
Seems like a no-brainer. I've been looking through the commits, but couldn't find it. I think classic has a defense along those lines.
Even so, a 1 Mb transaction can still take a while to validate. A hypothetical scenario described here: https://bitcointalk.org/?topic=140078 states that a transaction of 1 Mb could take up to 3 minutes to verify. In reality, there was a roughly 1 Mb transaction that took about 25 seconds to verify described here: http://rusty.ozlabs.org/?p=522. Anything that is over a few seconds is quite a long time in computer standards. Now, both of those scenarios are less likely to happen now since libsecp256k1 introduced significantly faster signature validation, but it is still vulnerable to such attacks. A maliciously crafted 1 Mb transaction could, in theory, still take 25 seconds or longer to verify.
7022  Bitcoin / Bitcoin Technical Support / Re: Installing bitcoin-qt on a flash drive on: March 19, 2016, 04:40:01 PM
I do not have enough space on my computer to download the entire blockchain, so i have a 128 gb flash for this. How do I install bitcoin-qt to the flashdrive? every time i start to install it it says system memory is low so I am assuming it is still trying to install it on the laptop.
When you install, change the install directory to your flash drive. When you want to run bitcoin core, you will need to start it with the
Code:
--datadir=<path to data folder>
Option where <path to data folder> is the path to the folder on your flash drive where you want the data to be stored. The data is the blockchain, databases, and the wallet file.
7023  Bitcoin / Development & Technical Discussion / Re: Segwit details? N + 2*numtxids + numvins > N, segwit uses more space than 2MB HF on: March 19, 2016, 12:47:03 PM
Mainly here I'm reacting to Maxwell saying txid change couldn't be deployed as a hardfork at all, because that quote very publicly being used on reddit to defend "segwit as a softfork".

Would it change how transaction IDs were computed, like elements alpha did? Doing so is conceptually simpler and might save 20 lines of code in the implementation... But it's undeployable: even as a hardfork-- it would break all software, web wallets, thin wallets, lite wallets, hardware wallets, block explorers-- it would break them completely, along with all presigned nlocktime transactions, all transactions in flight.

So that's basically FUD?
No. What he was responding to was th original idea of changing  txid calculation entirely too something new. This idea (the second option) is instead introducing a new txid calculation method which will work alongside the original txid calculation algorithm.

Additionally, on further thought, it will still require twice the lookup tables. There needs to be one for the transactions that version 1 txs can spend from and one for the version 2 txs. Version 2 txs still need to be able to reference the txid of a version 1 tx to spend from it or that ntxid for the version 1 tx also needs to be stored somewhere so it will increase the lookup table sizes.
7024  Bitcoin / Development & Technical Discussion / Re: Segwit details? N + 2*numtxids + numvins > N, segwit uses more space than 2MB HF on: March 19, 2016, 11:20:40 AM
Is the following suggestion a solution to that?

The position of a transaction in the blockchain should define which version of the rules is applicable to it

What keeps us from using the old way of calculating a txid for transactions in prefork-blocks and the new way after the fork?
Unconfirmed transactions are the issue. What do we do about transactions that were created just before the fork block? How do you distinguish between an unconfirmed transaction created prior to the fork and an unconfirmed transaction created after the fork block?


Also, Tyler Nolan has a similar suggestion:

One example gmaxwell gives: all presigned nlocktime transactions would be broken. For users keeping these in storage they may well represent a lot of security. Gone... the moment a new version of the software no longer sees the transaction as being valid.
The rule could be changed so that transactions starting at version 2 using n-txid and version 1 transactions use txid.
You could have a rule that you can refer to inputs using either txid or normalized-txid.  That maintains backwards compatibility.  The problem is that you need twice the lookup table size.  You need to store both the txid to transaction lookup and the n-txid to transaction lookup.

The rule could be changed so that transactions starting at version 2 using n-txid and version 1 transactions use txid.  This means that each transaction only needs 1 lookup entry depending on its version number.  If transaction 1 transactions cannot spend outputs from transaction 2 transactions, then the network will eventually update over time.  It is still a hard-fork though.

Is that applicable / workable?

The first is possible but it is not optimal because it requires twice the lookup table size.

The second is also possible but the issue is the hard fork. The problem is that hard forks shouldn't be done often and for small things like this. It would be better if it was packaged with other stuff that is desired that also requires a hard fork. If also has less functionality than segwit.
7025  Bitcoin / Development & Technical Discussion / Re: Segwit details? SEGWIT WASTES PRECIOUS BLOCKCHAIN SPACE PERMANENTLY on: March 19, 2016, 02:50:20 AM
Are sigs in the witness data immune from malicious tx via lots of sigs?
I think they are since the transaction is hashed differently if the transaction uses witnesses. The different hashing method allows for faster hashes by using midstates which can be reused for every signature verification.
7026  Bitcoin / Armory / Re: armory source breakdown on: March 19, 2016, 12:18:55 AM
I noticed that droark created a breakdown of the Bitcoin Core source at https://github.com/droark/bitcoin-dev-notes/blob/master/Bitcoin_Core_source_breakdown.md. Does such a thing also exist for armory?

Not to my knowledge. I wrote that to teach myself about what's inside Core, which is pretty large at this point. With Armory, I just got thrown into it in late-2013 and didn't have time to write something similar. Maybe I'll write something similar for Armory, or at least toss up a doc that people can contribute to? (I also have 100+ pages worth of Bitcoin-and-Armory-related notes to post. I've just been lazy about finishing the conversion to Markdown.) I'm happy to help get the ball rolling.
If you could put up a doc with notes on armory, that would be great! I am trying to write some changes but when I get to the C++ part, I find it hard to figure out which file has what I want to change. The Python part is relatively self-explanatory.
7027  Bitcoin / Armory / armory source breakdown on: March 18, 2016, 11:40:02 PM
I noticed that droark created a breakdown of the Bitcoin Core source at https://github.com/droark/bitcoin-dev-notes/blob/master/Bitcoin_Core_source_breakdown.md. Does such a thing also exist for armory?
7028  Bitcoin / Development & Technical Discussion / Re: are there any actual stats on chain reorgs, by depth? on: March 18, 2016, 09:23:38 PM
Although I don't think Bitcoin Core has stats on reorgs, it does keep all of the valid blocks it receives. You could scan through the blk*.dat files and see if there were any chain reorgs.

Edit: I stand corrected:
The official Bitcoin client has "getchaintips" command
7029  Bitcoin / Development & Technical Discussion / Re: Does SegWit require any change in using send/receive API? on: March 18, 2016, 06:49:16 PM
I am using blockcypher send/receive API in certain services and accept Tx with 1+ confirmations. Post SegWit, do I need any change to be made at my end?
No, only if that API did something weird.

Is the API doing "something weird" predictable?
Nope. You only know it if the service running the API announces that something will change or if it suddenly changes and now nothing works.
7030  Bitcoin / Development & Technical Discussion / Re: Block #1 on: March 18, 2016, 03:47:08 PM
Awesome answer, knightdk I figured that Satoshi faded himself into other projects over time.  It would be awesome to see his Github collective, if there is one.  It is his kind of thought processes that can change software from a simple tool into something that changes people's lives.  Thanks again for the info.
Satoshi doesn't have a github account. I'm pretty sure that the original sourceforge repository was setup by Sirius. It was migrated to github later by someone else.
7031  Other / Beginners & Help / Re: What affects Post Quality? on: March 18, 2016, 11:55:18 AM
A post of poor quality adds nothing to the discussion. They can be irrelevant to the discussion or repeats of what was already said.

If you are posting for the sake of posting, then don't post. If what you are going to say has already been said, don't post. If what you post just isn't going to help advance the discussion, don't post.

This also applies to the long threads with stupid questions where people only post to boost their post count.
7032  Bitcoin / Development & Technical Discussion / Re: Does SegWit require any change in using send/receive API? on: March 18, 2016, 11:40:45 AM
I am using blockcypher send/receive API in certain services and accept Tx with 1+ confirmations. Post SegWit, do I need any change to be made at my end?
It depends on whether blockcypher changes their API but it shouldn't matter unless you are getting raw transactions and verifying then.
7033  Bitcoin / Project Development / Re: Bitcointalk Account price estimator on: March 18, 2016, 11:37:25 AM
Great work and very cool of you to open source it. I'm not planning on selling my account, but it's kinda fun to know what the value of it is.
Are the prices pretty accurate or on the low or high side?
I've been told that it is been consistently high but it has been a while since I checked the prices and accuracy so I don't really know.
7034  Bitcoin / Development & Technical Discussion / Re: Block #1 on: March 18, 2016, 04:15:06 AM
So, some history. Satoshi wrote the bitcoin whitepaper in late 2008. The whitepaper laid out the design of the bitcoin system. This paper was posted on sourceforge and posted to the cypherpunks mailing list. A few months later, satoshi released the first bitcoin client, bitcoin 0.1.0. Bitcoin core is based upon this client.

Now satoshi probably did create several test Genesis blocks and blockchains while writing this software but the current Genesis block and blockchain is the original production one and the only production mainnet blockchain. Satoshi mined this block and created the Genesis transaction. He probably also mined the first several hundred blocks himself as well.

One of the first bitcoiners was Hal Finney and he and satoshi made some of the first transactions and code changes to bitcoin. Also present was Sirius also did many of the early code changes for bitcoin. Later Gavin also began developing bitcoin in 2010. Some of the other people who develop bitcoin such as Pieter and Gaezik also began working on bitcoin in 2011.

Wladimir came into the scene also in 2011. He is the current release maintainer meaning he decides release schedules and tags released. He took over after Gavin who took over after satoshi. The current oldest source on github comes from the original sourceforge repository. The oldest version is 0.1.5. Prior to that, sources and binaries were probably distributed by zip files from satoshi.

The github repository is not maintained by Wladimir but by all of the core devs collectively.

The address that you mention does get the Genesis block block reward, but due to something in the code that I don't remember, it is actually unspendable. The Genesis block and its coinbase transaction are hard coded into the software.
7035  Other / Beginners & Help / Re: Can USB Miner be used to mine btc and ltc? on: March 17, 2016, 11:47:55 PM
No. LTC and BTC use two different mining algorithms. ASICs are application specific and this application is the sha256d hash only, which is not the one the litecoin uses.
7036  Bitcoin / Development & Technical Discussion / Re: Segwit details? N + 2*numtxids + numvins > N, segwit uses more space than 2MB HF on: March 17, 2016, 09:14:18 PM
jl777, this link: https://bitcoincore.org/en/segwit_wallet_dev/ might be useful to you for help with implementing segwit.
7037  Bitcoin / Armory / Re: Multi-Sig Lockboxes Information on: March 17, 2016, 08:59:02 PM
Hello. I would like to know more information about how multi-sig works and how it works in Armory vs other wallets. I am mostly interested in the usage of 2-of-2 P2SH.
1) How many 2-of-2 P2SH addresses can be created from 2 public keys? 1 or many?
Using the same two public keys the same p2sh address will always be generated.

2) Are lockboxes created in Armory usable in other wallets?

I haven't found this information anywhere.Thank you.

If you can get the redeemscript, then yes.
7038  Bitcoin / Development & Technical Discussion / Re: Segwit details? SEGWIT WASTES PRECIOUS BLOCKCHAIN SPACE PERMANENTLY on: March 17, 2016, 05:48:34 PM
A strong malleability fix _requires_ segregation of signatures.

No, none of the alleged benefits of SegWit requires segregation of signatures:

* Malleability could be fixed by just skipping the signatures (the same data that SegWit would segregate) when computing the txid.  

* GREATER bandwidth savings could be obtained by providing API/RPC calls that simple clients can use to fetch the data that they need from full nodes, sans the signatures etc.  This enhancement would not even be a soft fork, and would let simple clients save bandwidth even when fetching legacy (non-SegWit) blocks and transactions.  

* Pruning signature data from old transactions can be done the same way.

* Increasing the network capacity can be achieved by increasing the block size limit, of course.

(Thanks for answering this one question about malleability fix I had. So it can simply be done by omitting sigs from the txid hash input, cool. If not, please let me know)

It seems to me many people have a problem with segwit because of the "hackish" softfork and/or because of the change of the economic model (2 classes of blockspace).

If we did the points listed by JorgeStolfi above as a hardfork, would that be an option for the proponents of segwit? Seems to me such a hardfork could gain wide consensus, maybe wide enough to be considered safe by everyone? It would certainly appeal to the people who just want a simple blocksize increase and it should (I don't know, though) also satisfy the people who want segwit now.

What would be missing compared to segwit? fraud proofs? change of economic model?


Maybe you should read gmaxwell's posts about doing a hard fork to change that calculation. They are a few posts above this in this thread.
7039  Bitcoin / Bitcoin Technical Support / Re: Bitcoin Daemon / Bitcoin-QT -Is it possible to show what block a tx confirmed in on: March 17, 2016, 03:48:17 PM
You can use  gettransaction or getrawtransaction to get the details of a transaction and see how many confirmations it has.
7040  Bitcoin / Development & Technical Discussion / Re: Segwit details? N + 2*numtxids + numvins > N, segwit uses more space than 2MB HF on: March 17, 2016, 03:45:07 PM
Are Core developers against a hard frok because it will somehow confiscate time-locked coins? How many people aside from Blockstream employees have time-locked coins now? (I know this is off-topic, might need a new thread.)
No, they were against hard forking for changing the way that a txid was calculated.
Pages: « 1 ... 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 [352] 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 ... 590 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!