Skip to content

Commit

Permalink
update web3Cliver to web3CliVer
Browse files Browse the repository at this point in the history
  • Loading branch information
libangzhu authored and vipwzw committed Aug 17, 2022
1 parent bd02053 commit b88527a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cmd/chain33/chain33.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ httpApi=["eth","web3","personal","admin","net"]
# websocket 绑定地址
wsAddr="localhost:8546"
wsApi=["eth","web3","personal","admin","net"]

# 自定义配置 web3_clientversion 版本
web3CliVer=""
[mempool]
# mempool队列名称,可配,timeline,score,price
name="timeline"
Expand Down
2 changes: 1 addition & 1 deletion rpc/ethrpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type subConfig struct {
HTTPAPI []string `json:"httpApi,omitempty"` //eth,admin,net,web3/personal
WsAddr string `json:"wsAddr,omitempty"`
WsAPI []string `json:"wsApi,omitempty"` //eth,admin,net,web3/personal
Web3CliVer string `json:"web3Cliver,omitempty"`
Web3CliVer string `json:"web3CliVer,omitempty"`
}

//ServerAPI ...
Expand Down
2 changes: 1 addition & 1 deletion rpc/ethrpc/web3/web3.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (w *web3Handler) Sha3(input string) (string, error) {
//web3_clientVersion
func (w *web3Handler) ClientVersion() (string, error) {
var subcfg struct {
Web3CliVer string `json:"web3Cliver,omitempty"`
Web3CliVer string `json:"web3CliVer,omitempty"`
}

ctypes.MustDecode(w.cfg.GetSubConfig().RPC["eth"], &subcfg)
Expand Down
2 changes: 1 addition & 1 deletion types/defaultcfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jrpcFuncWhitelist=["*"]
grpcFuncWhitelist=["*"]
[rpc.sub.eth]
enable=false
web3Cliver="Geth/v1.8.15-omnibus-255989da/linux-amd64/go1.10.1"
web3CliVer="Geth/v1.8.15-omnibus-255989da/linux-amd64/go1.10.1"
[mempool]
name="timeline"
Expand Down

0 comments on commit b88527a

Please sign in to comment.