简体   繁体   English

在 go-ethereum 安装中创建命令?

[英]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.

相关问题 为什么命令“ go clean -n -r -igithub.com/ethereum/go-ethereum…”不起作用? - Why command “go clean -n -r -i github.com/ethereum/go-ethereum…” does not work? Go-Ethereum 中的两个未知参数 function - two unknow parameters in Go-Ethereum function Istanbul-tools安装错误:github.com/ethereum/go-ethereum/crypto/bn256/cloudflare.gfpMul:重定位目标runtime.support_bmi2未定义 - Istanbul-tools installation error: github.com/ethereum/go-ethereum/crypto/bn256/cloudflare.gfpMul: relocation target runtime.support_bmi2 not defined 如何将 AWS 区块链服务与 go-ethereum 一起使用? - How to use the AWS blockchain service with go-ethereum? 没有 abi 的 go-ethereum 编码或解码输入数据 - go-ethereum encoding or decoding input data without abi 使用 glide 安装 go-ethereum 依赖项和tendermint 依赖项 - install go-ethereum dependencies and tendermint dependencies with glide 如何通过 go-ethereum 创建 eth 帐户? - How can I create eth account via go-ethereum? 从 go-ethereum 实现 Ethereum Personal_sign (EIP-191) 给出了与 ethers.js 不同的签名 - Implementing Ethereum personal_sign (EIP-191) from go-ethereum gives different signature from ethers.js “不支持交易类型”尝试使用 Go-Ethereum、Solidity、Go 部署简单合约时。 不会发生在 Remix 中 - "transaction type not supported" When trying to deploy a simple contract using Go-Ethereum, Solidity, Go. Doesn't happen in Remix 如何在 Go SDK 中部署以太坊智能合约 - How to deploy ethereum smart contracts in Go SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM