Sunrise Data
Sunrise Data acts as a relay server connecting the L2 chain to the Sunrise DA layer.
Sunrise Consensus Node
Section titled “Sunrise Consensus Node”Requires a networked Sunrise node to operate. Networks running Sunrise v0.3.0 or higher support Data Availability Layer.
Follow the Node Guide on how to create a consensus node.
How to set up sunrise-data
Section titled “How to set up sunrise-data”-
Running
sunrisedSee Consensus Node for setting up. -
Clone sunrise-data repo
Terminal window cd ~git clone https://github.com/sunriselayer/sunrise-data.gitcd sunrise-datamake install -
Create and edit
config.tomlTerminal window cp config.default.toml config.tomlnano config.tomlTo connect to a local IPFS daemon, leave the
ipfs_api_urlfield emptyChange
home_pathto your .sunrise directory andpublisher_accountto your sunrised key’s name[api]port = 8000ipfs_api_url = ""ipfs_addrinfo = ""[chain]address_prefix="sunrise"home_path="/home/ubuntu/.sunrise"keyring_backend="test"sunrised_rpc="http://localhost:26657"[publish]publisher_account="your_publisher_account"publish_fees="10000uusdrise"[rollkit]port=7980data_shard_count=5parity_shard_count=5home_path,keyring_backend,publisher_accountmust be entered values on your sunrised keyring. See Local Key Pair document and set with--keyring-backend testoption. Forhome_path, enter the path where the sunrise keyring exists. Forsunrised_rpc, it is preferable to run sunrised locally, but if this is not possible, use the published RPC. See our Network Document. A local key pair is still required in such cases.The other fields can be left as is.
Run IPFS on local
Section titled “Run IPFS on local”-
Run IPFS
Terminal window wget https://dist.ipfs.tech/kubo/v0.31.0/kubo_v0.31.0_linux-amd64.tar.gztar -xvzf kubo_v0.31.0_linux-amd64.tar.gzcd kubosudo ./install.shipfs init --profile=lowpoweripfs daemon -
Check the IPFS node ID and optionally share and add a remote peer
Terminal window ipfs id
sunrise-data rollkit