[英]Make command in go-ethereum installation?
i am trying to change the source code of geth and I have some doubts.我正在尝试更改 geth 的源代码,但我有一些疑问。 I need to modify the following sentence in order to admit transactions with more data in them: txMaxSize = 4 * txSlotSize // 128KB
of tx_pool.go file: https://github.com/ethereum/go-ethereum/blob/master/core/tx_pool.go I have run我需要修改以下句子以允许其中包含更多数据的交易: txMaxSize = 4 * txSlotSize // 128KB
of tx_pool.go 文件: https://github.com/ethereum/go-ethereum core/tx_pool.go我已经跑了
git clone https://github.com/ethereum/go-ethereum.git
My doubt is whether i have to modify the file before or after running make geth
我的疑问是我是否必须在运行make geth
之前或之后修改文件
Thanks谢谢
From the perspective of building the application, you can simply:从构建应用程序的角度来看,您可以简单地:
git clone $repo
Make modifications to the file.对文件进行修改。 Then然后
make geth
or或者
cd cmd/geth/
go build
to build your application.构建您的应用程序。 Just running go build
will generally be faster for development / testing, but make geth
gives more reproducible builds.仅运行go build
通常会更快地进行开发/测试,但make geth
提供了更多可重现的构建。
I would warn you though, that unless your plan is to make your own network with a separate client that has larger transactions, building Geth with larger transactions will just mean you can create transactions that won't propagate across the network very successfully as other nodes on the network will reject them.不过我会警告您,除非您的计划是使用具有较大事务的单独客户端创建自己的网络,否则使用较大事务构建 Geth 将仅意味着您可以创建不会像其他节点一样成功地在网络中传播的事务在网络上会拒绝他们。 Most miners use Geth (or Geth forks) to assemble new blocks, and changing the parameters yourself won't change it for other nodes on the network.大多数矿工使用 Geth(或 Geth 分叉)来组装新块,并且自己更改参数不会改变网络上其他节点的参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.