Detailed explanation of Ethereum genesis
It's said that the currency circle has been going on for one day and the stock market has been going on for one year. Although it's a bit exaggerated, it's not unreasonable. In recent days, bitcoin has gone up sharply, but it has come down slightly today. It's estimated that no one can match the speed of the bull bear conversion in the currency circle. However, among many virtual currencies, how can we find high-quality projects? Xiaobian thinks that the bull market is not surprising. The key point is that the bear market still insists on giving weekly reports, at least for the projects with reliable teams. Today Xiaobian still brings you weekly reports of some high-quality projects. The following is the latest weekly project progress report (April 9-April 15, 2018) released by ubtc team. The specific information is as follows:
pre upgrade of Ub smart contract:
smart contract is one of the major milestones of the technology roadmap of bit fed project. In order to prepare for the implementation of smart contract on UB, the UB team made some adjustments on April 10, 2018, as follows:
1. The block speed was adjusted from 10 minutes to 1 minute
2. The difficulty adjustment cycle was once for 10 blocks
3. Block reward was adjusted to 1 ubtc
The total amount of ubtc was adjusted from 21 million to 20 million The mature period of reward was 7200 blocksthis adjustment requires users to download the latest version of the wallet to ensure that subsequent use will not be affected
wallet download link: https://www.ub.com/project/wallet
R & D:
1
2. Ubtc contract function continued internal test and bug repair
3. Ubtc contract function test documents continue to improve
4. Gjavac, gsharpc, uvmassassembler, uvmpackagegpc organize the code and open source on GitHub
5
Market:
1. Anybit mobile wallet charging UB award UB activity starts at 8:00 p.m. Beijing time on April 4, 2018, and ends at 8:00 p.m. Beijing time on April 15, 2018. During the activity, users who download anybit and recharge ubtc will get 1% reward, up to 1 ubtc. The event is limited to the top 1000
the reward is calculated based on the balance of ubtc at 8:00 p.m. Beijing time on April 15, 2018. The reward ubtc will be uniformly distributed to the corresponding ubtc address on April 16
2. The UB team held a fan meeting in Genesis block, Wanchai, Hong Kong from 7:00 to 9:00 p.m. on April 9. Mr. Wouter van der schagt, director and project CEO of Ub foundation, introced the project progress and planning to the fans. UB's major fan communities (wechat group, telegraph group, QQ group, beechat group, microblog, twitter, etc.) carried out real-time live picture push
3. On April 9, the microblog of "UB global support association" held a comment lottery to send UB customized hat and coat. Under the supervision and notarization of Weibo official lottery tool @ Weibo lottery platform, an enthusiastic fan in Ningbo was lucky to win. The fan has already received the prize, and in the microblog @ quiet style quiet style sun out the picture
4. On the 14th, UB team sent representatives to participate in the [chaine] blockchain Technology Salon Hosted by Babbitt and had interactive exchanges with the guests present. The salon was held in Yulong international building, Huli District, Xiamen city
5. Enthusiastic fans made the relevant expression pack (animation) for UB's upgrade and adjustment on the 10th, and spread it on wechat group P>
6, UB subscription number WeChat official account will be on the way to sign the lottery every day. Please look forward to it! p>
community release:
1. The last snapshot of issuing ubtc to Eth and LTC communities was completed on April 11, and the qualified addresses were released on May 2. Please refer to UB website for details www.ub.com The announcement in the news section on March 18
about ubtc:
unitedbitcoin, referred to as UB, code ubtc. UB is not only an upgraded version of bitcoin, but also a leading global blockchain ecosystem. UB is headed by Jeff garzik, a veteran of bitcoin, a core developer of bitcoin and a leader in the blockchain field
UB 100% inherits bitcoin's blockchain and upgrades and optimizes it. The upgrade and optimization of Ub include expanding the block size to 8MB, supporting segwit isolation witness, adding smart contract and lightning network, etc
UB is committed to bringing the inactive bitcoin credit into full play. Finally, based on these credits, we can issue stable currency anchored by legal currency, which can be used in a wide, fast, efficient and intelligent business society
at present, UB team has developed anybit mobile wallet app (anybit is a decentralized multi currency wallet APP), core, core QT and electrum wallet (electrum is a lightweight wallet supporting multi signature), and released a complete blockchain browser
more than 18 trading platforms around the world support ubtc trading
first, you need to create a "Genesis" JSON configuration file, which describes some parameters of the genesis block. The following is the content of the file:
{
& quot; coinbase": & quot;& quot;,< br />" config": {< br />" homesteadBlock": 5
},
" difficulty": & quot; 0x20000",< br />" extraData": & quot; 0x",< br />" gasLimit": & quot; 0x2FEFD8",< br />" mixhash": & quot;& quot;,< br />" nonce": & quot; 0x0",< br />" parentHash": & quot; 000000000000000000000000",< br />" timestamp": & quot; 0x00",< br />" alloc": {< br />"& quot;:< br />{
" balance":& quot;& quot;
}
}
} 1234567891011213141516171819
the above code into a text file and name it genesis.json
Genesis!:
in order not to conflict with the data of the main chain, it is recommended to establish your own private chain data folder. On my computer, I built an ethdbspace as the Ethereum experimental work area on disk e, and created a privchain folder as the data storage folder of my first private chain
here, in order to facilitate management, I put genesis.json under the ethdbspace folder
open the windows command line
type the following command
geth -- dataDir & quot; E:\ EthDBSpace\ PrivChain" init " E:\ EthDBSpace\ genesis.json" 1
– the dataDir option is used to specify the data directory of our private chain. On my computer, it's E: &; EthDBSpace\ Privchain
init is the genesis command, followed by our Genesis configuration file path
after clicking enter, the execution result is as follows
at this time, genesis is complete
create an account:
in order to do experiments on the private chain, we also need to create our own account on the private chain
windows command line, type
geth -- dataDir & quot; E:\ EthDBSpace\ PrivChain" Console1
we have successfully created the world, so when we enter the client for the second time, we do not need to specify the genesis.json file path again, but directly – dataDir to indicate the private link data path
the console command is used to open the command line of geth
after clicking enter, the client will be initialized for a while. After the command prompt appears, it means that you have entered the geth console
type
personal. Newaccount (& #) in the geth command line; Your Password') 1
the personal.newaccount function is used to create an account, in which the parameter is the account password.
after clicking enter, the account creation address will be listed in green below the command, that is, the public key of the account.
we can check the account balance first, In the geth command line, type:
My = eth. Accounts [0]
eth. Getbalance (my) 12
My = eth. Accounts [0]. The purpose of this sentence is to assign the account address we just created to my variable. This can simplify the subsequent account address input. Among them, eth.accounts records the addresses of all accounts on this machine. Since we created an account for the first time, there is only one account on the computer at present. So here we use eth. Accounts [0] to extract the first account address. The eth.getbalance function is used to obtain the account balance, and the parameters are filled in the account address. The my variable here records the address of the first account
I hope my answer can help you
if it is a reference selection method, first select the reference layer, with coverage, contact, no contact, object filtering, and then OK