Bitcoin Forum
June 25, 2024, 04:28:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 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 »
6221  Bitcoin / Bitcoin Discussion / Re: My backup was stolen on: September 18, 2012, 02:05:12 PM
Also perhaps more importantly (to prevent this from occurring again in the future) *encrypt* your backup wallets!
6222  Bitcoin / Bitcoin Discussion / Re: My backup was stolen on: September 18, 2012, 01:59:56 PM
Or open an account with blockchain.info, create a wallet there, transfer all your BTC to it, wait for the confirmations, delete your wallet.dat, start Bitcoin qt again and transfer the coins back  Cheesy

Hmm... this does seem a little easier actually.  Embarrassed
6223  Bitcoin / Bitcoin Discussion / Re: My backup was stolen on: September 18, 2012, 01:50:24 PM
In short as others have stated move the BTC into a new wallet.

In detail first make sure you have another backup of your wallet then:

1) Remove wallet.dat and start the client (to create a brand new wallet).

2) Create an address to receive coins with and copy it somewhere.

3) Shut down bitcoin-qt and create a backup of the new wallet (be sure not to confuse wallet this with your original one).

4) Restore your original wallet then restart bitcoin-qt and send a small amount of coin to the new wallet address (to test you're doing it right).

5) Shut down bitcoin-qt and create another backup of your now modified original wallet (although this backup is not really necessary).

6) Restore the new wallet, restart bitcoin-qt and check to see that the sent coins appear in it after the blockchain has been caught up.

7) Shut down bitcoin-qt and take another backup of your new wallet (also not really necessary but might save a little scanning time).

Cool Restore backup your modified original wallet, restart bitcoin-qt and now send the rest of the coins to the address from the new wallet.

9) Shut down bitcoin-qt, restore your new wallet backup and after restarting all your coins should appear after the blockchain has been caught up.

