Bitcoin Forum
December 11, 2016, 10:14:38 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 [5] 6 7 8 9 10 »  All
  Print  
Author Topic: .  (Read 34970 times)
runeks
Legendary
*
Offline Offline

Activity: 924



View Profile WWW
October 08, 2012, 01:16:38 AM
 #81

Great! Is it possible to read addresses from a file that just contains concatenated hash160 addresses as raw bytes? Ie. 20 bytes followed by 20 bytes etc. I use this format to save space when storing a large number of addresses. I tried modifying the code to do this, but it seems it would require substituting fgets with fread, and things started looking messy so I gave up.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481451278
Hero Member
*
Offline Offline

Posts: 1481451278

View Profile Personal Message (Offline)

Ignore
1481451278
Reply with quote  #2

1481451278
Report to moderator
1481451278
Hero Member
*
Offline Offline

Posts: 1481451278

View Profile Personal Message (Offline)

Ignore
1481451278
Reply with quote  #2

1481451278
Report to moderator
runeks
Legendary
*
Offline Offline

Activity: 924



View Profile WWW
October 08, 2012, 08:55:17 AM
 #82

The reason I ask is because I got curious over whether people have used insecure passwords to create brain wallets. For this purpose I've created 1.5 GB worth of addresses in that 20 byte raw format, out of a word list made by John the Ripper. So the reason is that even though there are only ~300 megs of different addresses in the block chain, there are (2^160)*20 bytes of possible addresses using the raw 20 byte format. Having the addresses lined up on 20 byte-boundaries also increases performance, I imagine, since I don't have to do any string parsing on the data.
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
October 08, 2012, 10:01:02 PM
 #83

This might help my Pseudo Bitcoin Client Documentation project Cheesy I'll be looking into this code shortly Cheesy
runeks
Legendary
*
Offline Offline

Activity: 924



View Profile WWW
October 09, 2012, 10:40:32 AM
 #84

The reason I ask is because I got curious over whether people have used insecure passwords to create brain wallets. For this purpose I've created 1.5 GB worth of addresses in that 20 byte raw format, out of a word list made by John the Ripper.

So, that same list in ASCII will be 3GB ... BFD, if you'll pardon my french.
When the block chain is loaded into memory, the operation will mostly be memory-bound. Loading an additional 3 GB into memory is not an option.

I've just ordered more RAM, to bring my machine up to 6 GB though. Although it hurt a bit to see that the same amount of DDR3 RAM was half the price of the DDR2 RAM my machine supports

So the reason is that even though there are only ~300 megs of different addresses in the block chain, there are (2^160)*20 bytes of possible addresses using the raw 20 byte format. Having the addresses lined up on 20 byte-boundaries also increases performance, I imagine, since I don't have to do any string parsing on the data.
IMO, the time it'll take to parse the ASCII will be dwarfed by
the time taken to chew through the blockchain while hammering
in a completely cache-incoherent manner at that 1.5GB hashtable
of restricts you just forced the parser to load and work with.
I'm currently working with 50 MB chunks (~2.6 million addresses) at a time, because of the aforementioned memory-restriction. How long do you think blockparser would take to parse that amount of addresses? Armory's Python tools does it in 120 seconds (not including the time it takes to load the block chain into memory).

Also ... I'm hoping you're planning to Do The Right Thing (tm) with
that attempt of yours. Nuff said.
Of course. I'm not a thief. Just curious.
Buffer Overflow
Legendary
*
Offline Offline

Activity: 1526



View Profile
November 29, 2012, 11:36:29 PM
 #85

Code:
info: Starting command "simpleStats"
fatal: No such file or directory: failed to open block chain file /home/buffer/.bitcoin/blocks/blk00000.dat
Aborted (core dumped)

I don't have the blocks/ directory?

I only have:

blk0001.dat
blkindex.dat
db.log
peers.dat
blk0002.dat
database/
debug.log
wallet.dat

Using Bitcoin 0.7.1 & latest version of blockparser.

Buffer Overflow
Legendary
*
Offline Offline

Activity: 1526



View Profile
November 30, 2012, 09:40:38 AM
 #86

Ok, thank you very much.

How do I change over to the new style blockchain files? I'm using 0.7.1.

Buffer Overflow
Legendary
*
Offline Offline

Activity: 1526



View Profile
November 30, 2012, 09:45:47 AM
 #87

Oh dear more problems. Just cloned latest commit and tested with ./parser simpleStats and this appears:

warning: at depth 20221 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 12432 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 4315 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 14255 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 2975 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 13760 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 15626 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 15844 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 629 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 3965 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 3249 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 13269 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 8480 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 16582 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 18383 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 6801 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 14939 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da

I have to exit with ctrl-c.


Buffer Overflow
Legendary
*
Offline Offline

Activity: 1526



View Profile
November 30, 2012, 09:46:41 AM
 #88

Ok, thank you very much.

How do I change over to the new style blockchain files? I'm using 0.7.1.


Code:
git clone git://github.com/bitcoin/bitcoin.git bitcoin-head
cd bitcoin-head
qmake-qt4
make -j4
./bitcoin-qt &

Be aware this is going to "upgrade" your datafiles
and that this "upgrade" is likely not reversible.

You might want to wait until this is officially supported
by the released client.


Oh, I see, it's in Beta state. Think I leave it then.

Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1036


