good morning!!!!

Skip to content
Snippets Groups Projects
  1. Sep 30, 2015
    • Felix Lange's avatar
      631bf361
    • Felix Lange's avatar
      p2p/discover: fix race involving the seed node iterator · b4374436
      Felix Lange authored
      nodeDB.querySeeds was not safe for concurrent use but could be called
      concurrenty on multiple goroutines in the following case:
      
      - the table was empty
      - a timed refresh started
      - a lookup was started and initiated refresh
      
      These conditions are unlikely to coincide during normal use, but are
      much more likely to occur all at once when the user's machine just woke
      from sleep. The root cause of the issue is that querySeeds reused the
      same leveldb iterator until it was exhausted.
      
      This commit moves the refresh scheduling logic into its own goroutine
      (so only one refresh is ever active) and changes querySeeds to not use
      a persistent iterator. The seed node selection is now more random and
      ignores nodes that have not been contacted in the last 5 days.
      b4374436
  2. Sep 25, 2015
  3. Sep 23, 2015
  4. Sep 22, 2015
    • Felix Lange's avatar
      rpc/api: don't crash for unknown blocks · 90cd8ae9
      Felix Lange authored
      Most eth RPC calls that work with blocks crashed when the block was not
      found because they called Hash on a nil block. This is a regression
      introduced in cdc2662c (#1779).
      
      While here, remove the insane conversions in get*CountBy*. There is no
      need to construct a complete BlockRes and converting
      int->int64->*big.Int->[]byte->hexnum->string to format the length of a
      slice as hex.
      90cd8ae9
    • Felix Lange's avatar
      cmd/geth, core: make "geth blocktest" work again · 70b61747
      Felix Lange authored
      The test genesis block was not written properly, block insertion failed
      immediately.
      
      While here, fix the panic when shutting down "geth blocktest" with
      Ctrl+C. The signal handler is now installed automatically, causing
      ethereum.Stop to crash because everything is already stopped.
      70b61747
    • Gustav Simonsson's avatar
  5. Sep 21, 2015
  6. Sep 18, 2015
  7. Sep 17, 2015
  8. Sep 16, 2015
  9. Sep 15, 2015
Loading