Bitcoin Forum
November 11, 2024, 08:32:05 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Armory & Headers first  (Read 1989 times)
spin (OP)
Sr. Member
****
Offline Offline

Activity: 362
Merit: 262


View Profile
October 13, 2014, 09:51:44 PM
 #1

How compatible would Armory be with headers first sync?  I read about it and saw the following issues:
Quote
Known issues:
* At the very start of the sync, especially before all headers are
processed, downloading is very slow due to a limited number of blocks
that are requested per peer simultaneously. The policies around this
will need some experimentation can certainly be improved.
* Blocks will be stored on disk out of order (in the order they are
received, really), which makes it incompatible with some tools or
other programs. Reindexing using earlier versions will also not work
anymore as a result of this.
* The block index database will now hold headers for which no block is
stored on disk, which earlier versions won't support. If you are fully
synced, it may still be possible to go back to an earlier version.

Might the out of order blocks on disk be an issue for Armory?  I'm setting up the headers first sync to see if it will work.

If you liked this post buy me a beer.  Beers are quite cheap where I live!
bc1q707guwp9pc73r08jw23lvecpywtazjjk399daa
doug_armory
Sr. Member
****
Offline Offline

Activity: 255
Merit: 250

Senior Developer - Armory


View Profile WWW
October 13, 2014, 10:59:38 PM
 #2

We've been discussing the patch. Long story short, we're not worried. Some code changes may be necessary. The basic architecture of Armory should be pretty sound, though.

Senior Developer -  Armory Technologies, Inc.
spin (OP)
Sr. Member
****
Offline Offline

Activity: 362
Merit: 262


View Profile
October 14, 2014, 06:57:10 AM
 #3

I'm sure it can be handled.  Will armory work as is or do you know it won't?

If you liked this post buy me a beer.  Beers are quite cheap where I live!
bc1q707guwp9pc73r08jw23lvecpywtazjjk399daa
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3752
Merit: 1364

Armory Developer


View Profile
October 14, 2014, 08:26:27 AM
 #4

I'm sure it can be handled.  Will armory work as is or do you know it won't?

Not sure the current version can handle it. I'd say there is a 80% chance it can. We'll purposefully test this in the upcoming version to make sure the code can handle both ordered and out of order/header only blk files.

etotheipi
Legendary
*
Offline Offline

Activity: 1428
Merit: 1093


Core Armory Developer


View Profile WWW
October 14, 2014, 02:12:35 PM
 #5

I'm sure it can be handled.  Will armory work as is or do you know it won't?

For reference, when I did the upgrade from RAM-only to LevelDB-backed databases, I designed the DB build&scan operations to accommodate out of order blocks in the blk*.dat files.  Basically because I heard murmurings of this change coming more than a year ago.

However, I never actually tested it and there might be something stupid preventing it from working, but it should be a very short upgrade path to make it work. 

In the future, I'd like to get away from blk*.dat files altogether and just pull things over P2P from your localhost Core instance.  If you do that, you can guarantee you get them in order, though there other nice benefits (like no longer even having to specify a --satoshi-datadir, and being able to use a single trusted Core instance on a network for a bunch of Armory instances).

Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
justusranvier
Legendary
*
Offline Offline

Activity: 1400
Merit: 1013



View Profile
October 14, 2014, 03:17:31 PM
 #6

and being able to use a single trusted Core instance on a network for a bunch of Armory instances).
Or being able to use alternatives to Bitcoin Core.
spin (OP)
Sr. Member
****
Offline Offline

Activity: 362
Merit: 262


View Profile
October 14, 2014, 08:14:23 PM
 #7

Well I am testing the headers first node.  Might try to run armory against those blk files.

If you liked this post buy me a beer.  Beers are quite cheap where I live!
bc1q707guwp9pc73r08jw23lvecpywtazjjk399daa
njaard
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
October 30, 2014, 08:50:14 PM
 #8

the current dev branch supports headers first, it is being tested. The next release of armory will officially support headersfirst. Nothing to worry about!
PRab
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
October 31, 2014, 11:51:25 AM
 #9

What about pruning? I'm assuming armory won't support pruning, but would love to be wrong.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!