View Profile WWW
November 30, 2012, 09:23:06 PM
 #89

Oh, I see, it's in Beta state. Think I leave it then.

Well, all bitcoin releases to date have been beta.

This is about the code that hasn't even been released, but will eventually become 0.8.

aka sipa, core dev team

Tips and donations: 1KwDYMJMS4xq3ZEWYfdBRwYG2fHwhZsipa
Buffer Overflow
Legendary
*
Offline Offline

Activity: 1526



View Profile
November 30, 2012, 09:32:58 PM
 #90

Oh, I see, it's in Beta state. Think I leave it then.

Well, all bitcoin releases to date have been beta.

This is about the code that hasn't even been released, but will eventually become 0.8.

That's a good point. I wonder when Bitcoin will come out of beta? 1.0 I guess.

Jouke
Sr. Member
****
Offline Offline

Activity: 427



View Profile WWW
January 23, 2013, 12:17:04 PM
 #91

Oh dear more problems. Just cloned latest commit and tested with ./parser simpleStats and this appears:

warning: at depth 20221 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 12432 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 4315 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 14255 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 2975 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 13760 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 15626 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 15844 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 629 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 3965 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 3249 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 13269 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 8480 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 16582 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 18383 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 6801 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da
warning: at depth 14939 in chain, failed to locate parent block 000000000000040167c69f7a835d124214316b72d9a9fc2ec2413a238b6ab6da

I have to exit with ctrl-c.

I have the same problem with 7.2

Koop en verkoop snel en veilig bitcoins via iDeal op Bitonic.nl
Jouke
Sr. Member
****
Offline Offline

Activity: 427



View Profile WWW
January 23, 2013, 12:37:14 PM
 #92

I did a git reset 90a89c0373, but that didn't help.
nm. I am running an extra daemon now.

However:
info: Address cluster for address 16EC7Nx6THDZpGMCavLubbtt2UPXimyUx7:
warning: specified key was never used to spend coins

But it is used in this transaction:
https://blockchain.info/tx/49688f5183b3898d19de3904a09d75d1af52a14edd5f951f371f6823eb22b1f6

Koop en verkoop snel en veilig bitcoins via iDeal op Bitonic.nl
Jouke
Sr. Member
****
Offline Offline

Activity: 427



View Profile WWW
January 24, 2013, 09:51:08 PM
 #93

You need to make sure that your local blockchain is up to date.

Hmm, strange, bitcoind getinfo told me it was at up2date.

Koop en verkoop snel en veilig bitcoins via iDeal op Bitonic.nl
SilverLeaf
Member
**
Offline Offline

Activity: 64


View Profile
February 19, 2013, 04:10:18 PM
 #94

Same "Failed to locate parent block..." problem.

Opened a GitHub issue here: https://github.com/znort987/blockparser/issues/1 Smiley .

SilverLeaf
Member
**
Offline Offline

Activity: 64


View Profile
February 19, 2013, 05:05:37 PM
 #95

Your blockchain files are likely corrupted.

Even if they aren't, I do not plan to support old style bitcoind blockchain in the future.

If you want to use blockparser, I would strongly advise moving to a recent version of the bitcoind
client with the levelDB backend (the one that has a directory called "chainstate" in ~/.bitcoin)



Thank you, I am regenerating the blockchain using bootstrap.dat and trying again.

blockparser doesn't support levelDB by now, right?

SilverLeaf
Member
**
Offline Offline

Activity: 64


View Profile
February 19, 2013, 05:58:01 PM
 #96

Thank you, now it's much more clear.

EDIT: I can confirm that it works with the git version of bitcoind.

naima53
Hero Member
*****
Offline Offline

Activity: 616



View Profile
February 28, 2013, 06:54:58 AM
 #97

Is compatible with version 0.8 bitсoin-qt ?

Donate me) 16f6iWHHkVEnDReeBQPT9GwCNwUfPTXrp2
Dabs
Staff
Legendary
*
Offline Offline

Activity: 1526


64blocks.com


View Profile WWW
March 04, 2013, 12:49:45 PM
 #98

Is there a pre-compiled windows version? binary? (which you can of course sign or produce a SHA so us newbies can be sure we have a clean binary.)

64blocks.com Social Multiplayer Dice (Gambling) - Escrow Service (Services) - GPG ID: 32AD7565, OTC ID: Dabs
All messages concerning escrow or with bitcoin addresses are GPG signed. Please verify.
CompTIA A+, Microsoft Certified Professional, MCSA: Windows 10; Windows Server 2012, MCSE: Cloud Platform and Infrastructure; Productivity; Messaging
Buffer Overflow
Legendary
*
Offline Offline

Activity: 1526



View Profile
March 04, 2013, 07:44:27 PM
 #99

Blockparser does not run on Windows and other legacy technologies from the 20th Century

LOL  Cheesy
I couldn't agree more.

ShadowOfHarbringer
Legendary
*
Offline Offline

Activity: 1470


Bringing Legendary Har® to you since 1952


View Profile
March 06, 2013, 10:47:51 AM
 #100

Is there a pre-compiled windows version? binary? (which you can of course sign or produce a SHA so us newbies can be sure we have a clean binary.)

Blockparser does not run on Windows and other legacy technologies from the 20th Century

Hahahahaha.
Splendid statement, milord.


Pages: « 1 2 3 4 [5] 6 7 8 9 10 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!