HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • Write
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions and GitHub Sync
    • Transfer ownership
    • Delete this note
    • Template
    • Save as template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions and GitHub Sync Transfer ownership Delete this note
Export
Google Drive Export to Google Drive Gist
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with GitHub
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Argument for Incentives Based on DH7 from: https://www.lesswrong.com/posts/FhH8m5n8qGSSHsAgG/better-disagreement The Ethereum network has a lot of data. - 40gb of account data - 100gb of chain data By their nature, stateless clients are leachers. Beyond simple block verification which scales fine via gossip, they cannot expose the standard client functionality without making on-demand requests for data from the network. Some nodes may be semi-stateful or retain a cache of recently seen or requested state, allowing them to serve some requests, however for the purposes of this document we can treat the majority of such semi-stateful nodes roughly the same as fully stateless ones since they would still exhibit similar needs, just on a a potentially smaller scale. For the purposes of this document we will be exploring the idea of a network dominated by stateless clients which run on lightweight hardware and retain very little state. These clients would expose the maximum possible JSON-RPC API, specifically supporting `eth_call` which requires on demand access to arbitrary accounts and storage from the state. These clients would also participate in relaying transactions, requiring them to have on demand access to a broad range of account balances and nonces. ## Asymetry in the Network For now, we make no assumptions about the network topology. This means we won't start with assuming continued use of the DevP2P `ETH` network topology, nor do we assert any new network topology. However, what we can observe is that there will be some number of "full" nodes which have data, and a much larger number of "stateless" nodes which need the data. The full nodes have some combined capacity `C` and the stateless nodes have some combined need `N`. In the event that `N > C` the network can no longer meet the demands of the stateless clients. The situation is more complex than this, because even in the case where `N <= C` the full nodes are still paying a cost to serve this data. This means that there is still a cost to full nodes even when operating below this capacity. This cost manifests in as non-trivial disk i/o and CPU overhead. For a miner, this can have a direct negative impact on their earnings. ## Natural tendency towards selfishness In such an asymetric network, stateless clients are consuming a limited "public" resource and the full nodes providing that resource will naturally exhibit self preserving behavior. Thus, the "tipping" point where demand exceeds capacity is likely much lower than the actual theoretical tipping point. Other factors that play into this are basic client defaults. Currently it isn't *easy* for a client to be selfish in a manner not already codified by the client developers, and the network is dominated by a single client, go-ethereum, which naturally has incentives to be sure it shares well enough with itself. If we think ahead to a network that supports statelessness, where clients are easier to write and maintain, and there are a larger number of different clients operating on the network, it becomes more likely for one of more clients to exhibit behaviors that take advantage of the network as well as clients that facilitate more selfish behaviors by sharing less data than they could. The natural end result is a network comprised of stateless nodes which take without giving back and full nodes which act selfishly with their data. In order to change the outcome, we have to change the behavior. ## Changing Selfish Behavior In decentralized networks we will tend to have little direct control over how people behave. Our only areas of concrete control are in the bounds placed by the protocol rules. Behavior changes thus come either from internal or external motivation. Internal motivations can be considered but seem unreliable since we expect the network participants to be a diverse group with different and often disparate internal motivations. This leads us to external motivators, of which there is potentially more easy common ground. 1. People are universally lazy, meaning that we can reliably expect most to take the path of least resistance. 2. People are motivated by money, meaning that people will offer a service if they are adequately compensated for it **and** people will pay for a service if it provides enough value. ## If full nodes are hard to run... If a full client is hard to run and maintain then the lazy option is the one that preserves the clients ability to function. Hard to run full clients naturally result in fewer of them. In this mode, very few will serve data if it is *off by default*, and eventually, most will turn the feature off if it negatively effects their client's performance which would likely occur in the network described above. ## If full nodes are easy to run... If a full client is easy to run and maintain... then we've solved a problem we don't know how to solve yet, and we don't need stateless clients. ## If contribution can happen beyond full nodes... If we lower the barriers to contributing to the data network then .... why do we need incentives??? It seems that as long as you constrain contribution to the data network to full nodes, there remains a reasonable argument that incentives are necessary. However, once you open up the option for stateless nodes to make meaningful contributions back to the network, the asymetry in the network goes away, and the argument that financial incentives are necessary no longer holds. ## Failure case for the homogenous network The "Homogenous" network fails in the same way as the asymetric network. There is still some "capacity" and "demand" and when demand outpaces capacity the network can no longer serve requests. To examine this, we need to examine the expected behaviors of network participants. - Full Nodes: stay online, maybe serve some data or even a lot of it. - Stateless and Semi-Stateless: some stay online for long periods. Some may hop on and off quickly. I assert that the ones that stay online for a long time will predominantly have more capacity to serve data than they consume. There will be actors that consistently consume more than they provide but I would expect those to be in the minority as such a node would be less performant than a full node and the use cases which would put such a node under constant demand are those that would typically have inherent incentives to pay the costs associated with running a full node (backend infrastucture). Thus, the leachers are those that jump on the network briefly, and then exit. It seems that the very nature of this type of node is such that it's consumption would naturally be quite low. Examples are, quickly performing one-off operations like checking a balances, issuing a transaction, or reading some state. All of these are pure leaching behaviors but they all exhibit a very low usage footprint. So for this network to fail, it would need to be dominated by leacher nodes which consume more than they provide. It seems this would involve a massive number of transient stateless nodes, or a large number of stateless nodes which have consistently high usage. Neither of these situations seems likely....

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.


Upgrade

All
  • All
  • Team
No template.

Create a template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Sign in via SAML

or

Sign in via GitHub

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions and GitHub Sync

Sign in to link this note to GitHub Learn more
This note is not linked with GitHub Learn more
 
Add badge Pull Push GitHub Link Settings
Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub

      Please sign in to GitHub and install the HackMD app on your GitHub repo. Learn more

       Sign in to GitHub

      HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Available push count

      Upgrade

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully