mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-03 03:31:14 +00:00
parent
20e3de2c4b
commit
4a6fccaf69
6 changed files with 0 additions and 6 deletions
|
|
@ -381,7 +381,6 @@ func importWallet(ctx *cli.Context) error {
|
||||||
backends := am.Backends(keystore.KeyStoreType)
|
backends := am.Backends(keystore.KeyStoreType)
|
||||||
if len(backends) == 0 {
|
if len(backends) == 0 {
|
||||||
utils.Fatalf("Keystore is not available")
|
utils.Fatalf("Keystore is not available")
|
||||||
|
|
||||||
}
|
}
|
||||||
ks := backends[0].(*keystore.KeyStore)
|
ks := backends[0].(*keystore.KeyStore)
|
||||||
passphrase := getPassPhrase("", false, 0, utils.MakePasswordList(ctx))
|
passphrase := getPassPhrase("", false, 0, utils.MakePasswordList(ctx))
|
||||||
|
|
|
||||||
|
|
@ -48,5 +48,4 @@ func main() {
|
||||||
fmt.Println("UpdateFee: Get receipt failed", err)
|
fmt.Println("UpdateFee: Get receipt failed", err)
|
||||||
}
|
}
|
||||||
fmt.Println("UpdateFee: Done receipt status", r.Status)
|
fmt.Println("UpdateFee: Done receipt status", r.Status)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -261,7 +261,6 @@ func (api *FilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc.Subsc
|
||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case logs := <-matchedLogs:
|
case logs := <-matchedLogs:
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,6 @@ func (b *testBackend) GetBody(ctx context.Context, hash common.Hash, number rpc.
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *testBackend) GetReceipts(ctx context.Context, blockHash common.Hash) (types.Receipts, error) {
|
func (b *testBackend) GetReceipts(ctx context.Context, blockHash common.Hash) (types.Receipts, error) {
|
||||||
|
|
||||||
if number := rawdb.ReadHeaderNumber(b.db, blockHash); number != nil {
|
if number := rawdb.ReadHeaderNumber(b.db, blockHash); number != nil {
|
||||||
return rawdb.ReadReceipts(b.db, blockHash, *number, params.TestChainConfig), nil
|
return rawdb.ReadReceipts(b.db, blockHash, *number, params.TestChainConfig), nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,6 @@ func BenchmarkFilters(b *testing.B) {
|
||||||
case 99999:
|
case 99999:
|
||||||
receipt := makeReceipt(addr4)
|
receipt := makeReceipt(addr4)
|
||||||
gen.AddUncheckedReceipt(receipt)
|
gen.AddUncheckedReceipt(receipt)
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
for i, block := range chain {
|
for i, block := range chain {
|
||||||
|
|
|
||||||
|
|
@ -365,7 +365,6 @@ func (s *Server) StopMocker(w http.ResponseWriter, req *http.Request) {
|
||||||
|
|
||||||
// GetMockerList returns a list of available mockers
|
// GetMockerList returns a list of available mockers
|
||||||
func (s *Server) GetMockers(w http.ResponseWriter, req *http.Request) {
|
func (s *Server) GetMockers(w http.ResponseWriter, req *http.Request) {
|
||||||
|
|
||||||
list := GetMockerList()
|
list := GetMockerList()
|
||||||
s.JSON(w, http.StatusOK, list)
|
s.JSON(w, http.StatusOK, list)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue