cmd/geth: add test to verify regexps in version check (#21962)

# Conflicts:
#	cmd/geth/version_check_test.go
#	design/logos/Illustrator/vcheck/vulnerabilities.json
This commit is contained in:
Martin Holst Swende 2020-12-09 13:59:24 +01:00 committed by Igor Mandrigin
parent cb5a995060
commit 13670846d2

View File

@ -2358,82 +2358,3 @@ Author: Martin Holst Swende <martin@swende.se>
Date: Wed Dec 9 13:59:24 2020 +0100
cmd/geth: add test to verify regexps in version check (#21962)
commit 40b6ccf383cba1471971767039a3071b8c57d28b
Author: Martin Holst Swende <martin@swende.se>
Date: Wed Dec 9 11:13:02 2020 +0100
core,les: headerchain import in batches (#21471)
* core: add test for headerchain inserts
* core, light: write headerchains in batches
* core: change to one callback per batch of inserted headers + review concerns
* core: error-check on batch write
* core: unexport writeHeaders
* core: remove callback parameter in InsertHeaderChain
The semantics of InsertHeaderChain are now much simpler: it is now an
all-or-nothing operation. The new WriteStatus return value allows
callers to check for the canonicality of the insertion. This change
simplifies use of HeaderChain in package les, where the callback was
previously used to post chain events.
* core: skip some hashing when writing headers
* core: less hashing in header validation
* core: fix headerchain flaw regarding blacklisted hashes
Co-authored-by: Felix Lange <fjl@twurst.com>
commit bd848aad7c4e1f7d1eaecd9ea7ee23785090768a
Author: Li, Cheng <lob4tt@gmail.com>
Date: Tue Dec 8 13:19:09 2020 -0500
common: improve printing of Hash and Address (#21834)
Both Hash and Address have a String method, which returns the value as
hex with 0x prefix. They also had a Format method which tried to print
the value using printf of []byte. The way Format worked was at odds with
String though, leading to a situation where fmt.Sprintf("%v", hash)
returned the decimal notation and hash.String() returned a hex string.
This commit makes it consistent again. Both types now support the %v,
%s, %q format verbs for 0x-prefixed hex output. %x, %X creates
unprefixed hex output. %d is also supported and returns the decimal
notation "[1 2 3...]".
For Address, the case of hex characters in %v, %s, %q output is
determined using the EIP-55 checksum. Using %x, %X with Address
disables checksumming.
Co-authored-by: Felix Lange <fjl@twurst.com>
commit ed0670cb17a96aafeb9eaaeb9765a42fb6bb5663
Author: Marius van der Wijden <m.vanderwijden@live.de>
Date: Tue Dec 8 14:44:56 2020 +0100
accounts/abi/bind: allow specifying signer on transactOpts (#21356)
This commit enables users to specify which signer they want to use while creating their transactOpts.
Previously all contract interactions used the homestead signer. Now a user can specify whether they
want to sign with homestead or EIP155 and specify the chainID which adds another layer of security.
Closes #16484
commit 6a4e730003d4adec28fa14baa78020c8c8b53887
Author: Steve Ruckdashel <steven.ruckdashel@optum.com>
Date: Tue Dec 8 03:47:56 2020 -0600
crypto/secp256k1: add workaround for go mod vendor (#21735)
Go won't vendor C files if there are no Go files present in the directory.
Workaround is to add dummy Go files.
Fixes: #20232