Author: MAO Bisheng of the Star Alliance; Original works, reproduced please indicate the source
Just today, Filecoin got another boost. The first official standby Filecoin implementation Lotus has been released, setting the stage for the launch of the beta network on December 11!
- The opening of the Lotus code base
- Release of Lotus Development Web
One of the most important goals of the Protocol Lab is to make the Filecoin mainnet as secure and resilient as possible. As part of your network security strategy, start a Filecoin network with multiple implementations. Today, the first standby Filecoin is implemented — Lotus. This release will not change the launch timelines of the test and main networks, but will make Filecoin networks more secure and flexible. Lotus is the first of many Filecoin implementations to come!
Why multiple implementations?
- Starting a cryptocurrency network with multiple implementations reduces the likelihood of a catastrophic vulnerability that could adversely affect or even bring down the entire Filecoin network.
- Increased ability to interact with different developer communities and opportunities to explore different implementation architectures (which may provide different performance and other optimizations). Ethereum, for example, has two different implementations of Geth and Parity.
Lotus is introduced:
Lotus is a minimalist & experimental implementation of the Filecoin protocol specification, written in the Go language. The code base is not fully functional, but it does implement the following core Filecoin functionality:
- Mining: Miners can start mining on the Lotus development network and start gaining storage capacity; Lotus implements a variety of sector sizes, so miners with many different storage configurations can mine on the network; Lotus integrates rust-fil-proofs so miners can submit their proofs on time to avoid cuts; The storage mining function is implemented as a separate module so that advanced miners can optimize their mining process based on their specific hardware configuration.
-
Storage: Storage customers can establish transactions with miners, set up payment channels for miners, transfer data for storage and pay miners for correctly storing their data.
-
Retrieval: Retrieval customers can pay to retrieve their data from storage miners (i.e., retrieve V0).
Lotus Development Network:
In addition to opening the Lotus codebase, today we are announcing the launch of the first open Lotus development network. After setting up the Lotus nodes, you can connect to the development network and start storing data or mining with other nodes. For more details, read the Lotus Experience section below.
Matters needing attention:
- The Lotus code base remains the most minimalist and experimental implementation of the Filecoin protocol, and it will evolve rapidly between now and the release of the Testnet on December 11, 2019.
- The Lotus development network will be reset several times between now and test network startup. The network may be unstable before the launch of the test network on December 11, 2019.
- The official plan is to launch a Filecoin master network with Go-Filecoin, Lotus, and at least one other implementation in March 2020.
- Lotus Development Network and Go-Filecoin Alphanet are not currently on the same network. Until the Go-Filecoin and Lotus nodes can interact, they will continue to be different networks. This interaction will take place prior to our mainnet launch in March 2020, but the exact date is yet to be determined.
Lotus experience:
Ensure that the following components are installed:
- The go (or who) 1.13
- GCC 7.4.0 (or who)
- git
- bzr (some go dependency needs this)
- jq
- pkg-config
Download the code and go to the Lotus directory:
$ git clone https://github.com/filecoin-project/lotus.git
$ cd lotus/
Copy the code
Compile source code & install:
$ make
$ sudo make install
Copy the code
If you have run Lotus before, run the rm -rf ~/. Lotus ~/. Lotusstorage command to delete related files
Start node:
$ lotus daemon
Copy the code
Verify that the node is connected to the network in a new window:
$ lotus net peers | wc -l
2 # number of peers
Copy the code
View block synchronization status:
$ watch lotus sync status
Copy the code
The latest will block height and develop online: lotus – metrics. Kittyhawk. WTF/chain
Create wallet address:
$ lotus wallet new bls
t3v2yejf7q5mccfhwsqkhvejo2ftrx62xfoxazatgnmckxdpo4rhxzfxczkv5lkp442i75fkelwg7xe5p7h6ia
Copy the code
Go to the tap to get the test coin:
lotus-faucet.kittyhawk.wtf/
Check your wallet balance:
$ lotus wallet balance [optional address (t3...)]
Copy the code
Note: An error like actor not found means that the node has not been fully synchronized or that the address has not been traded on the chain.
dig
Make sure you have an adequate balance in your wallet as a pledge:
$ lotus state pledge-collateral
29972260800659211394
$ lotus wallet balance t3v2yejf7q5mccfhwsqkhvejo2ftrx62xfoxazatgnmckxdpo4rhxzfxczkv5lkp442i75fkelwg7xe5p7h6ia
500000000
Copy the code
Initialize storage miner:
$ lotus-storage-miner init --owner=t3v2yejf7q5mccfhwsqkhvejo2ftrx62xfoxazatgnmckxdpo4rhxzfxczkv5lkp442i75fkelwg7xe5p7h6ia
Copy the code
This command takes a long time. Please wait patiently.
Start mining:
$ lotus-storage-miner run
Copy the code
View miner information:
$ lotus-storage-miner info
Copy the code
Seal the data and submit the space-time proof:
$ lotus-storage-miner store-garbage
Copy the code
This Lotus command is much easier and aptly named than the following three commands in Go-filecoin: Store garbage data.
echo 1 > /root/1.txt
go-filecoin mining add-piece /root/1.txt
go-filecoin mining seal-now
Copy the code
View computing power and sector information:
# Total power of the network
$ lotus-storage-miner state power
$ lotus-storage-miner state power <miner>
$ lotus-storage-miner state sectors <miner>
Copy the code
Screenshot of development network:
For more information, please check out our official website: github.com/filecoin-pr…