good morning!!!!

Skip to content
Snippets Groups Projects
  1. Feb 14, 2018
  2. Feb 12, 2018
    • Martin Holst Swende's avatar
      node, rpc: fix linter issues · 6c6247a6
      Martin Holst Swende authored
      Unverified
      6c6247a6
    • Martin Holst Swende's avatar
      rpc: dns rebind protection (#15962) · 589b603a
      Martin Holst Swende authored
      * cmd,node,rpc: add allowedHosts to prevent dns rebinding attacks
      
      * p2p,node: Fix bug with dumpconfig introduced in r54aeb8e4c0bb9f0e7a6c67258af67df3b266af3d
      
      * rpc: add wildcard support for rpcallowedhosts + go fmt
      
      * cmd/geth, cmd/utils, node, rpc: ignore direct ip(v4/6) addresses in rpc virtual hostnames check
      
      * http, rpc, utils: make vhosts into map, address review concerns
      
      * node: change log messages to use geth standard (not sprintf)
      
      * rpc: fix spelling
      589b603a
  3. Jan 24, 2018
    • Steven Roose's avatar
      rpc: Support specifying HTTP client in RPC dialing (#15836) · 952482d5
      Steven Roose authored
      * rpc: Support specifying HTTP client in RPC dialing
      
      Adds a minimal interface that captures http.Client and adds a new method
      rpc.DialHTTPClient that takes a client using that interface. The existing
      rpc.DialHTTP method is then alternatively implemented by using the new
      rpc.DialHTTPClient method provided with a standard *http.Client.
      
      * rpc: fix minor doc typos
      952482d5
  4. Dec 28, 2017
  5. Dec 12, 2017
  6. Nov 17, 2017
  7. Nov 16, 2017
  8. Nov 10, 2017
  9. Nov 09, 2017
  10. Nov 08, 2017
  11. Sep 25, 2017
    • Lewis Marshall's avatar
      p2p: add network simulation framework (#14982) · 9feec51e
      Lewis Marshall authored
      This commit introduces a network simulation framework which
      can be used to run simulated networks of devp2p nodes. The
      intention is to use this for testing protocols, performing
      benchmarks and visualising emergent network behaviour.
      9feec51e
  12. Aug 08, 2017
  13. Jun 26, 2017
  14. Jun 15, 2017
  15. May 02, 2017
  16. Apr 25, 2017
  17. Apr 13, 2017
  18. Apr 12, 2017
    • Bas van Kervel's avatar
      cmd/utils, node: remove unused solc references and improve RPC config (#14324) · 5e29f4be
      Bas van Kervel authored
      Currently http cors and websocket origins are a comma separated string in the
      config object. These are replaced with string arrays that are more expressive in
      case of a config file.
      5e29f4be
    • Felix Lange's avatar
      cmd/geth: add --config file flag (#13875) · 30d706c3
      Felix Lange authored
      * p2p/discover, p2p/discv5: add marshaling methods to Node
      
      * p2p/netutil: make Netlist decodable from TOML
      
      * common/math: encode nil HexOrDecimal256 as 0x0
      
      * cmd/geth: add --config file flag
      
      * cmd/geth: add missing license header
      
      * eth: prettify Config again, fix tests
      
      * eth: use gasprice.Config instead of duplicating its fields
      
      * eth/gasprice: hide nil default from dumpconfig output
      
      * cmd/geth: hide genesis block in dumpconfig output
      
      * node: make tests compile
      
      * console: fix tests
      
      * cmd/geth: make TOML keys look exactly like Go struct fields
      
      * p2p: use discovery by default
      
      This makes the zero Config slightly more useful. It also fixes package
      node tests because Node detects reuse of the datadir through the
      NodeDatabase.
      
      * cmd/geth: make ethstats URL settable through config file
      
      * cmd/faucet: fix configuration
      
      * cmd/geth: dedup attach tests
      
      * eth: add comment for DefaultConfig
      
      * eth: pass downloader.SyncMode in Config
      
      This removes the FastSync, LightSync flags in favour of a more
      general SyncMode flag.
      
      * cmd/utils: remove jitvm flags
      
      * cmd/utils: make mutually exclusive flag error prettier
      
      It now reads:
      
         Fatal: flags --dev, --testnet can't be used at the same time
      
      * p2p: fix typo
      
      * node: add DefaultConfig, use it for geth
      
      * mobile: add missing NoDiscovery option
      
      * cmd/utils: drop MakeNode
      
      This exposed a couple of places that needed to be updated to use
      node.DefaultConfig.
      
      * node: fix typo
      
      * eth: make fast sync the default mode
      
      * cmd/utils: remove IPCApiFlag (unused)
      
      * node: remove default IPC path
      
      Set it in the frontends instead.
      
      * cmd/geth: add --syncmode
      
      * cmd/utils: make --ipcdisable and --ipcpath mutually exclusive
      
      * cmd/utils: don't enable WS, HTTP when setting addr
      
      * cmd/utils: fix --identity
      30d706c3
  19. Mar 24, 2017
  20. Mar 22, 2017
    • Felix Lange's avatar
      all: import "context" instead of "golang.org/x/net/context" · c213fd1f
      Felix Lange authored
      There is no need to depend on the old context package now that the
      minimum Go version is 1.7. The move to "context" eliminates our weird
      vendoring setup. Some vendored code still uses golang.org/x/net/context
      and it is now vendored in the normal way.
      
      This change triggered new vet checks around context.WithTimeout which
      didn't fire with golang.org/x/net/context.
      c213fd1f
  21. Mar 16, 2017
  22. Feb 23, 2017
  23. Jan 25, 2017
  24. Jan 09, 2017
  25. Jan 06, 2017
  26. Dec 20, 2016
  27. Nov 01, 2016
  28. Oct 03, 2016
  29. Sep 01, 2016
  30. Aug 17, 2016
  31. Aug 05, 2016
    • Felix Lange's avatar
      rpc: add context argument to EthSubscribe · e3292539
      Felix Lange authored
      It's inconsistent not to pass it and most callers will
      work with contexts anyway.
      e3292539
    • Felix Lange's avatar
      rpc: ensure client doesn't block for slow subscribers · f5f042ff
      Felix Lange authored
      I initially made the client block if the 100-element buffer was
      exceeded. It turns out that this is inconvenient for simple uses of the
      client which subscribe and perform calls on the same goroutine, e.g.
      
          client, _ := rpc.Dial(...)
          ch := make(chan int) // note: no buffer
          sub, _ := client.EthSubscribe(ch, "something")
          for event := range ch {
              client.Call(...)
          }
      
      This innocent looking code will lock up if the server suddenly decides
      to send 2000 notifications. In this case, the client's main loop won't
      accept the call because it is trying to deliver a notification to ch.
      
      The issue is kind of hard to explain in the docs and few people will
      actually read them. Buffering is the simple option and works with close
      to no overhead for subscribers that always listen.
      f5f042ff
    • Felix Lange's avatar
Loading