Péter Szilágyi
88c756c83d
metrics: fix expensive metrics flag processing
6 years ago
Samuel Marks
71cb816a74
appveyor: bump Windows Go builders to 1.12.1 ( #19294 )
6 years ago
Péter Szilágyi
86989e3fcd
core: split out detailed trie access metrics from insertion time ( #19316 )
...
* core: split out detailed trie access metrics from insertion time
* cmd, core, metrics: support expensive optional metrics
6 years ago
Felföldi Zsolt
e852505ace
les: fix block announcements ( #19322 )
6 years ago
lash
2f5b6cb442
swarm/network: Use different privatekey for bzz overlay in sim ( #19313 )
...
* cmd/swarm, p2p, swarm: Enable ENR in binary/execadapter
* cmd/p2p/swarm: Remove comments + config.Enode nomarshal
* p2p/simulations: Remove superfluous error check
* p2p/simulation: Move init enode comment
* swarm, p2p/simulations, cmd/swarm: Use nodekey in binary record sign
* swarm/network, swarm/pss: Dervice bzzkey
* swarm/pss: Remove unused function
* swarm/network: Store swarm private key in simulation bucket
* swarm/pss: Shorten TextProxNetwork shortrunning test timeout
* swarm/pss: Increase prox test timeout
* swarm/pss: Increase timeout slightly on shortrunning proxtest
* swarm/network: Simplify bucket instantiation in servicectx func
* p2p/simulations: Tcpport -> udpport
* swarm/network, swarm/pss: Simplify + correct lock in servicefunc sim
* swarm/network: Cleanup after rebase on extract swarm enode new
* p2p/simulations, swarm/network: Make exec disc test pass
* swarm/network: Prune ye olde comment
* swarm/pss: Correct revised bzzkey method call
* swarm/network: Clarify comment about privatekey generation data
* swarm/pss: Fix syntax errors after rebase
* swarm/network: Rename misleadingly named method
(amend commit to trigger ci - attempt 5)
6 years ago
Martin Holst Swende
876f357364
trie: disable fnv64a hashing of hashes for bigcache ( #19314 )
...
* trie: disable fnv64a hashing of hashes for bigcache
* trie/database: add very important period
6 years ago
gluk256
8d04154691
p2p/simulations: wait until all connections are recreated when uploading snapshot ( #19312 )
...
* swarm/network/simulation: test cases refactored
* swarm/pss: minor refactoring
* swarm/simulation: UploadSnapshot updated
* swarm/network: style fix
* swarm/pss: bugfix
6 years ago
lash
09924cbcaa
cmd/swarm, p2p, swarm: Enable ENR in binary/execadapter ( #19309 )
...
* cmd/swarm, p2p, swarm: Enable ENR in binary/execadapter
* cmd/p2p/swarm: Remove comments + config.Enode nomarshal
* p2p/simulations: Remove superfluous error check
* p2p/simulation: Move init enode comment
* swarm/api: Check error in config test
* swarm, p2p/simulations, cmd/swarm: Use nodekey in binary record sign
* cmd/swarm: Make nodekey available for swarm api config
6 years ago
Ferenc Szabo
3585351888
travis: extend race detection for swarm p2p packages ( #19287 )
...
* travis: remove verbose from Swarm race tests
By removing -v our output will be cleaner, but the Travis job still
won't be terminated - due to 'no output for 10 minutes' - as keepalive
.sh produces a log line every 5 minutes.
* travis: extend Swarm race detection to p2p subpackages
As p2p/protocols, p2p/simulations and p2p/testing packages mostly
belong to the Swarm team.
6 years ago
Martin Holst Swende
650ad19c2d
core: make txpool handle reorg due to setHead
6 years ago
Anton Evangelatov
baded64d88
swarm/network: measure time of messages in priority queue ( #19250 )
6 years ago
Felföldi Zsolt
c53c5e616f
les: fix peer id and reply error handling ( #19289 )
...
* les: fixed peer id format
* les: fixed peer reply error handling
6 years ago
Elad
e7d1867964
contracts, swarm: implement EIP-1577 ( #19285 )
...
* contracts/ens: update public resolver solidity code
* contracts/ens: update public resolver, update go bindings
* update build
* fix ens.sol
* contracts/ens: change contract interface
* contracts/ens: implement public resolver changes
* contracts/ens: added ENSRegistry contract
* contracts/ens: reinstate old contract code
* contracts/ens: update README.md
* contracts/ens: added test coverage for fallback contract
* contracts/ens: added support for fallback contract
* contracts/ens: removed unused contract code
* contracts/ens: add todo and decode multicodec stub
* add encode
* vendor: add ipfs cid libraries
* contracts/ens: cid sanity tests
* contracts/ens: more cid sanity checks
* contracts/ens: wip integration
* wip
* Revert "vendor: add ipfs cid libraries"
This reverts commit 29d9b6b294
.
* contracts/ens: removed multiformats dependencies
* contracts/ens: added decode tests
* contracts/ens: added eip spec test, minor changes to exiting tests
* contracts/ens: moved cid decoding to own file
* contracts/ens: added unit test to encode hash to content hash
* contracts/ens: removed unused code
* contracts/ens: fix ens tests to use cid decode and encode
* contracts/ens: adjust swarm multicodecs after pr merge
* contracts/ens: fix linter error
* constracts/ens: address PR comments
* cmd, contracts: make peoples lives easier
* contracts/ens: fix linter error
* contracts/ens: address PR comments
6 years ago
Kushagra Sharma
fb458280d1
Modified Abigen to Support Vyper ( #19120 )
6 years ago
Péter Szilágyi
47c03c0f8c
Merge pull request #19288 from karalabe/les-verbose-errors
...
les, light: verbose errors on state retrieval issues
6 years ago
Péter Szilágyi
211ec46284
les, light: verbose errors on state retrieval issues
6 years ago
Kurkó Mihály
54cd3e89a4
dashboard: fix deprecated or problematic dependencies ( #19271 )
...
* dashboard: fix github alerts
* dashboard: run go generate
6 years ago
gary rong
def1b0d7e1
vendor: udpate leveldb upstream ( #19284 )
6 years ago
Nick Johnson
acebccc3bf
graphql: Updates to graphql support to match EIP1767 ( #19238 )
...
Updates to match EIP1767
6 years ago
gluk256
6e401792ce
swarm/pss: negihbourhood addressing simulation tests ( #19278 )
...
* swarm/pss: fixed bug in pss.process, test added
* swarm/pss: test case updated
* swarm/pss: WaitTillSnapshotRecreated() func added
* swarm/pss: snapshot test updated
* swarm/pss: WaitTillSnapshotLoaded() fixed
* swarm/pss: gofmt applied
* swarm/pss: refactoring, file renamed
* swarm/pss: input data fixed
* swarm/pss: race condition fixed
* swarm/pss: test timeout increased
* swarm/pss: eliminated the global variables
* swarm/pss: tests added
* swarm/pss: comments added
* swarm/pss: comment fixed
* swarm/pss: refactored according to review
* swarm/pss: style fix
* swarm/pss: increased timeout
6 years ago
Anton Evangelatov
3d067b0cea
cmd/swarm/swarm-smoke: do not fail if a node does not respond to rpc ( #19280 )
6 years ago
Janoš Guljaš
f180981273
swarm/shed: add vector uint64 field ( #19279 )
6 years ago
lash
4b4f03ca37
swarm, p2p: Prerequities for ENR replacing handshake ( #19275 )
...
* swarm/api, swarm/network, p2p/simulations: Prerequisites for handshake remove
* swarm, p2p: Add full sim node configs for protocoltester
* swarm/network: Make stream package pass tests
* swarm/network: Extract peer and addr types out of protocol file
* p2p, swarm: Make p2p/protocols tests pass + rename types.go
* swarm/network: Deactivate ExecAdapter test until binary ENR prep
* swarm/api: Remove comments
* swarm/network: Uncomment bootnode record load
6 years ago
Elad
df488975bd
cmd/swarm: dont connect to bootnodes in tests ( #19270 )
...
* cmd/swarm: dont connect to bootnodes in tests
* cmd/utils: check for empty string when parsing enode
6 years ago
Péter Szilágyi
91eec1251c
cmd, core, eth, trie: get rid of trie cache generations ( #19262 )
...
* cmd, core, eth, trie: get rid of trie cache generations
* core, trie: get rid of remainder of cache gen boilerplate
6 years ago
Péter Szilágyi
e270a753be
Merge pull request #19269 from holiman/alt_18957
...
bind: Static byte arrays should be right-padded
6 years ago
Péter Szilágyi
5ce192ce44
accounts/abi/bind: simulated test case for fixed bytes logs
6 years ago
Jeremy McNevin
7640c9c933
bind: Static byte arrays should be right-padded
...
Per https://solidity.readthedocs.io/en/v0.5.3/abi-spec.html :
"bytes<M>: enc(X) is the sequence of bytes in X padded with trailing zero-bytes to a length of 32 bytes"
6 years ago
gary rong
6c312a24b6
eth/downloader: fix ancestor searching for light syncing ( #19136 )
6 years ago
Shunsuke Watanabe
95b2ec7169
changed file name grahpql.go to graphql.go ( #19267 )
...
graphql: fix typo in file name
6 years ago
Corey Lin
768b4c2e6b
asm: remove unused parameter for function Lex ( #18058 )
6 years ago
Kurkó Mihály
1a29bf0ee2
dashboard, p2p, vendor: visualize peers ( #19247 )
...
* dashboard, p2p: visualize peers
* dashboard: change scale to green to red
6 years ago
Péter Szilágyi
1591b63306
Merge pull request #19261 from karalabe/less-blocks
...
core: use headers only where blocks are unnecessary
6 years ago
Péter Szilágyi
aa69ec64d0
Merge pull request #19259 from ligi/address_19246
...
README: Mention go 1.10 as minumum - context #19246
6 years ago
Péter Szilágyi
4f457859a2
core: use headers only where blocks are unnecessary
6 years ago
ligi
8a03bf2155
README: Mention go 1.10 as minumum - context #19246
6 years ago
Péter Szilágyi
b87a68407b
Merge pull request #19252 from karalabe/badgerdb
...
ethdb: tiny API tidy-up from the database rework pr
6 years ago
Péter Szilágyi
8111b9dda5
ethdb, trie: tiny API tidy-up from the database rework pr
6 years ago
Martin Holst Swende
7504dbd6eb
core/vm: 64 bit memory and gas calculations ( #19210 )
...
* core/vm: remove function call for stack validation from evm runloop
* core/vm: separate gas calc into static + dynamic
* core/vm: optimize push1
* core/vm: reuse pooled bigints for ADDRESS, ORIGIN and CALLER
* core/vm: use generic error message for jump/jumpi, to avoid string interpolation
* testdata: fix tests for new error message
* core/vm: use 64-bit memory calculations
* core/vm: fix error in memory calculation
* core/vm: address review concerns
* core/vm: avoid unnecessary use of big.Int:BitLen()
6 years ago
Sheldon
da5de012c3
state: fix emptyStatet to emptyRoot ( #19254 )
6 years ago
Guillaume Ballet
04a4a23c2d
graphql: make gballet codeowner for review notifications ( #19251 )
6 years ago
Anton Evangelatov
1a3e25e4c1
swarm: tracing improvements ( #19249 )
6 years ago
Janoš Guljaš
9a58a9b91a
swarm/storage/localstore: global batch write lock ( #19245 )
...
* swarm/storage/localstore: most basic database
* swarm/storage/localstore: fix typos and comments
* swarm/shed: add uint64 field Dec and DecInBatch methods
* swarm/storage/localstore: decrement size counter on ModeRemoval update
* swarm/storage/localstore: unexport modeAccess and modeRemoval
* swarm/storage/localstore: add WithRetrievalCompositeIndex
* swarm/storage/localstore: add TestModeSyncing
* swarm/storage/localstore: fix test name
* swarm/storage/localstore: add TestModeUpload
* swarm/storage/localstore: add TestModeRequest
* swarm/storage/localstore: add TestModeSynced
* swarm/storage/localstore: add TestModeAccess
* swarm/storage/localstore: add TestModeRemoval
* swarm/storage/localstore: add mock store option for chunk data
* swarm/storage/localstore: add TestDB_pullIndex
* swarm/storage/localstore: add TestDB_gcIndex
* swarm/storage/localstore: change how batches are written
* swarm/storage/localstore: add updateOnAccess function
* swarm/storage/localhost: add DB.gcSize
* swarm/storage/localstore: update comments
* swarm/storage/localstore: add BenchmarkNew
* swarm/storage/localstore: add retrieval tests benchmarks
* swarm/storage/localstore: accessors redesign
* swarm/storage/localstore: add semaphore for updateGC goroutine
* swarm/storage/localstore: implement basic garbage collection
* swarm/storage/localstore: optimize collectGarbage
* swarm/storage/localstore: add more garbage collection tests cases
* swarm/shed, swarm/storage/localstore: rename IndexItem to Item
* swarm/shed: add Index.CountFrom
* swarm/storage/localstore: persist gcSize
* swarm/storage/localstore: remove composite retrieval index
* swarm/shed: IterateWithPrefix and IterateWithPrefixFrom Index functions
* swarm/storage/localstore: writeGCSize function with leveldb batch
* swarm/storage/localstore: unexport modeSetRemove
* swarm/storage/localstore: update writeGCSizeWorker comment
* swarm/storage/localstore: add triggerGarbageCollection function
* swarm/storage/localstore: call writeGCSize on DB Close
* swarm/storage/localstore: additional comment in writeGCSizeWorker
* swarm/storage/localstore: add MetricsPrefix option
* swarm/storage/localstore: fix a typo
* swamr/shed: only one Index Iterate function
* swarm/storage/localstore: use shed Iterate function
* swarm/shed: pass a new byte slice copy to index decode functions
* swarm/storage/localstore: implement feed subscriptions
* swarm/storage/localstore: add more subscriptions tests
* swarm/storage/localsore: add parallel upload test
* swarm/storage/localstore: use storage.MaxPO in subscription tests
* swarm/storage/localstore: subscription of addresses instead chunks
* swarm/storage/localstore: lock item address in collectGarbage iterator
* swarm/storage/localstore: fix TestSubscribePull to include MaxPO
* swarm/storage/localstore: improve subscriptions
* swarm/storage/localstore: add TestDB_SubscribePull_sinceAndUntil test
* swarm/storage/localstore: adjust pull sync tests
* swarm/storage/localstore: remove writeGCSizeDelay and use literal
* swarm/storage/localstore: adjust subscriptions tests delays and comments
* swarm/storage/localstore: add godoc package overview
* swarm/storage/localstore: fix a typo
* swarm/storage/localstore: update package overview
* swarm/storage/localstore: remove repeated index change
* swarm/storage/localstore: rename ChunkInfo to ChunkDescriptor
* swarm/storage/localstore: add comment in collectGarbageWorker
* swarm/storage/localstore: replace atomics with mutexes for gcSize and tests
* swarm/storage/localstore: protect addrs map in pull subs tests
* swarm/storage/localstore: protect slices in push subs test
* swarm/storage/localstore: protect chunks in TestModePutUpload_parallel
* swarm/storage/localstore: fix a race in TestDB_updateGCSem defers
* swarm/storage/localstore: remove parallel flag from tests
* swarm/storage/localstore: fix a race in testDB_collectGarbageWorker
* swarm/storage/localstore: remove unused code
* swarm/storage/localstore: add more context to pull sub log messages
* swarm/storage/localstore: BenchmarkPutUpload and global lock option
* swarm/storage/localstore: pre-generate chunks in BenchmarkPutUpload
* swarm/storage/localstore: correct useGlobalLock in collectGarbage
* swarm/storage/localstore: fix typos and update comments
* swarm/storage/localstore: update writeGCSize comment
* swarm/storage/localstore: global batch write lock
* swarm/storage/localstore: remove global lock option
* swarm/storage/localstore: simplify DB.Close
6 years ago
Ferenc Szabo
f82185a4a1
p2p/protocols: fix data race in TestProtocolHook ( #19242 )
...
dummyHook's fields were concurrently written by nodes and read by
the test. The simplest solution is to protect all fields with a mutex.
Enable: TestMultiplePeersDropSelf, TestMultiplePeersDropOther as they
seemingly accidentally stayed disabled during a refactor/rewrite
since 1836366ac1
.
resolves ethersphere/go-ethereum#1286
6 years ago
Anton Evangelatov
bb55b0fb53
swarm/storage: add comparison towards leveldb.ErrNotFound ( #19243 )
...
* swarm/storage: add comparison towards leveldb.ErrNotFound
* swarm/storage: wrap leveldb ErrNotFound
6 years ago
Anton Evangelatov
2cfe0bed9f
swarm: fix relationship between spans in open tracing ( #19236 )
...
* swarm/network: propagate span with ctx
* swarm/network: try to stop stream.send.request spans on time
* swarm/storage: add chunk ref as a log to netstore.fetcher span
6 years ago
Anton Evangelatov
ceeb047e69
cmd/swarm/swarm-smoke: better logs when debug mode triggers ( #19237 )
...
* cmd/swarm/swarm-smoke: better logs for debug functionality;
* cmd/swarm/swarm-smoke: fixup
6 years ago
Janoš Guljaš
a6e5c6a2cc
swarm/storage/localstore: fix synchronization in TestDB_gcSize ( #19235 )
6 years ago
Elad
4687391213
cmd/swarm: do not ignore cache size=0 ( #19231 )
6 years ago
Martin Holst Swende
316b63daf0
clef: fix erroneous api version ( #19234 )
6 years ago