good morning!!!!

Skip to content
Snippets Groups Projects
  1. Jun 15, 2020
    • Felföldi Zsolt's avatar
      les, les/lespay: implement new server pool (#20758) · 1ca95e83
      Felföldi Zsolt authored
      This PR reimplements the light client server pool. It is also a first step
      to move certain logic into a new lespay package. This package will contain
      the implementation of the lespay token sale functions, the token buying and
      selling logic and other components related to peer selection/prioritization
      and service quality evaluation. Over the long term this package will be
      reusable for incentivizing future protocols.
      
      Since the LES peer logic is now based on enode.Iterator, it can now use
      DNS-based fallback discovery to find servers.
      
      This document describes the function of the new components:
      https://gist.github.com/zsfelfoldi/3c7ace895234b7b345ab4f71dab102d4
      
      # Conflicts:
      #	cmd/utils/flags.go
      #	core/forkid/forkid.go
      #	les/client.go
      #	les/client_handler.go
      #	les/commons.go
      #	les/distributor.go
      #	les/enr_entry.go
      #	les/fetcher.go
      #	les/lespay/client/valuetracker.go
      #	les/metrics.go
      #	les/peer.go
      #	les/protocol.go
      #	les/retrieve.go
      #	les/server.go
      #	les/serverpool.go
      #	les/test_helper.go
      #	les/utils/expiredvalue.go
      #	les/utils/weighted_select.go
      #	les/utils/weighted_select_test.go
      #	params/bootnodes.go
      1ca95e83
    • gary rong's avatar
      trie: extend range proofs with non-existence (#21000) · 1665219f
      gary rong authored
      
      * trie: implement range proof with non-existent edge proof
      
      * trie: fix cornercase
      
      * trie: consider empty range
      
      * trie: add singleSide test
      
      * trie: support all-elements range proof
      
      * trie: fix typo
      
      * trie: tiny typos and formulations
      
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      # Conflicts:
      #	go.sum
      #	trie/proof.go
      #	trie/proof_test.go
      1665219f
    • ucwong's avatar
      whisper: use canonical import name of package go-ethereum (#21099) · b71b1cf7
      ucwong authored
      # Conflicts:
      #	whisper/shhclient/client.go
      b71b1cf7
    • Boqin Qin's avatar
      accounts: add blockByNumberNoLock() to avoid double-lock (#20983) · defe185e
      Boqin Qin authored
      
      * abi/bind/backends: testcase for double-lock
      
      * accounts: add blockByNumberNoLock to avoid double-lock
      
      * backend/simulated: use stateroot, not blockhash for retrieveing state
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      # Conflicts:
      #	accounts/abi/bind/backends/simulated.go
      defe185e
    • Martin Holst Swende's avatar
      cmd/clef, signer/core: password input fixes (#20960) · fd4f6397
      Martin Holst Swende authored
      
      * cmd/clef, signer/core: use better terminal input for passwords, make it possible to avoid boot-up warning
      
      * all: move commonly used prompter to isolated (small) package
      
      * cmd/clef: Add new --acceptWarn to clef README
      
      * cmd/clef: rename flag 'acceptWarn' to 'suppress-bootwarn'
      
      Co-authored-by: default avatarligi <ligi@ligi.de>
      # Conflicts:
      #	cmd/clef/main.go
      #	cmd/devp2p/dnscmd.go
      #	cmd/ethkey/utils.go
      #	cmd/geth/accountcmd.go
      #	cmd/geth/chaincmd.go
      #	cmd/geth/main.go
      #	cmd/wnode/main.go
      #	console/bridge.go
      #	console/console.go
      #	console/console_test.go
      #	signer/core/cliui.go
      fd4f6397
    • Felix Lange's avatar
    • Marius van der Wijden's avatar
      accounts/abi: simplify reflection logic (#21058) · 88e3533d
      Marius van der Wijden authored
      * accounts/abi: simplified reflection logic
      
      * accounts/abi: simplified reflection logic
      
      * accounts/abi: removed unpack
      
      * accounts/abi: removed comments
      
      * accounts/abi: removed uneccessary complications
      
      * accounts/abi: minor changes in error messages
      
      * accounts/abi: removed unnused code
      
      * accounts/abi: fixed indexed argument unpacking
      
      * accounts/abi: removed superfluous test cases
      
      This commit removes two test cases. The first one is trivially invalid as we have the same
      test cases as passing in packing_test.go L375. The second one passes now,
      because we don't need the mapArgNamesToStructFields in unpack_atomic anymore.
      Checking for purely underscored arg names generally should not be something we do
      as the abi/contract is generally out of the control of the user.
      
      * accounts/abi: removed comments, debug println
      
      * accounts/abi: added commented out code
      
      * accounts/abi: addressed comments
      
      * accounts/abi: remove unnecessary dst.CanSet check
      
      * accounts/abi: added dst.CanSet checks
      # Conflicts:
      #	accounts/abi/reflect.go
      88e3533d
    • Satpal's avatar
      cmd: fix log contexts (#21077) · 82ee3c77
      Satpal authored
      82ee3c77
    • Péter Szilágyi's avatar
      params: begin v1.9.15 release cycle · 17a0766b
      Péter Szilágyi authored
      17a0766b
    • Igor Mandrigin's avatar
      add to-merge.txt · 25f9f0f3
      Igor Mandrigin authored
      25f9f0f3
    • Alex Sharov's avatar
      Minor lmdb related improvements (#667) · 57358730
      Alex Sharov authored
      * don't call initCursor on happy path
      
      * don't call initCursor on happy path
      
      * don't run stale reads goroutine for inMem mode
      
      * don't call initCursor on happy path
      
      * remove buffers from cursor object - they are useful only in Badger implementation
      
      * commit kv benchmark
      
      * remove buffers from cursor object - they are useful only in Badger implementation
      
      * remove buffers from cursor object - they are useful only in Badger implementation
      
      * cancel server before return pipe to pool
      
      * try  to fix test
      
      * set field db in managed tx
      57358730
  2. Jun 14, 2020
  3. Jun 13, 2020
  4. Jun 12, 2020
  5. Jun 11, 2020
  6. Jun 10, 2020
    • b00ris's avatar
      [WIP] TxLookup stage (#646) · b4ba764f
      b00ris authored
      * save state
      
      * txlookup full results
      
      * save state
      
      * save state
      
      * remove experiments
      
      * some fix&lint
      
      * add end key to txLookup and index generation
      
      * change log message
      
      * change log
      
      * fix lint
      
      * lint
      
      * fix test
      b4ba764f
    • Alex Sharov's avatar
      lmdb bucket stats (#645) · fd61af70
      Alex Sharov authored
      * lmdb bucket stats
      
      * fix lint warnings
      
      * add bucket.Size method
      
      * add bucket.Size method
      fd61af70
  7. Jun 09, 2020
  8. Jun 08, 2020
    • Andrew Ashikhmin's avatar
      d1509f21
    • Alex Sharov's avatar
      KV: Tx objects pool (#637) · f00f4b5d
      Alex Sharov authored
      * Lmdb internal objects reuse (built-in feature of lmdb):
      - lmdb read transactions pool
      - lmdb also support cursors reuse, but not implemented in this PR
      
      And kv abstraction objects reuse:
      - lmdbKV pool of all tx objects
      - boltKV pool of all tx objects
      - badgerKV pool of all tx objects
      
      * switch makefile back to bolt
      
      * switch makefile back to bolt
      
      * lmdb test run
      
      * switch makefile back to bolt
      
      * cursors pool
      
      * run lmdb tests
      
      * make kv objects pool global
      
      * switch makefile back to bolt
      
      * remove badgers GOMAXPROC setup, because our app tunned for sequential read/writes, not for random throughput
      
      * simplify code
      f00f4b5d
    • Igor Mandrigin's avatar
      refactor stagedsync unwind, add tests(#636) · 1d740fc7
      Igor Mandrigin authored
      * some stubs
      
      * post rebase
      
      * fixups
      
      * linter
      
      * linter 2
      
      * Update stages.go
      1d740fc7
  9. Jun 07, 2020
    • ledgerwatch's avatar
      Introduce intermediate hashes stage (#634) · 0fb37c80
      ledgerwatch authored
      * Query progress
      
      * Run stage4 offline
      
      * More thorough resetState
      
      * Correct BlockNumber
      
      * Fix formatting
      
      * State loop
      
      * do every 200k blocks
      
      * Shift to 6.6m
      
      * Close dbs in tests
      
      * Stage2 with option of no reset
      
      * every 100k blocks
      
      * Reset state before stage5
      
      * Introduce another stage
      
      * Check compile errors
      
      * Fix linter
      
      * Fix linter
      
      * Disable unreliable test
      
      * Fix test
      
      * Remove unreachable code
      0fb37c80
  10. Jun 06, 2020
    • Evgeny Danilenko's avatar
      optimize codeBitmap (#626) · 41ee460a
      Evgeny Danilenko authored
      * optimize codeBitmap
      
      * add lru
      
      * remove custom lru
      
      * jumpDests as explocit parameter
      
      * lint
      
      * lint
      
      * linters
      
      * default jumpDestsCache
      
      * remove common.rand
      41ee460a
    • Evgeny Danilenko's avatar
      Fix stage 3 shutdown (#629) · 3134066b
      Evgeny Danilenko authored
      * check stop on every block inside jobs
      
      * stop spawnRecoverSendersStage properly
      
      * fmt
      
      * close recoverSenders goroutines
      
      * fmt
      3134066b
Loading