core: use errors.Is for consensus errors check (#21095)

# Conflicts:
#	core/blockchain.go
This commit is contained in:
Robert Zaremba 2020-08-05 09:52:54 +02:00 committed by Igor Mandrigin
parent 077ae224bd
commit dbbfbf0ec2

View File

@ -196,145 +196,3 @@ Date: Wed Aug 5 11:22:29 2020 +0200
* remove non-latest eth light tests
commit 5a88a7cf5b7786da0504fdde476b6ceb20a2eb31
Author: Robert Zaremba <robert@zaremba.ch>
Date: Wed Aug 5 09:52:54 2020 +0200
core: use errors.Is for consensus errors check (#21095)
commit 1d25039ff5cef0741f5c3aafad1c3cdcbf45db6b
Author: Felix Lange <fjl@twurst.com>
Date: Wed Aug 5 09:51:37 2020 +0200
p2p/nat: limit UPNP request concurrency (#21390)
This adds a lock around requests because some routers can't handle
concurrent requests. Requests are also rate-limited.
The Map function request a new mapping exactly when the map timeout
occurs instead of 5 minutes earlier. This should prevent duplicate mappings.
commit 8ead45c20b31377320c5320964da8cddcb5f59a4
Author: Martin Holst Swende <martin@swende.se>
Date: Tue Aug 4 15:40:23 2020 +0200
core/vm: avoid map lookups for accessing jumpdest analysis
commit 82a9e11058623e73ace50445b41a06ccf8fd888f
Author: Martin Holst Swende <martin@swende.se>
Date: Tue Aug 4 12:21:51 2020 +0200
ethstats: avoid concurrent write on websocket (#21404)
Fixes #21403
commit b35e4fce9946c2e3d1e1479d0d41b0b7e04391e5
Author: Hao Duan <duanhao0814@gmail.com>
Date: Tue Aug 4 17:51:53 2020 +0800
core: avoid modification of accountSet cache in tx_pool (#21159)
* core: avoid modification of accountSet cache in tx_pool
when runReorg, we may copy the dirtyAccounts' accountSet cache to promoteAddrs
in which accounts will be promoted, however, if we have reset request at the
same time, we may reuse promoteAddrs and modify the cache content which is
against the original intention of accountSet cache. So, we need to make a new
slice here to avoid modify accountSet cache.
* core: fix flatten condition + comment
Co-authored-by: Felix Lange <fjl@twurst.com>
commit e24e05dd0140e1827f33fedca625e3f5a1e46fed
Author: Adam Schmideg <adamschmideg@users.noreply.github.com>
Date: Tue Aug 4 11:33:07 2020 +0200
cmd/devp2p: print enode:// URL in enrdump (#21270)
Co-authored-by: Felix Lange <fjl@twurst.com>
commit 90dedea40fc174c914ef038b8b480c2c0ff031b9
Author: Natsu Kagami <natsukagami@gmail.com>
Date: Mon Aug 3 19:53:12 2020 +0000
signer: EIP 712, parse `bytes` and `bytesX` as hex strings + correct padding (#21307)
* Handle hex strings for bytesX types
* Add tests for parseBytes
* Improve tests
* Return nil bytes if error is non-nil
* Right-pad instead of left-pad bytes
* More tests
commit c0c01612e95dd20f125154646b38283ab780f357
Author: rene <41963722+renaynay@users.noreply.github.com>
Date: Mon Aug 3 19:40:46 2020 +0200
node: refactor package node (#21105)
This PR significantly changes the APIs for instantiating Ethereum nodes in
a Go program. The new APIs are not backwards-compatible, but we feel that
this is made up for by the much simpler way of registering services on
node.Node. You can find more information and rationale in the design
document: https://gist.github.com/renaynay/5bec2de19fde66f4d04c535fd24f0775.
There is also a new feature in Node's Go API: it is now possible to
register arbitrary handlers on the user-facing HTTP server. In geth, this
facility is used to enable GraphQL.
There is a single minor change relevant for geth users in this PR: The
GraphQL API is no longer available separately from the JSON-RPC HTTP
server. If you want GraphQL, you need to enable it using the
./geth --http --graphql flag combination.
The --graphql.port and --graphql.addr flags are no longer available.
commit b2b14e6ce34734542cff21b504a4579de2ff79ad
Author: Natsu Kagami <natsukagami@gmail.com>
Date: Mon Aug 3 13:30:32 2020 +0000
signer/core: EIP-712 encoded data should not reject a Domain without a ChainId (#21306)
* Do not check for a non-nil ChainId
* Add encoding test
commit 290d6bd90304e2c8f64adbf3c982818f1b935093
Author: rene <41963722+renaynay@users.noreply.github.com>
Date: Mon Aug 3 14:08:42 2020 +0200
rpc: add SetHeader method to Client (#21392)
Resolves #20163
Co-authored-by: Felix Lange <fjl@twurst.com>
commit 9c2ac6fbd5a12b3f30feb78f3d358dca31603a86
Author: Felix Lange <fjl@twurst.com>
Date: Fri Jul 31 16:20:31 2020 +0200
rpc: remove silly use of ReadVarint in subscription ID generator (#21391)
Found by @protolambda
commit a00dc5095b53c58136b0a9a1f19a7f0c98872cf4
Merge: ff9089463 298a19bbc
Author: Péter Szilágyi <peterke@gmail.com>
Date: Thu Jul 30 10:23:36 2020 +0300
Merge pull request #21358 from hendrikhofstadt/fix/tx-sort-time
core: sort txs at the same gas price by received time
commit ff90894636babb37deed5ff444cef3af66d5894e
Author: meowsbits <b5c6@protonmail.com>
Date: Wed Jul 29 14:53:59 2020 -0500
core/rawdb: convert some comments to godoc convention (#21384)