mainnet,alphanet和zeronet之间有什么区别?
2 个回答
- 投票数
-
- 2019-01-30
两个测试网络以不同的速度移动. Zeronet比alphanet快得多.这会影响您测试烘焙等不同场景的速度有多快.
- 在Zeronet中,每个周期为128个块,每个块的目标时间为20秒.因此,每个周期应在大约42.66分钟内完成,尽管如果面包师错过了砌块,它们可能需要更长的时间.
- 在alphanet中,每个周期为2048个块,每个块的目标时间为30秒.因此,每个周期应在大约17.06小时内完成.
由于烘焙权限是由给定周期内拍摄的快照确定的,并且在当前周期+ 5个周期(对于零网)或当前周期+ 7个周期(对于alphanet)中使用,因此这意味着您需要的时间量在Alphanet中等待烘焙的时间比在零级网络中更长.
- 在alphanet中,如果您从水龙头上得到一些tez并立即委派给自己,您将在5天内拥有烘烤权利(给定的标准阻断时间为4.97).
- 在zeronet中,委派后,您将在大约3.55小时内拥有烘焙权.
因此,如果您想非常快速地测试烘烤,我建议您在Zeronet中进行测试,但是,如果您想测试长期烘烤,则可以在alphanet中进行测试.
两个网络的水龙头都相同: https://faucet.tzalpha.net/-tez从水龙头上获得的水在两个网络上都可以使用.
协议修订(投票)将首先在alphanet上进行测试,因为更长的周期时间使其更易于测试.
The two test networks move at different speeds. Zeronet is much faster than alphanet. This makes a difference in how quickly you can test different scenarios like baking.
- In zeronet, each cycle is 128 blocks, and each block has a target time of 20 seconds. So, each cycle should complete in roughly 42.66 minutes, although they may take longer if bakers miss blocks.
- In alphanet, each cycle is 2048 blocks, and each block has a target time of 30 seconds. So, each cycle should complete in roughly 17.06 hours.
Since baking rights are determined by a snapshot taken during a given cycle, and are used in current cycle + 5 cycles (for zeronet) or current cycle + 7 cycles (for alphanet), this means that the amount of time you need to wait to bake is much longer in alphanet than zeronet.
- In alphanet, if you get some tez from the faucet and delegate to yourself immediately, you will have baking rights in about 5 days (4.97 given standard block times).
- In zeronet, after delegation, you will have baking rights in about 3.55 hours.
So, if you want to test baking very quickly, I would recommend testing in zeronet, but if you want to test longer term baking, you can test in alphanet.
The faucet for both networks is the same: https://faucet.tzalpha.net/ - tez that you get from the faucet will work on both networks.
Protocol amendments (voting) will be tested on alphanet first, as the longer cycle time makes it easier to test.
-
- 2019-01-30
- Alphanet是链上tezos用户和开发人员的测试网络.
它运行主网的确切代码.它只有几个常数的差异才能更快地运行.当前:
time_between_block/2
,blocks_per_cycle/2
,blocks_per_voting_period/4
,...这也意在强制执行请勿硬接线代码中的常量,它们可能会更改! :-)- Zeronet是链的tezos开发人员 及其生态系统的测试网络.
它与存储库
master分支尽可能接近地运行尖端代码 /tezos" rel="noreferrer"> https://gitlab.com/tezos/tezos . - Alphanet is the test network for tezos users and developers on the chain.
It runs the exact code of mainnet. It only differs by a few constants to run faster. Currently:
time_between_block/2
,blocks_per_cycle/2
,blocks_per_voting_period/4
, ... This is also meant to enforce Do not hardwire constants in your code, they may change! :-)- Zeronet is the test network for tezos developers of the chain and its ecosystem.
It runs a cutting edge code as close as possible to what is the
master
branch of the repository https://gitlab.com/tezos/tezos .
作为测试网络,尤其是alphanet与zeronet有何不同?