cmd/geth, cmd/puppeth: replace deprecated rpc and ws flags in tests and docs (#21317)

This commit is contained in:
rene
2020-07-09 17:48:40 +02:00
committed by GitHub
parent 6ccce0906a
commit beabf95ad7
5 changed files with 16 additions and 16 deletions

View File

@ -97,7 +97,7 @@ func (g *gethrpc) waitSynced() {
func startGethWithRpc(t *testing.T, name string, args ...string) *gethrpc {
g := &gethrpc{name: name}
args = append([]string{"--networkid=42", "--port=0", "--nousb", "--rpc", "--rpcport=0", "--rpcapi=admin,eth,les"}, args...)
args = append([]string{"--networkid=42", "--port=0", "--nousb", "--http", "--http.port=0", "--http.api=admin,eth,les"}, args...)
t.Logf("Starting %v with rpc: %v", name, args)
g.geth = runGeth(t, args...)
// wait before we can attach to it. TODO: probe for it properly