This repository was archived by the owner on Aug 2, 2021. It is now read-only.
Conversation
* xeth, rpc: implement eth_getNatSpec for tx confirmations * rename silly docserver -> httpclient * eth/backend: httpclient now accessible via eth.Ethereum init-d via config.DocRoot * cmd: introduce separate CLI flag for DocRoot (defaults to homedir) * common/path: delete unused assetpath func, separate HomeDir func
XEth.gpo was being initialized as needed. WithState copies the XEth struct including the gpo field. If gpo was nil at the time of the copy and Call or Transact were invoked on it, an additional GPO listenLoop would be spawned. Move the lazy initialization to GasPriceOracle instead so the same GPO instance is shared among all created XEths. Fixes #1317 Might help with #1930
eth, xeth: fix GasPriceOracle goroutine leak
rpc api: eth_getNatSpec
makefile: fix evm ld flags, pass them to xgo too
cmd/utils, crypto: add --lightkdf flag for lighter KDF
check argument type before parsing params recover from panic in ipc channel
eth: don't block sync goroutines that short circuit
Argument parsing can lead to panic in rpc channel
There are a bunch of changes required to make this work: - in miner: allow unregistering agents, fix RemoteAgent.Stop - in eth/filters: make FilterSystem.Stop not crash - in rpc/comms: move listen loop to platform-independent code Fixes #1930. I ran the shell loop there for a few minutes and didn't see any changes in the memory profile.
Fix for xeth OOM issue
Changed field `input` to new `inputs`. Addad Hash and Address as input types. Added bytes[N] and N validation
Godeps: upgrade github.com/huin/goupnp
eth: fix error casting regression during database open
event/filter: fix data race in the test
rpc/api: fix #1972 api regression (nil eth panic) in attach
* chunker: add serialisation to Key * config: add syncParams to config params * dbStore: add public accessor to accessCnt * dbStore: dbSyncIterator slightly modified, dbSyncParams abstracted out * netStore: fix incorrect address when handling self lookup from remote peeer * netStore: rename propagateResponse -> deliver and store-> propagate, remove old deliver * netStore: now uses the syncer for store requests * protocol: add deliveryRequestMsgd (0x05) and unsyncedKeysMsg (0x06), add sync state to statusMsgData and handling * protocol/kademlia: add meta data storage support to kaddb, persists and initialises advertised sync state * protocol: remove request db and storage loop handling (now syncer) * syncer/syndb: new files implementing the smart syncing and batch requests
Conflicts: p2p/dial.go
* invalid hash gives different error * check for empty counter range in dbsync iterator, error response * remove caps from bzz hanshake staatusmsgdata * remove metadata (unused) * all bzzprotocol writes return error and drop peer on error * 1 minute chequebook confirmation interval * register httpclient bzz scheme within swarm.go * fix sync() func * improve logs, counts etc Merge remote-tracking branch 'upstream/develop' into bzzsyncer Conflicts: cmd/utils/flags.go rpc/api/admin.go rpc/api/utils.go
* hive: peer wrapper to implement kademlia Node interface moved from protocol * hive: adapt to new Kademlia API * config: include kademlia purge-related params * protocol: syncRequest new message added need to send after handshake, sets up syncer * syncer: fix sync() tasks and sync state transitions * chunker: fix Hex on Key
* deliver func now takes a channel argument to wait on in order to quit when (most commonly) routine is blocked on delivery * addKey, addDelivery, doDelivery all quit if extra channel closed * check cache contention now moved inside select case and switches to db already at len == cap - 1 * launch the db iterator after len(cache) items from cache are delivered * do extra round of cleanup from db while blocking read from cache so that items read after iterator quit and before signal sent do not get stuck in the db * Close the db when syncdb stops * save is simplified, counter incremented AFTER put (now starts with 0) * iterator start key is now precalculated as start field * rename: cache -> buffer , caching -> usedb (word cache is misleading) * db put and delete now done inn batches applied only before each new iteration cycle * add test for correct order of db retrieval and deletion on delivery
Resolve bzz:// through http protocol handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a major overhaul of all storage/syncronisation logic.
Code changes:
accessCntdataIdx oops