erigon-pulse/common
Li, Cheng 000991b09d 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>
2021-03-08 14:18:13 +01:00
..
bitutil tests/fuzzers: improve the fuzzers (#21829) 2021-03-08 11:44:11 +01:00
changeset blocks exec unwind - to support graceful shutdown (#1494) 2021-02-23 17:14:32 +00:00
compiler common/compiler: fix lint issue (#19967) 2019-08-15 12:12:56 +02:00
dbutils Revert "Extract validating interface (#1120)" (#1543) 2021-03-05 20:34:23 +00:00
debug mdbx: switch CI to mdbx, fix SeekExact, print slow/big transactions info (#1475) 2021-02-09 09:31:37 +07:00
etl New Trie db layout - store trie structure info and multiple hashes per record (#1500) 2021-02-21 18:41:59 +00:00
fdlimit Fixes 'too many other files opened' problem with Generate Storage History stage on Mac (#1217) 2020-10-10 22:15:07 +01:00
hexutil all: remove redundant conversions and import names (#21903) 2021-03-08 12:43:02 +01:00
math accounts, signer: implement gnosis safe support (#21593) 2020-10-26 17:16:00 +01:00
mclock all: fix goroutine leaks in unit tests by adding 1-elem channel buffer (#20666) 2020-02-27 17:21:20 +03:00
prque les, les/lespay/server: refactor client pool (#21236) 2020-10-06 14:12:09 +02:00
u256 No-need to right-pad in makePush (#638) 2020-06-08 16:55:19 +01:00
big.go Prevent slice make and copy in Pushes (#625) 2020-06-05 19:46:34 +03:00
bytes_test.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
bytes.go State snapshot sync (#1417) 2021-01-02 19:28:37 +00:00
chan.go Command for long and heavy integration tests (#712) 2020-07-05 07:18:21 +01:00
context.go Refactor mining. Remove a few mining goroutines (#338) 2020-02-03 15:02:26 +03:00
debug.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
format.go common, core, light: add block age into info logs 2018-09-20 12:56:35 +03:00
hasher.go Revert "Extract validating interface (#1120)" (#1543) 2021-03-05 20:34:23 +00:00
path.go common: improve documentation comments (#16701) 2018-05-29 12:42:21 +02:00
size_test.go cmd/utils, eth: relinquish GC cache to read cache in archive mode 2019-02-07 14:36:25 +02:00
size.go [Breaking change in db!] UI for Buckets stat (#607) 2020-06-04 16:35:42 +07:00
test_utils.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
tuples_test.go Replace red black trees (#184) 2019-11-21 18:38:00 +00:00
tuples.go Replace red black trees (#184) 2019-11-21 18:38:00 +00:00
types_test.go common: improve printing of Hash and Address (#21834) 2021-03-08 14:18:13 +01:00
types.go common: improve printing of Hash and Address (#21834) 2021-03-08 14:18:13 +01:00