If the new wallet does not seem to see coins sent to it (in steps 4 or Cool you may need to perform a "rescan". Also use blockchain.info to verify the new wallet address balance.

Hope this is of some help (and just in case I've got something wrong with the above please wait for a couple of replies for corrections).
6224  Bitcoin / Bitcoin Discussion / Re: Bitcoin-Qt/bitcoind version 0.7.0 released on: September 18, 2012, 08:50:44 AM
Is there really STILL no coin control options in this release? This is the major feature I have been waiting for for many many months and I am so disappointed that it seems to be not here ?

There is actually complete coin control now (note that the patch that had been created earlier whilst having GUI support only provided limited control), however,  you will need to use the console version (bitcoind) to create the tx's via the "raw transactions" RPC calls: https://en.bitcoin.it/wiki/Raw_Transactions

Great work guys (am reading about raw tx's now in order to start playing with them)!
6225  Bitcoin / Bitcoin Discussion / Re: Bitcoin promotion via charity? on: September 17, 2012, 02:34:30 PM
Actually I should have mentioned that there was at least one success story so far (Group B Strep International - and I just verified that their website still has a Bitcoin donation address).

I know Bruno has been rather busy doing a lot of internet research lately and with all the crap that has been going on in recent times (heists and HYIP collapses)  I can understand why things have not progressed much but I really do hope it will continue (and will be happy to donate again if it can get some more momentum).

Smiley
6226  Bitcoin / Bitcoin Discussion / Re: Bitcoin promotion via charity? on: September 17, 2012, 11:59:20 AM
The website http://bitcoin100.org/ was created for the purpose of both allowing people to donate to worthwhile causes with BTC and to try and get charities interested in accepting BTC donations.

Unfortunately I don't think they've been doing much canvassing for a while - perhaps you could pass some suggestions to them.
6227  Other / Beginners & Help / Re: Total n00b mistake... I blame Bruce's reputation on: September 15, 2012, 05:18:06 AM
If you do some searching on this forum (or probably quicker via google) then I think you'll find someone has a script/program that will try to brute force your password based upon what you can remember of it.
6228  Bitcoin / Bitcoin Discussion / Re: Bitcoins used for voting and the cloaking of said the on: September 15, 2012, 03:32:53 AM
Can't find the other thread now but here is a summary voting system proposal that I came up with:

Code:
Block Chain Blind Ballot
------------------------

- coins are premined to the total number of registered voters (no new coins can be created so that each
election will have its own fully auditable block chain)

- each registered voter is sent a fixed amount in a tx

- a set of private keys are published for the purpose of encrypting a ballot to the organiser's public key
(the private key to decrypt the votes are known only to the organiser and to each party)

- a set of valid or dummy "vote" tokens are available for selection from for each party so that a user will
construct a ballot by putting together a valid or dummy token for each party

- amid the valid or dummy tokens the voter will insert their own unique token (perhaps a UUID) whose purpose
will be so that the voter can check that their own vote was successfully processed (and not altered)

- once the ballot is assembled it is encrypted and then forwarded to another voter (the ballot cannot be
decrypted and its contents cannot in any way easily compared to a constructed ballot as not only is the
private key for encryption a choice but also each valid vote/dummy key chosen was a choice making the
number of combinations too hard to break down)

- in order to qualify to have your own vote sent (or forwarded) you must first have delivered a vote for
another voter (you can only deliver one vote)

- in order to ensure anonymity a voter needs to receive at least 2 other votes so it can randomly deliver
one vote and forward the other

6229  Bitcoin / Bitcoin Discussion / Re: Bitcoins used for voting and the cloaking of said the on: September 15, 2012, 03:30:03 AM
I started and was involved with a couple of threads about this:

https://bitcointalk.org/index.php?topic=61359.0

and

https://bitcointalk.org/index.php?topic=60229.0 be pre-warned that this one was a BenRayfield post Wink
6230  Other / Beginners & Help / Re: How to earn BTC on: September 12, 2012, 06:44:55 AM
Also if you have programming or web design skills you can likely earn BTC by doing some freelance work.
6231  Bitcoin / Bitcoin Technical Support / Re: Get balance of an address using bitcoind on: September 08, 2012, 10:33:14 AM
Not using the existing client, however, it may be worth checking into the details of the new RPC commands (certainly I think they at least let you access any tx).

If needing to get the balance in code you could always issue a "system" command that makes a "curl" call such as the following:

Code:
curl http://blockchain.info/q/addressbalance/1ciyam3htJit1feGa26p2wQ4aw6KFTejU

(note that the balance returned is in Satoshis)
6232  Bitcoin / Development & Technical Discussion / Re: Patch to add a "rescan" option to importprivkey on: September 07, 2012, 04:50:20 AM
Hmm... well using the -o option to output to a file you could then pull out just the "privkey" lines with findstr.

So from a cmd shell:

Code:
C:\Program Files\Bitcoin>vanitygen -q -o x 1AB
C:\Program Files\Bitcoin>findstr "Privkey: " x > xx

The tricky bit is not now do a "search/replace" to turn the following:
Code:
C:\Program Files\Bitcoin>type xx
Privkey: 5J9eh7Fwwbji4L45xsLT4FskJWb7spJx1YekagS1vAdTAiHMwWX
Privkey: 5J2kSNfhhPzMdceaBbBxGdKaGmEDosFEYNVTpHcCKjTGo4UutZM
Privkey: 5KXbbBZjmv4TqnJttrhGy7tSWp8thDkesayyCCm1Ss3ZM9N8v3F

into something that looks like this:
Code:
C:\Program Files\Bitcoin>type xx
bitcoind -rpcpassword=password importprivkey 5J9eh7Fwwbji4L45xsLT4FskJWb7spJx1YekagS1vAdTAiHMwWX
bitcoind -rpcpassword=password importprivkey 5J2kSNfhhPzMdceaBbBxGdKaGmEDosFEYNVTpHcCKjTGo4UutZM
bitcoind -rpcpassword=password importprivkey 5KXbbBZjmv4TqnJttrhGy7tSWp8thDkesayyCCm1Ss3ZM9N8v3F

I'm not sure if newer versions of Windows have some sort of sed equivalent but from previous work I have the following .vbs script:
Code:
C:\Program Files\Bitcoin>type findrep.vbs

Const ForReading = 1
Const ForWriting = 2

If Wscript.Arguments.Count > 2 Then

strFileName = Wscript.Arguments(0)
strOldText = Wscript.Arguments(1)
strNewText = Wscript.Arguments(2)

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(strFileName, ForReading)

strText = objFile.ReadAll
objFile.Close
strNewText = Replace(strText, strOldText, strNewText)

Set objFile = objFSO.OpenTextFile(strFileName, ForWriting)
objFile.WriteLine strNewText
objFile.Close

Else
 Wscript.Echo "Usage: findrep <file> <findstr> <replace>"
 Wscript.Quit
End If


So you can use that to convert xx with the following:
Code:
findrep xx "Privkey:" "bitcoind -rpcpassword=password importprivkey"

Unfortunately it still doesn't give the empty quotes and "false" at the end of each line (to use the patched command) although for testing purposes you could always change the command to not do the scan by default.
6233  Bitcoin / Development & Technical Discussion / Re: Patch to add a "rescan" option to importprivkey on: September 07, 2012, 03:27:32 AM
I see the potential, will try and give it a whirl when I get back form vacation.

Thanks for that and hope you have a great vacation. Smiley
6234  Bitcoin / Development & Technical Discussion / Re: Patch to add a "rescan" option to importprivkey on: September 07, 2012, 02:58:31 AM
No-one thinks this option would be useful?

I guess I must be the only person here who has imported lots of vanitygen keys on a slow machine. Sad
6235  Bitcoin / Development & Technical Discussion / Re: origin of transfer on: September 06, 2012, 08:15:35 AM
More often than not even a simple transaction will have multiple inputs and two outputs (with one being for change) so displaying the "origin address" would (if implemented) instead have to be displaying the "origin addresses".

By using a unique receive address for each incoming payment you can instead use the label to identify "who" the payment was from rather than trying to make head or tail of all the "input" addresses in the tx (a much simpler approach really).
6236  Other / Off-topic / Re: Total beginner at programming here. (C++) on: September 05, 2012, 03:05:46 PM
When it comes to adding comments I would suggest something along the line of the following:

1) If the code is obvious do not add a comment as it's not necessary (variable and function naming, however, is something you should spend a lot of time thinking about).

2) If the comment is just describing a typical comparison or mathematical operation then don't add a comment as it's not necessary.

3) If the comment is just describing a typical looping construct or an obvious algorithm (for algos better to use functional programming techniques) then don't add a comment as it's not necessary.

