Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to geth release/1.9 #7

Open
wants to merge 989 commits into
base: loomchain
Choose a base branch
from
Open

Conversation

suhasagg
Copy link

Upgrade to geth release/1.9

janos and others added 30 commits April 25, 2019 21:33
…9490)

* swarm/network: fix data races in TestInitialPeersMsg test

* swarm/network: add Kademlia.Saturation method with lock

* swarm/network: add Hive.Peer method to safely retrieve a bzz peer

* swarm/network: remove duplicate comment

* p2p/testing: prevent goroutine leak in ProtocolTester

* swarm/network: fix data race in newBzzBaseTesterWithAddrs

* swarm/network: fix goroutone leaks in testInitialPeersMsg

* swarm/network: raise number of peer check attempts in testInitialPeersMsg

* swarm/network: use Hive.Peer in Hive.PeerInfo function

* swarm/network: reduce the scope of mutex lock in newBzzBaseTesterWithAddrs

* swarm/storage: disable TestCleanIndex with race detector
eth: enforce chain above CHT before accepting txs into the pool
This change restructures the internals of p2p/discover to make room for
the discv5 code which will soon be added to this package.

- packet type names now have a "V4" suffix.
- ListenUDP returns *UDPv4 instead of *Table. This technically breaks
  the API but the only caller in go-ethereum is package p2p, which uses
  a compatible interface and doesn't need changes.
- The internal transport interface is changed to make Table reusable for v5.
- The 'lookup' code moves from table to transport. This required
  updating the lookup unit test to use udpTest instead of a custom transport.
…m#19301)

* consensus,core,miner: avoid overhead of creating a new block

* consensus: nitpick dot

* consensus: fix some comment formatting nits
This change makes getBalance, getCode, getStorageAt, getProof,
call, getTransactionCount return an error if the block number in
the request doesn't exist. getHeaderByNumber still returns null
for missing headers.
* trie: fix merkle proof

* trie: use hasher instead of allocate keccack256 every time

* trie: add comments
* core: add tests for canonicality confusion

* core: delete stale future canon number mappings during reorg to shorter+heavier chain
…re (ethereum#19432)

* accounts: add note about backing up the keystore

* cmd, accounts: move the printout to accountCreate

* internal, signer: add info when new account is created via rpc

* cmd, internal, signer: split logs

* cmd/geth: make account new output a bit more verbose
eth/downloader: fix header delays during chain dedup
* core: import known blocks if they can be inserted as canonical blocks

* core: insert knowns blocks

* core: remove useless

* core: doesn't process head block in reorg function
…versions (ethereum#19522)

* add-date-to unstable

* fields-insteadof-split

* internal/build: support building with missing git

* docker: add git history back to support commit date in version

* internal/build: use PR commits hashes for PR builds
 cmd/faucet: embed git commit hash/date, disable Google+
cmd/swarm/swarm-smoke: improve smoke tests (ethereum#1337)

swarm/network: remove dead code (ethereum#1339)

swarm/network: remove FetchStore and SyncChunkStore in favor of NetStore (ethereum#1342)
* swarm/shed: remove metrics fields from DB struct

* swarm/schunk: add String methods to modes

* swarm/storage/localstore: add metrics and traces

* swarm/chunk: unknown modes without spaces in String methods

* swarm/storage/localstore: remove bin number from pull subscription metrics

* swarm/storage/localstore: add resetting time metrics and code improvements
swarm/network: measure how many chunks a node delivers (ethereum#1358)
* swarm/chunk: add tags backend to chunk package
karalabe and others added 26 commits July 18, 2019 16:36
internal/ethapi: fix debug.chaindbProperty
* Added missing error checks

Add error handling where we assign err a value, but don't check for it being nil.

* core/rawdb: tiny style nit
params: bump hard-coded CHTs to 22nd July values
all: update author list and licenses
…#19866)

* rpc: implement websockets with github.com/gorilla/websocket

This change makes package rpc use the github.com/gorilla/websocket
package for WebSockets instead of golang.org/x/net/websocket. The new
library is more robust and supports all WebSocket features including
continuation frames.

There are new tests for two issues with the previously-used library:

  - TestWebsocketClientPing checks handling of Ping frames.
  - TestWebsocketLargeCall checks whether the request size limit is
    applied correctly.

* rpc: raise HTTP/WebSocket request size limit to 5MB

* rpc: remove default origin for client connections

The client used to put the local hostname into the Origin header because
the server wanted an origin to accept the connection, but that's silly:
Origin is for browsers/websites. The nobody would whitelist a particular
hostname.

Now that the server doesn't need Origin anymore, don't bother setting
one for clients. Users who need an origin can use DialWebsocket to
create a client with arbitrary origin if needed.

* vendor: put golang.org/x/net/websocket back

* rpc: don't set Origin header for empty (default) origin

* rpc: add HTTP status code to handshake error

This makes it easier to debug failing connections.

* ethstats: use github.com/gorilla/websocket

* rpc: fix lint
…nts (ethereum#19869)

Fixed assigning values to variables we don't end up using.
* Add 5 minute grace period to faucet timeout

* cmd/faucet: make grace period dynamic based on original wait time
cmd/geth: skip 4GB memory bump for devnet
…7966)

* bump azure-storage-blob-go dependency to 0.3.0 release

* update azure-storage-blob-go module import path

* fix multiple return values on azblob.NewSharedKeyCredential

* vendor: bump Azure libs to latest from upstream
* eth, interal, les: add getHeaderBy* APIs

* internal: address the comment

* eth, internal, les: getHeader nits, missing TD, console callable
Iteration order over db.preimages was not deterministic, sorting the
batch contents when the batch is written wasn't enough to work around
this if preimages didn't fit into a single batch. So now Commit() will
pre-sort preimages to ensure their order is always deterministic, even
when split across multiple batches.
@ParthDesai
Copy link

ParthDesai commented Aug 6, 2019

@suhasagg why did we add those commits?

@suhasagg
Copy link
Author

suhasagg commented Aug 6, 2019

In newer geth release upgrade 1.9.
These files have undergone changes -
1)state_object.go
2)trie/database.go
Commit() Function is modified
3)core/vm/interface.go
RawDump() Signature is modified.
These files were changed as part of loom fork and changes introduced are not new, were added separately because of merge conflicts.
Only new change introduced is in core/vm/interface.go. RawDump() Signature is changed and accepts three boolean arguments now, and thus, have been changed.
This RawDump utility has been tested as part of evm db cli test to check if vm state is getting dumped correctly.

enlight pushed a commit that referenced this pull request Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.