Bitcoin Forum
December 11, 2024, 09:36:39 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Distributed node  (Read 851 times)
jonald_fyookball (OP)
Legendary
*
Offline Offline

Activity: 1302
Merit: 1008


Core dev leaves me neg feedback #abuse #political


View Profile
May 12, 2014, 04:27:07 AM
 #1

If the number of nodes are dropping, would it possible to let people run 1/10th of a node?
That would require less resources. 

I know it sounds crazy,  but why couldn't the node's computing and storage needs itself be distributed among several machines ?

isidore
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
May 12, 2014, 09:19:08 AM
 #2

This sounds possible, some form of DHT used to store the blockchain on each node.
I am new here and have heard it was explored in the past, but I'm not sure to what extent or it's priority for the core devs.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4284
Merit: 8816



View Profile WWW
May 12, 2014, 09:26:10 AM
 #3

DHT is precisely the wrong technology for this, they generally have fairly poor security properties (or at least require a lot of complexity to make sibyl resistant) and don't solve the of the problems we need solving here.

If you're looking to reduce storage, this is explained in section seven of the Bitcoin whitepaper. The system was designed from the beginning so that nodes do not need to store all the data in order to validate new blocks.  Bitcoin Core v0.8 reorganized the system to facilitate supporting this, but completing the pruning requires first improving the synchronization behavior, second making sure all the database corruption bugs are gone (since corruption will mean a re download instead of just a reindex), and some P2P enhancements so that nodes which can serve new blocks but not old ones can be distinguished.
 
As far as computation goes, at runtime the computation load of Bitcoin is very low already and sipa has written faster ecdsa code that can do over 40k verifies per second on a quad core 3.2GHz i7 desktop (about 6x faster than openssl). It's not needed at runtime but it will be nice for the initial sync.

If you search around the forum you'll see these things have been discussed many times before.
jonald_fyookball (OP)
Legendary
*
Offline Offline

Activity: 1302
Merit: 1008


Core dev leaves me neg feedback #abuse #political


View Profile
May 12, 2014, 12:23:42 PM
 #4

completing the pruning requires first improving the synchronization behavior, second making sure all the database corruption bugs are gone

So these things are still in progress...

jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1111


View Profile
May 12, 2014, 04:08:03 PM
 #5


 
As far as computation goes, at runtime the computation load of Bitcoin is very low already and sipa has written faster ecdsa code that can do over 40k verifies per second on a quad core 3.2GHz i7 desktop (about 6x faster than openssl). It's not needed at runtime but it will be nice for the initial sync.



This is great. However, if there is a bug in the new code (or in openssl), we may have the BIP50-style fork again.

To minimize the risk, majority of miners have to validate blocks with both existing and new codes. Miners should not build on top of a block unless it passes BOTH codes. Actually I'm not sure if the 6x improvement outweighs the risk.

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4284
Merit: 8816



View Profile WWW
May 12, 2014, 04:11:54 PM
 #6

This is great. However, if there is a bug in the new code (or in openssl), we may have the BIP50-style fork again.
This is why the code wasn't deployed a year ago. (even though alt implementations have been rushing it out...)

Just about any change to consensus code has consistency risks, due care is being taken.
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1111


View Profile
May 12, 2014, 04:29:53 PM
 #7

This is great. However, if there is a bug in the new code (or in openssl), we may have the BIP50-style fork again.
This is why the code wasn't deployed a year ago. (even though alt implementations have been rushing it out...)

Just about any change to consensus code has consistency risks, due care is being taken.

It's just like fixing the firmware of ISS with astronauts inside. We are already too big to fail.

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
jonald_fyookball (OP)
Legendary
*
Offline Offline

Activity: 1302
Merit: 1008


Core dev leaves me neg feedback #abuse #political


View Profile
May 12, 2014, 04:45:00 PM
 #8

I assume there will be some big news about it when it is released, allowing more casual users to run nodes on their PC.  Is that right?

gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4284
Merit: 8816



View Profile WWW
May 12, 2014, 05:20:50 PM
 #9

I assume there will be some big news about it when it is released, allowing more casual users to run nodes on their PC.  Is that right?
It won't be noticeable at all except during initial sync, and even there only after a number of other improvements which make a much bigger difference. I only brought it up to further emphasize that computation isn't a major issue.
jonald_fyookball (OP)
Legendary
*
Offline Offline

Activity: 1302
Merit: 1008


Core dev leaves me neg feedback #abuse #political


View Profile
May 12, 2014, 05:34:45 PM
 #10

But we still need (or will need) a copy of the
blockchain in order to participate
as a node?  or not? 

It sounded like you said more advanced pruning
would allow block validation without the whole
blockchain, but it hasn't been released yet
due to synchronizaton and DB issues.
 
Sorry if its not clear to me yet.  I'm still
early on the learning curve here.

gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4284
Merit: 8816



View Profile WWW
May 12, 2014, 06:02:30 PM
 #11

But we still need (or will need) a copy of the
blockchain in order to participate
as a node?  or not? 

It sounded like you said more advanced pruning
would allow block validation without the whole
blockchain, but it hasn't been released yet
due to synchronizaton and DB issues.
Right, yes. You'll know about that when it's available.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
May 12, 2014, 06:05:30 PM
 #12

But we still need (or will need) a copy of the
blockchain in order to participate
as a node?  or not?  

It depends on what you mean by "a copy".

To validation transactions, engage in mining, and support SPV clients you only need a pruned version of the blockchain.  Today all "full nodes" keep more than just the pruned version.  There are reasons that some people would want to keep the unpruned version of the blockchain and in order for new nodes to obtain that there has to be sufficient number of nodes which have a copy and accepting connections.  The vocabulary will probably evolve to highlight this difference (full node vs archive node?) much like we identify the difference between full nodes and lite nodes today.

If your requirements are even smaller than what a pruned version of the database can provide then you should be looking at SPV clients.  They still provide better security than a "distributed node" and they only need to maintain a copy of the blockheaders locally.  The headers will require less than 50 MB per year to store.  They request the data necessary to validation a transaction in realtime and only for the transactions they are interested in.  The data they receive from full nodes can be verified against the blockheaders to ensure they aren't being spoofed.

jonald_fyookball (OP)
Legendary
*
Offline Offline

Activity: 1302
Merit: 1008


Core dev leaves me neg feedback #abuse #political


View Profile
May 12, 2014, 06:17:41 PM
 #13

My requirements are met just fine with electrum.
I was asking more for the general welfare of the
ecosystem.

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!