Skip to content

Instantly share code, notes, and snippets.

@DaWe35
Last active November 6, 2024 19:13
Show Gist options
  • Save DaWe35/aaa0d1a99be4a6fb0977fb7df7ddb702 to your computer and use it in GitHub Desktop.
Save DaWe35/aaa0d1a99be4a6fb0977fb7df7ddb702 to your computer and use it in GitHub Desktop.

Revisions

  1. DaWe35 revised this gist Feb 25, 2024. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions monerod-sync.md
    Original file line number Diff line number Diff line change
    @@ -30,3 +30,16 @@ Prune blockchain
    | --fast-block-sync (default 1) | CPU usage | Sync up most of the way by using embedded, known block hashes.|
    | --prune-blockchain | Storage usage | Some unnecessary data won't be stored on your computer, reducing the local blockchain database size by ~66%|
    | --sync-pruned-blocks | Bandwidth | Allow syncing from nodes with only pruned blocks (only when --prune-blockchain is on) |

    ## Sync time estimates

    All estimates are calculated on 2024 february. I ran tests in docker on a 3 vCore, 4GB RAM, 200 Mbit/s port, SSD VPS.
    At this date, the uncompressed Monero block chain is size was 180GB. You can get the current number by running this command:

    `x=$(curl -sd '{"jsonrpc":"2.0","id":"0","method":"get_info"}' http://node.moneroworld.com:18089/json_rpc | grep 'database_size' | sed -r 's/.*: ([0-9]*)\,.*/\1/g'); y=$((x/1024/1024/1024)); echo -e "\tCurrent uncompressed Monero block chain is: "$y"GB"`

    - Full sync: monerod estimates a 15 days. I'll update this when I get more precise info, I started the sync around 2024-02-25 13:00 UTC
    - Fast sync takes around 4 days to complete
    - Pruned sync should be just a bit faster than fast sync when `--sync-pruned-blocks` is on. Don't expect big performance improvements.

    Please comment your tests so we can see a better average.
  2. DaWe35 revised this gist Feb 25, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion monerod-sync.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@

    Download, verify, and store the whole blockchain

    `monerod --fast-block-sync 0`
    `monerod --fast-block-sync=0`

    ### Fast sync

  3. DaWe35 revised this gist Feb 18, 2024. No changes.
  4. DaWe35 revised this gist Feb 18, 2024. No changes.
  5. DaWe35 revised this gist Feb 18, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion monerod-sync.md
    Original file line number Diff line number Diff line change
    @@ -29,4 +29,4 @@ Prune blockchain
    |--|--|--|
    | --fast-block-sync (default 1) | CPU usage | Sync up most of the way by using embedded, known block hashes.|
    | --prune-blockchain | Storage usage | Some unnecessary data won't be stored on your computer, reducing the local blockchain database size by ~66%|
    | --sync-pruned-blocks | Bandwidth | Allow syncing from nodes with only pruned blocks |
    | --sync-pruned-blocks | Bandwidth | Allow syncing from nodes with only pruned blocks (only when --prune-blockchain is on) |
  6. DaWe35 revised this gist Feb 18, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion monerod-sync.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## Modes
    ## Sync modes

    ### Full node

  7. DaWe35 revised this gist Feb 18, 2024. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions monerod-sync.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ## Modes

    ### Full node

    Download, verify, and store the whole blockchain
  8. DaWe35 created this gist Feb 18, 2024.
    30 changes: 30 additions & 0 deletions monerod-sync.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    ### Full node

    Download, verify, and store the whole blockchain

    `monerod --fast-block-sync 0`

    ### Fast sync

    Sync up most of the way by using embedded, known block hashes.

    `monerod`

    *As you can see, fast block sync is on by default.*

    ### Prune

    Prune blockchain

    `monerod --prune-blockchain --sync-pruned-blocks`

    *Again, fast-block-sync is on by default in this case too.*


    ## Explanation

    |Flag|Reduces|Explanation|
    |--|--|--|
    | --fast-block-sync (default 1) | CPU usage | Sync up most of the way by using embedded, known block hashes.|
    | --prune-blockchain | Storage usage | Some unnecessary data won't be stored on your computer, reducing the local blockchain database size by ~66%|
    | --sync-pruned-blocks | Bandwidth | Allow syncing from nodes with only pruned blocks |