- Jun 15, 2020
-
-
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
-
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:
Péter Szilágyi <peterke@gmail.com> # Conflicts: # go.sum # trie/proof.go # trie/proof_test.go
-
ucwong authored
# Conflicts: # whisper/shhclient/client.go
-
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:
Martin Holst Swende <martin@swende.se> # Conflicts: # accounts/abi/bind/backends/simulated.go
-
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:
ligi <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
-
Felix Lange authored
-
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
-
Satpal authored
-
Péter Szilágyi authored
-
Igor Mandrigin authored
-
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
-
- Jun 14, 2020
-
-
Alex Sharov authored
* set Pooled=true * don't call initCursor on happy path
-
- Jun 13, 2020
-
-
ledgerwatch authored
* Fix body fetch * Reduce spurious reorgs * Exit the sync cycle after unwinds * Fix out of range * No stalling check for staged sync * Disable failing tests * Remove duplicate log message * Fix UnwindTest and add assertions * Fix formatting * Cleanup * Fix off by one error with bodies * Remove rollback
-
Igor Mandrigin authored
* lil etl changez * fix test compile * fixups to the unwinds * add new buffer mode * support unfinished transitions * fixups * fix tests * linters * linters
-
ledgerwatch authored
-
Alex Sharov authored
* Enable NoReadahead by default * don't call lmdb.IsNotFound on happy path Co-authored-by:
Alexey Akhunov <akhounov@gmail.com>
-
Alex Sharov authored
-
ledgerwatch authored
* Fixes to stages * Fix formatting * Fixes to stages * Fix formatting * Fix linter * Fix lint * Updates * Next update * Update * Test works * Cleanup * Fix formatting * Fix formatting * Cleanup * Fix core test * Reinstate randomness for reorgs
-
- Jun 12, 2020
-
-
Alex Sharov authored
* remove unused slice from MultiPut * mutation: reuse tuples slice and preallocate bucketPuts * use bucketPool in kv_lmdb * remove duplicated check of context status * more benchmarks * remove reusage of puts
-
Andrew Ashikhmin authored
* Profile all stages * Try to recover senders with 8 goroutines * fix CPU profiling for stage_bodies * fix out-of-index * Try full DAG for verfication of header seals * Try to unroll fnvHash for performance * SSE2 assembly for fnvHash16 * fnvHash16AVX2 * Revert changes to state.go * check we're on 64-bit in useAVX2 * Shave a move off fnvHash16AVX2 * asmdecl doesn't know about VMOVD * disable linter in the right place
-
Alex Sharov authored
* Upgrade lmdb to version of 2019, which is compatible with https://github.com/jnwatson/py-lmdb (lmdb of 2020 year version - upgaded lock file version from 1 to 2 - and python binding can't open database if lockfile exists - if main app is running).
-
Alex Sharov authored
* remove ctx from MustOpen * remove ctx from Open. Stop goroutines on Close. * remove ctx from Open. Stop goroutines on Close. * remove ctx from remote open (we have DialTimeout field to manage connection timeouts) * enable RawReads and add native implementation of Get/Has methods
-
Alex Sharov authored
-
Alex Sharov authored
-
Alex Sharov authored
-
- Jun 11, 2020
-
-
ledgerwatch authored
* Debug infos * bucketStats lmdb by default * Use bools instead of strings * Fix linters * Fix linter * Finally fix * Fix compile error * Fix test * Fix formatting * Fix shadowing * Cleanup * cleanup
-
- Jun 10, 2020
-
-
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
-
Alex Sharov authored
* lmdb bucket stats * fix lint warnings * add bucket.Size method * add bucket.Size method
-
- Jun 09, 2020
-
-
Andrew Ashikhmin authored
* Euphemerally -> Ephemerally * Move StorageMode to ethdb and pass it to PrepareStagedSync * linter * Remove StorageModeThinHistory and move SetStorageModeIfNotExist into storage_mode.go * Optionally write receipts in the execute stage * memory profiler * linter * proper linter fix * linter * typo * Merge stateDb with changeDb so that all-or-nothing is commited in stage_execute
-
Igor Mandrigin authored
use `s.UpdateWithStageData(db, <block number>, <key>)` to store the key use `s.StageData` with `etl.NextKey` to restart ETL from where it was interrupted.
-
Alex Sharov authored
* enable_golint_with_conditions * enable_golint_with_conditions
-
Andrew Ashikhmin authored
* Upgrade uint256 to v1.1.0 * go mod tidy
-
ledgerwatch authored
* Start from 9m7 * Regenerate IH + receipts * Only stats for iH bucket * Persist receipts * Go all in * Start from block 10m * Convert DbState to use plain state * Fix findHistory * Hard-code export * More fixes * Fix test * Fix formatting * Introduce PlainDbState * Actually return PlainDbState * Fix formatting * Fix name style lint * Fix linters * Fix history_test * Fix blockchain_test * Fix compile error * Bucket stats from all buckets
-
Alex Sharov authored
-
- Jun 08, 2020
-
-
Andrew Ashikhmin authored
-
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
-
Igor Mandrigin authored
* some stubs * post rebase * fixups * linter * linter 2 * Update stages.go
-
- Jun 07, 2020
-
-
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
-
- Jun 06, 2020
-
-
Evgeny Danilenko authored
* optimize codeBitmap * add lru * remove custom lru * jumpDests as explocit parameter * lint * lint * linters * default jumpDestsCache * remove common.rand
-
Evgeny Danilenko authored
* check stop on every block inside jobs * stop spawnRecoverSendersStage properly * fmt * close recoverSenders goroutines * fmt
-