In my first job I worked on a very large C project (it included its own complete p-machine style 4GL and networking platform) which at one stage employed over 100 programmers.

One day I was having troubles with a particular section of code and I called over an older "guru" to help me out. I explained what the problem was that I was having and why I didn't understand how the code was not working as I thought it should be.

He asked a simple question:

"Why do you think the code should be doing what you say it should be doing?"

and I answered:

"Because that's what these comments say."

His answer, and one of the best (and at the time one of the most embarrassing) lessons I ever learned in my career, was "The compiler doesn't read those - you need to read the code Ian.".

Smiley
6237  Bitcoin / Development & Technical Discussion / Patch to add a "rescan" option to importprivkey on: September 05, 2012, 12:18:57 PM
I've created a patch here: https://github.com/ciyam/bitcoin/tree/importprivkey_rescan_opt

This would be mostly useful when importing a lot of private keys (such as you might wish to do if using vanitygen to create a set of vanity addresses) especially when you know the public addresses for the keys you are importing have not been used.

I had posted about this in another thread but I guess it wasn't noticed so just thought I'd post it here.

Unfortunately I don't have the setup or time to actually compile and test it (too busy on my own project) so if someone else could do that it would be great (and I don't need any credit so if someone does take the time to compile and test it then they are welcome to push the patch as their own).
6238  Bitcoin / Bitcoin Discussion / Re: Handle a Wasp and you will not get stung! Practice Safe Bitcoin on: September 05, 2012, 06:32:03 AM
Hi Mike,

I used the imporprivkey command a bit with some vanitygen addresses (that were new so obviously had no existing balance) recently and the automatic rescan that bitcoind does was a real pain for me as it takes around 15 minutes on my laptop (so it ended up taking me an hour to import four addresses).

If you (or anyone else reading this that is able to build Bitcoin) has any time to test this patch then provided there is no issue with it I will make a pull request for this option (sorry I don't have time to test it myself as I use VC++ on my laptop, a very old Linux OS on my server and am flat out coding on my own project).

https://github.com/ciyam/bitcoin/tree/importprivkey_rescan_opt


Cheers,

Ian.
6239  Other / Off-topic / Re: Total beginner at programming here. (C++) on: September 04, 2012, 08:59:08 AM
Actually the first software program that I ever wrote was in machine language in the very early 80's on something that looked at lot like this:



(yup - it had a magnetic strip to store your program on!)
6240  Other / Off-topic / Re: Total beginner at programming here. (C++) on: September 04, 2012, 08:22:04 AM
Here is an old small program that I found that illustrates the kind of problems you get with using the double type:

Code:
#define test( v1, op, v2 ) if( v1 op v2 ) printf( #v1 " " #op " " #v2 "\n" )

#include <stdio.h>
#include <math.h>

int main( )
{
   volatile double a, b, c;
   char buf[ 50 ];

   a = 13.06;
   b = 0.54;
   sprintf( buf, "%lf", a + b );
   c = atof( buf );

   printf( "a = %lf, b = %lf, c = %lf\n", a, b, c );        

   test( c, >, 13.60 );
   test( c, ==, 13.60 );
   test( c, <, 13.60 );
   test( a + b, >, 13.60 );
   test( a + b, ==, 13.60 );
   test( a + b, <, 13.60 );

   return 0;
}

When I run this (compiled with VC++ under Win32) I get the following output:
Code:
a = 13.060000, b = 0.540000, c = 13.600000
c == 13.60
a + b > 13.60

The first two lines of output are fine but note that 13.06 + 0.54 is > 13.60 due to the use of the double type here.
Pages: « 1 ... 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!