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

merge analysis #6

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .merge-analysis/changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Changes

- #21504 trie sync -> path based operation
- #21491 memory leak: trie
- #21366 change in download size: renaming, new initial value
- #21334 can't change time on non-empty blocks
- #21501 getTypeSize
- #21455 download queue stats per minute, was 10 sec
- #21517 usb wallet, divided derivation
- #21514 renaming stateDB, unused params (ctx -> _), comments

# UPGRADES

- #21448 go mod, update some deps
- #21432 goja

# CONF

- #21534 some net checkpoints changed

# FIXES

- #21497 fix null JSON-RPC
- #21501 fix getTypeSize
- #21503 fix personal.sign() -> console bridge -> goja -> getjeth -> unlockAccount->sign
58 changes: 58 additions & 0 deletions .merge-analysis/issues.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Linters

## go vet ./...

```
# gopkg.in/olebedev/go-duktape.v3
duk_logging.c: In function ‘duk__logger_prototype_log_shared’:
duk_logging.c:184:64: warning: ‘Z’ directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=]
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^
In file included from /usr/include/stdio.h:867,
from duk_logging.c:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 25 and 85 bytes into a destination of size 32
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# github.com/ethereum/go-ethereum/tests/fuzzers/trie
tests/fuzzers/trie/trie-fuzzer.go:72:23: method ReadByte() byte should have signature ReadByte() (byte, error)
```

## golangci-lint run

```
consensus/ethash/algorithm.go:154:12: unsafeptr: possible misuse of reflect.SliceHeader (govet)
header := *(*reflect.SliceHeader)(unsafe.Pointer(&dest))
^
consensus/ethash/algorithm.go:157:37: unsafeptr: possible misuse of reflect.SliceHeader (govet)
cache := *(*[]byte)(unsafe.Pointer(&header))
^
consensus/ethash/algorithm.go:286:12: unsafeptr: possible misuse of reflect.SliceHeader (govet)
header := *(*reflect.SliceHeader)(unsafe.Pointer(&dest))
```

## make test

```
# gopkg.in/olebedev/go-duktape.v3
duk_logging.c: In function ‘duk__logger_prototype_log_shared’:
duk_logging.c:184:64: warning: ‘Z’ directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=]
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^
In file included from /usr/include/stdio.h:867,
from duk_logging.c:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 25 and 85 bytes into a destination of size 32
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

```
--- FAIL: TestParseNode (0.00s)
urlv4_test.go:191: test "enode://1dd9d65c4552b5eb43d5ad55a2ee3f56c6cbc1c64a5c8d659f51fcd51bace24351232b8d7821617d2b29b54b81cdefb9b3e9c37d7fd5f63270bcc9e1a6f6a439@invalid.:3":
got error `lookup invalid.: Temporary failure in name resolution`, expected `no such host`
FAIL
FAIL github.com/ethereum/go-ethereum/p2p/enode 1.512s
```
3 changes: 3 additions & 0 deletions .merge-analysis/new.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# New

- #21387 #21338 TraceCall method
4 changes: 4 additions & 0 deletions .merge-analysis/removed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Removed

- #21527 #21487 whisper(shh)
- #21526 wnode
Loading