good morning!!!!

Skip to content
Snippets Groups Projects
  1. May 20, 2020
    • Péter Szilágyi's avatar
    • Péter Szilágyi's avatar
      99b990b0
    • rene's avatar
      cmd/utils: renames flags related to http-rpc server (#20935) · 2b0cf4d1
      rene authored
      
      * rpc flags related to starting http server renamed to http
      
      * old rpc flags aliased and still functional
      
      * pprof flags fixed
      
      * renames gpo related flags
      
      * linted
      
      * renamed rpc flags for consistency and clarity
      
      * added warn logs
      
      * added more warn logs for all deprecated flags for consistency
      
      * moves legacy flags to separate file, hides older flags under show-deprecated-flags command
      
      * legacy prefix and moved some more legacy flags to legacy file
      
      * fixed circular import
      
      * added docs
      
      * fixed imports lint error
      
      * added notes about when flags were deprecated
      
      * cmd/utils: group flags by deprecation date + reorder by date,
      
      * modified deprecated comments for consistency, added warn log for --rpc
      
      * making sure deprecated flags are still functional
      
      * show-deprecated-flags command cleaned up
      
      * fixed lint errors
      
      * corrected merge conflict
      
      * IsSet --> GlobalIsSet
      
      * uncategorized flags, if not deprecated, displayed under misc
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      # Conflicts:
      #	cmd/geth/main.go
      #	cmd/geth/usage.go
      #	internal/debug/flags.go
      2b0cf4d1
    • Péter Szilágyi's avatar
    • Igor Mandrigin's avatar
      accounts/abi: move U256Bytes to common/math (#21020) · 46f9df78
      Igor Mandrigin authored
      # Conflicts:
      #	accounts/abi/abi_test.go
      #	accounts/abi/numbers.go
      #	signer/core/signed_data.go
      46f9df78
    • Marius van der Wijden's avatar
      accounts/abi: removed Kind from Type struct (#21009) · 7441eac2
      Marius van der Wijden authored
      * accounts/abi: removed Kind from Type struct
      
      * accounts/abi: removed unused code
      7441eac2
    • Péter Szilágyi's avatar
      tests: cleanup snapshot generator goroutine leak · f189e7e0
      Péter Szilágyi authored
      # Conflicts:
      #	cmd/evm/staterunner.go
      #	eth/tracers/tracers_test.go
      #	tests/state_test.go
      #	tests/state_test_util.go
      #	tests/vm_test_util.go
      f189e7e0
    • Martin Holst Swende's avatar
      accounts/external: convert signature v value to 0/1 (#20997) · b3a6c8ea
      Martin Holst Swende authored
      This fixes an issue with clef, which already transforms the signature
      to use the legacy 27/28 encoding.
      
      Fixes #20994
      b3a6c8ea
    • Boqin Qin's avatar
      les: remove invalid use of t.Fatal in TestHandshake (#21012) · 4d10d64a
      Boqin Qin authored
      # Conflicts:
      #	les/peer_test.go
      4d10d64a
    • Felix Lange's avatar
      go.sum: run go mod tidy (#21014) · 0ccaadf5
      Felix Lange authored
      # Conflicts:
      #	go.sum
      0ccaadf5
    • Martin Holst Swende's avatar
    • gary rong's avatar
      core/state/snapshot: fix trie generator reporter (#21004) · 434245bb
      gary rong authored
      # Conflicts:
      #	core/state/snapshot/conversion.go
      #	go.sum
      434245bb
    • Péter Szilágyi's avatar
      core/state/snapshot: fix journal nil deserialziation · 5f3bcbe1
      Péter Szilágyi authored
      # Conflicts:
      #	core/state/snapshot/journal.go
      5f3bcbe1
    • gary rong's avatar
      core/state/snapshot: implement storage iterator (#20971) · c646d6ab
      gary rong authored
      * core/state/snapshot: implement storage iterator
      
      * core/state/snapshot, tests: implement helper function
      
      * core/state/snapshot: fix storage issue
      
      If an account is deleted in the tx_1 but recreated in the tx_2,
      the it can happen that in this diff layer, both destructedSet
      and storageData records this account. In this case, the storage
      iterator should be able to iterate the slots belong to new account
      but disable further iteration in deeper layers(belong to old account)
      
      * core/state/snapshot: address peter and martin's comment
      
      * core/state: address comments
      
      * core/state/snapshot: fix test
      # Conflicts:
      #	core/state/snapshot/account.go
      #	core/state/snapshot/conversion.go
      #	core/state/snapshot/difflayer.go
      #	core/state/snapshot/difflayer_test.go
      #	core/state/snapshot/generate.go
      #	core/state/snapshot/iterator.go
      #	core/state/snapshot/iterator_binary.go
      #	core/state/snapshot/iterator_fast.go
      #	core/state/snapshot/iterator_test.go
      #	core/state/snapshot/snapshot.go
      #	core/state/snapshot/snapshot_test.go
      #	core/state/statedb.go
      #	tests/block_test_util.go
      c646d6ab
    • ucwong's avatar
      go.mod : goupnp v1.0.0 upgrade (#20996) · 177eba98
      ucwong authored
      # Conflicts:
      #	go.mod
      #	go.sum
      177eba98
    • Martin Holst Swende's avatar
      signer, log: properly escape character sequences (#20987) · c39d2141
      Martin Holst Swende authored
      * signer: properly handle terminal escape characters
      
      * log: use strconv conversion instead of custom escape function
      
      * log: remove relection tests for nil
      c39d2141
    • ucwong's avatar
      event, whisper/whisperv6: use defer where possible (#20940) · 3bf99802
      ucwong authored
      # Conflicts:
      #	whisper/whisperv6/whisper.go
      3bf99802
    • Steven E. Harris's avatar
    • ucwong's avatar
      go.mod: upgrade to golang-lru v0.5.4 (#20992) · 4753d95f
      ucwong authored
      golang-lru is now a go module, and the upgrade corrects a couple
      of minor issues. In particular, the library could crash if you inserted
      nil into an LRU cache.
      # Conflicts:
      #	go.mod
      #	go.sum
      4753d95f
    • Felix Lange's avatar
      core: improve TestLogRebirth (#20961) · d5469b3b
      Felix Lange authored
      
      This is a resubmit of #20668 which rewrites the problematic test
      without any additional goroutines. It also documents the test better.
      
      The purpose of this test is checking whether log events are sent
      correctly when importing blocks. The test was written at a time when
      blockchain events were delivered asynchronously, making the check hard
      to pull off. Now that core.BlockChain delivers events synchronously
      during the call to InsertChain, the test can be simplified.
      
      Co-authored-by: default avatarBurtonQin <bobbqqin@gmail.com>
      # Conflicts:
      #	core/blockchain_test.go
      d5469b3b
    • Julian Y's avatar
      rpc: make ExampleClientSubscription work with the geth API (#19483) · 3406f9d7
      Julian Y authored
      
      This corrects the call to eth_getBlockByNumber, which previously
      returned this error:
      
        can't get latest block: missing value for required argument 1
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      # Conflicts:
      #	rpc/client_example_test.go
      3406f9d7
    • Boqin Qin's avatar
      core: add check in AddChildIndexer to avoid double lock (#20982) · 9258f477
      Boqin Qin authored
      
      This fixes a theoretical double lock condition which could occur in
      
          indexer.AddChildIndexer(indexer)
      
      Nobody would ever do that though.
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      9258f477
    • Marius van der Wijden's avatar
      accounts/abi: added abi test cases, minor bug fixes (#20903) · 3c2b9248
      Marius van der Wijden authored
      * accounts/abi: added documentation
      
      * accounts/abi: reduced usage of arguments.LengthNonIndexed
      
      * accounts/abi: simplified reflection logic
      
      * accounts/abi: moved testjson data into global declaration
      
      * accounts/abi: removed duplicate test cases
      
      * accounts/abi: reworked abi tests
      
      * accounts/abi: added more tests for abi packing
      
      * accounts/abi/bind: refactored base tests
      
      * accounts/abi: run pack tests as subtests
      
      * accounts/abi: removed duplicate tests
      
      * accounts/abi: removed unnused arguments.LengthNonIndexed
      
      Due to refactors to the code, we do not need the arguments.LengthNonIndexed function anymore.
      You can still get the length by calling len(arguments.NonIndexed())
      
      * accounts/abi: added type test
      
      * accounts/abi: modified unpack test to pack test
      
      * accounts/abi: length check on arrayTy
      
      * accounts/abi: test invalid abi
      
      * accounts/abi: fixed rebase error
      
      * accounts/abi: fixed rebase errors
      
      * accounts/abi: removed unused definition
      
      * accounts/abi: merged packing/unpacking tests
      
      * accounts/abi: fixed [][][32]bytes encoding
      
      * accounts/abi: added tuple test cases
      
      * accounts/abi: renamed getMockLog -> newMockLog
      
      * accounts/abi: removed duplicate test
      
      * accounts/abi: bools -> booleans
      # Conflicts:
      #	accounts/abi/unpack_test.go
      3c2b9248
    • Steven E. Harris's avatar
      node: shut down all node-related HTTP servers gracefully (#20956) · 88564549
      Steven E. Harris authored
      Rather than just closing the underlying network listener to stop our
      HTTP servers, use the graceful shutdown procedure, waiting for any
      in-process requests to finish.
      88564549
    • Péter Szilágyi's avatar
    • tgyKomgo's avatar
      p2p/enode: update code comment (#20972) · 82171fe1
      tgyKomgo authored
      It is possible to specify enode URLs using domain name since
      commit b90cdbaa, but the code comment still said that only
      IP addresses are allowed.
      
      Co-authored-by: admin@komgo.io <KomgoRocks2018!>
      82171fe1
    • gary rong's avatar
      core/state/snapshot: fix binary iterator (#20970) · 91061d04
      gary rong authored
      # Conflicts:
      #	core/state/snapshot/iterator_binary.go
      #	core/state/snapshot/iterator_test.go
      91061d04
    • gary rong's avatar
      trie: initial implementation for range proof (#20908) · 126d94fa
      gary rong authored
      * trie: initial implementation for range proof
      
      * trie: add benchmark
      
      * trie: fix lint
      
      * trie: fix minor issue
      
      * trie: unset the edge valuenode as well
      
      * trie: unset the edge valuenode as nilValuenode
      # Conflicts:
      #	les/odr_requests.go
      #	trie/proof.go
      #	trie/proof_test.go
      126d94fa
    • Marius van der Wijden's avatar
      accounts/keystore: fix double import race (#20915) · a7e120dc
      Marius van der Wijden authored
      * accounts/keystore: fix race in Import/ImportECDSA
      
      * accounts/keystore: added import/export tests
      
      * cmd/geth: improved TestAccountImport test
      
      * accounts/keystore: added import/export tests
      
      * accounts/keystore: fixed naming
      
      * accounts/keystore: fixed typo
      
      * accounts/keystore: use mutex instead of rwmutex
      
      * accounts: use errors instead of fmt
      # Conflicts:
      #	accounts/keystore/keystore_test.go
      #	cmd/geth/accountcmd_test.go
      a7e120dc
    • icodezjb's avatar
      core: mirror full node reorg logic in light client too (#20931) · 83857d4f
      icodezjb authored
      
      * core: fix the condition of reorg
      
      * core: fix nitpick to only retrieve head once
      
      * core: don't reorg if received chain is longer at same diff
      
      Co-authored-by: default avatarPéter Szilágyi <peterke@gmail.com>
      # Conflicts:
      #	core/headerchain.go
      83857d4f
    • gary rong's avatar
      all: seperate consensus error and evm internal error (#20830) · ad9e4241
      gary rong authored
      * all: seperate consensus error and evm internal error
      
      There are actually two types of error will be returned when
      a tranaction/message call is executed: (a) consensus error
      (b) evm internal error. The former should be converted to
      a consensus issue, e.g. The sender doesn't enough asset to
      purchase the gas it specifies. The latter is allowed since
      evm itself is a blackbox and internal error is allowed to happen.
      
      This PR emphasizes the difference by introducing a executionResult
      structure. The evm error is embedded inside. So if any error
      returned, it indicates consensus issue happens.
      
      And also this PR improve the `EstimateGas` API to return the concrete
      revert reason if the transaction always fails
      
      * all: polish
      
      * accounts/abi/bind/backends: add tests
      
      * accounts/abi/bind/backends, internal: cleanup error message
      
      * all: address comments
      
      * core: fix lint
      
      * accounts, core, eth, internal: address comments
      
      * accounts, internal: resolve revert reason if possible
      
      * accounts, internal: address comments
      # Conflicts:
      #	accounts/abi/abi.go
      #	accounts/abi/bind/backends/simulated.go
      #	cmd/geth/retesteth.go
      #	core/state/snapshot/difflayer_test.go
      #	core/state/snapshot/disklayer_test.go
      #	core/state/snapshot/iterator_test.go
      #	core/state_processor.go
      #	core/state_transition.go
      #	core/vm/evm.go
      #	core/vm/instructions.go
      #	core/vm/jump_table.go
      #	eth/api_tracer.go
      #	internal/ethapi/api.go
      #	les/odr_test.go
      #	light/odr_test.go
      #	tests/state_test_util.go
      ad9e4241
    • ucwong's avatar
      go.mod : update fastcache to 1.5.7 (#20936) · b781181b
      ucwong authored
      # Conflicts:
      #	go.mod
      #	go.sum
      b781181b
    • ucwong's avatar
      6f75f79e
    • Martin Holst Swende's avatar
      core/state/snapshot: make difflayer account iterator seek operation inclusive · e0f33c2a
      Martin Holst Swende authored
      # Conflicts:
      #	core/state/snapshot/iterator.go
      #	core/state/snapshot/iterator_test.go
      e0f33c2a
    • Boqin Qin's avatar
      snapshot: add Unlock before return (#20948) · 94abaf95
      Boqin Qin authored
      * Forget Unlock in snapshot
      
      * Remove Unlock before panic
      # Conflicts:
      #	core/state/snapshot/iterator.go
      94abaf95
    • rene's avatar
      cmd, core: remove override muir glacier and override istanbul (#20942) · aa2f2b74
      rene authored
      # Conflicts:
      #	core/genesis.go
      #	eth/backend.go
      #	les/client.go
      aa2f2b74
    • Marius van der Wijden's avatar
      accounts/abi: Prevent recalculation of internal fields (#20895) · b3ce1593
      Marius van der Wijden authored
      * accounts/abi: prevent recalculation of ID, Sig and String
      
      * accounts/abi: fixed unpacking of no values
      
      * accounts/abi: multiple fixes to arguments
      
      * accounts/abi: refactored methodName and eventName
      
      This commit moves the complicated logic of how we assign method names
      and event names if they already exist into their own functions for
      better readability.
      
      * accounts/abi: prevent recalculation of internal
      
      In this commit, I changed the way we calculate the string
      representations, sig representations and the id's of methods. Before
      that these fields would be recalculated everytime someone called .Sig()
      .String() or .ID() on a method or an event.
      
      Additionally this commit fixes issue #20856 as we assign names to inputs
      with no name (input with name "" becomes "arg0")
      
      * accounts/abi: added unnamed event params test
      
      * accounts/abi: fixed rebasing errors in method sig
      
      * accounts/abi: fixed rebasing errors in method sig
      
      * accounts/abi: addressed comments
      
      * accounts/abi: added FunctionType enumeration
      
      * accounts/abi/bind: added test for unnamed arguments
      
      * accounts/abi: improved readability in NewMethod, nitpicks
      
      * accounts/abi: method/eventName -> overloadedMethodName
      # Conflicts:
      #	accounts/abi/abi.go
      #	accounts/abi/abi_test.go
      b3ce1593
    • Boqin Qin's avatar
      b70eaf8a
    • Nishant Das's avatar
      p2p/discover: add helper methods to UDPv5 (#20918) · 93840b6c
      Nishant Das authored
      This adds two new methods to UDPv5, AllNodes and LocalNode.
      
      AllNodes returns all the nodes stored in the local table; this is
      useful for the purposes of metrics collection and also debugging any
      potential issues with other discovery v5 implementations.
      
      LocalNode returns the local node object. The reason for exposing this
      is so that users can modify and set/delete new key-value entries in
      the local record.
      93840b6c
    • Péter Szilágyi's avatar
      params: begin v1.9.14 release cycle · 62e8bc4d
      Péter Szilágyi authored
      62e8bc4d
Loading