简体   繁体   English

以太坊创世纪文件专用网络

[英]Ethereum Genesis file private network

Need some basic info on ethereum. 需要有关以太坊的一些基本信息。 Can I send 1 million transaction in a day in ethereum private network?If yes, how much gas will be required(approx)? 我可以每天在以太坊专用网络中发送100万笔交易吗?如果是,将需要多少天然气(大约)?

How much of maximum gas limit can we define for a node? 我们可以为一个节点定义多少最大气体限制?

And I have a doubt that if I reinitialize the genesis file then, whether a new blockchain is started or it continues with the older one? 我怀疑如果我重新初始化创世文件,那么是启动新的区块链还是继续使用旧的区块链?

Can I send 1 million transaction in a day in ethereum private network? 我可以每天在以太坊专用网络中发送100万笔交易吗?

Yes, that's around 12 transactions per second, that's no problem . 是的,每秒大约有12个事务, 这没问题

1000000 / (24 * 60 * 60) = 11.574

If yes, how much gas will be required(approx)? 如果是,将需要多少气体(大约)?

A transaction without anything else but value transfer costs 21,000 gas. 除了价值转移外,没有其他任何交易的成本为21,000瓦斯。

That is 21 billion gas per 1 million transactions per day, or (assuming a 15 seconds block time) 3.6 million gas per block: 也就是说,每天每100万笔交易需要210亿个气体,或者(假设15秒钟的阻塞时间)每个区块360万个气体:

 21000000000 / (24 * 60 * 4) = 3645833.333

The default gas limit on Ethereum public network is 4712388 (1.5 * pi million). 以太坊公共网络的默认气体限制为4712388(1.5 * pi百万)。 But it's trivial to increase the target gas limit. 但是增加目标气体限制很简单。

How much of maximum gas limit can we define for a node? 我们可以为一个节点定义多少最大气体限制?

In theory, you should be able to set the gas limit as high as you wish, however, that's not practicable, as discussed in EIP-106 which suggest limiting the maximum block gas limit to 2^63 - 1 . 从理论上讲,您应该能够将气体限制设置为所需的上限,但是这是不切实际的,正如EIP-106中所讨论的那样,建议将最大块状气体限制限制为2^63 - 1

And I have a doubt that if I reinitialize the genesis file then, whether a new blockchain is started or it continues with the older one? 我怀疑如果我重新初始化创世文件,那么是启动新的区块链还是继续使用旧的区块链?

Yes, if you change the genesis, this will in most cases start a new blockchain. 是的,如果您改变了起源,在大多数情况下,这将启动一个新的区块链。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM