Spinning up a Tezos node in under a few minutes

An introduction to booting up a Tezos node using snapshots and history modes.

Rajath Alex
May 8, 2019 · 5 min read
Image for post
Image for post

History Modes

Booting quickly from a Snapshot

> HASH='tezos-client rpc get /chains/main/blocks/head~30/hash | tr -d '''
> tezos-node snapshot export --block HASH HASH.full
> gzip HASH.full
> gzip -d HASH.full.gz
> tezos-node snapshot import --block HASH HASH.full
> tezos-node identity generate
> tezos-node run --rpc-addr 'localhost:8732'

Simple Garbage Collection using Snapshots

> tezos-client rpc get /chains/main/blocks/head~30/hash
> tezos-node snapshot export --block HASH HASH.full
> tezos-node snapshot import HASH.full
> tezos-node run --rpc-addr 'localhost:8732'

tezos

Tezos: the self-amending cryptographic ledger

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store