Péter Szilágyi
c1adde387e
params: begin v1.9.22 release cycle
...
# Conflicts:
# params/version.go
2020-10-06 14:12:09 +02:00
Igor Mandrigin
ab797a9909
add to-merge
2020-10-06 14:12:09 +02:00
Igor Mandrigin
0dae3ade0d
post-rebase fixups
2020-05-20 15:26:22 +03:00
gary rong
2b9820a167
les: drop the message if the entire p2p connection is stuck ( #21033 )
...
* les: drop the message if the entire p2p connection is stuck
* les: fix lint
# Conflicts:
# les/peer.go
# les/server_handler.go
2020-05-20 15:26:22 +03:00
AusIV
2060287625
core/rawdb: stop freezer process as part of freezer.Close() ( #21010 )
...
* core/rawdb: Stop freezer process as part of freezer.Close()
When you call db.Close(), it was closing the leveldb database first,
then closing the freezer, but never stopping the freezer process.
This could cause the freezer to attempt to write to leveldb after
leveldb had been closed, leading to a crash with a non-zero exit code.
This change adds a quit channel to the freezer, and freezer.Close()
will not return until the freezer process has stopped.
Additionally, when you call freezerdb.Close(), it will close the
AncientStore before closing leveldb, to ensure that the freezer goroutine
will be stopped before leveldb is closed.
* core/rawdb: Fix formatting for golint
* core/rawdb: Use backoff flag to avoid repeating select
* core/rawdb: Include accidentally omitted backoff
# Conflicts:
# core/rawdb/database.go
# core/rawdb/freezer.go
2020-05-20 15:26:22 +03:00
Péter Szilágyi
27063780f4
core/state: make GetCodeSize mirror GetCode implementation wise
...
# Conflicts:
# core/state/state_object.go
# core/state/statedb.go
2020-05-20 15:26:22 +03:00
Martin Holst Swende
4b33806719
core/state: avoid statedb.dbErr due to emptyCode ( #21051 )
...
* core/state: more verbose stateb errors
* core/state: fix flaw
* core/state: fixed lint
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
# Conflicts:
# core/state/statedb.go
2020-05-20 15:26:22 +03:00
Martin Holst Swende
dc5eee4860
core/state: abort commit if read errors have occurred ( #21039 )
...
This finally adds the error check that the documentation of StateDB.dbErr
promises to do. dbErr was added in 9e5f03b6c
(June 2017), and the check was
already missing in that commit. We somehow survived without it for three years.
# Conflicts:
# core/state/statedb.go
# core/state/statedb_test.go
2020-05-20 15:26:22 +03:00
Martin Holst Swende
ab83455837
core/state: include zero-address in state dump if present ( #21038 )
...
* Include 0x0000 address into the dump if it is present
* core/state: go fmt
Co-authored-by: Alexey Akhunov <akhounov@gmail.com>
# Conflicts:
# core/state/dump.go
2020-05-20 15:26:22 +03:00
gary rong
cd6eacfd2c
core/state/snapshot: fix typo ( #21037 )
...
# Conflicts:
# core/state/snapshot/difflayer.go
2020-05-20 15:26:22 +03:00
Péter Szilágyi
f30a6fd32a
core/state/snapshot: don't create storage list for non-existing accounts
...
# Conflicts:
# core/state/snapshot/difflayer.go
2020-05-20 15:26:22 +03:00
gary rong
f0ffa8a8b4
trie: fix TestBadRangeProof unit test ( #21034 )
...
# Conflicts:
# trie/proof_test.go
2020-05-20 15:26:22 +03:00
Péter Szilágyi
3bea6f911c
core/state/snapshot: release iterator after verification
2020-05-20 15:26:22 +03:00
Boqin Qin
4d10d64a2f
les: remove invalid use of t.Fatal in TestHandshake ( #21012 )
...
# Conflicts:
# les/peer_test.go
2020-05-20 15:26:22 +03:00
gary rong
434245bb01
core/state/snapshot: fix trie generator reporter ( #21004 )
...
# Conflicts:
# core/state/snapshot/conversion.go
# go.sum
2020-05-20 15:26:22 +03:00
Péter Szilágyi
5f3bcbe1c3
core/state/snapshot: fix journal nil deserialziation
...
# Conflicts:
# core/state/snapshot/journal.go
2020-05-20 15:26:22 +03:00
gary rong
91061d043e
core/state/snapshot: fix binary iterator ( #20970 )
...
# Conflicts:
# core/state/snapshot/iterator_binary.go
# core/state/snapshot/iterator_test.go
2020-05-20 15:26:22 +03:00
gary rong
126d94fa7c
trie: initial implementation for range proof ( #20908 )
...
* 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
2020-05-20 15:26:22 +03:00
Martin Holst Swende
e0f33c2abb
core/state/snapshot: make difflayer account iterator seek operation inclusive
...
# Conflicts:
# core/state/snapshot/iterator.go
# core/state/snapshot/iterator_test.go
2020-05-20 15:26:22 +03:00
Boqin Qin
94abaf9542
snapshot: add Unlock before return ( #20948 )
...
* Forget Unlock in snapshot
* Remove Unlock before panic
# Conflicts:
# core/state/snapshot/iterator.go
2020-05-20 15:26:22 +03:00
Igor Mandrigin
ef737c457a
add to-merge
2020-05-20 15:26:22 +03:00
Igor Mandrigin
8dfcb25e84
post-rebase: remove file
2020-03-16 16:40:19 +03:00
gary rong
4817b0a327
les: separate peer into clientPeer and serverPeer ( #19991 )
...
* les: separate peer into clientPeer and serverPeer
* les: address comments
2020-03-16 16:40:19 +03:00
Igor Mandrigin
d9f70be2b3
add to-merge.txt
2020-03-16 16:40:19 +03:00
Igor Mandrigin
785d0eafd8
post-rebase fixups v1.9.10
2020-01-30 13:36:30 +02:00
gary rong
05452032db
core: fix chain indexer unit test ( #20506 )
2020-01-30 13:36:30 +02:00
wangxiang
6e28a428a8
whisper/whisperv6: fix peer time.Ticker leak ( #20520 )
2020-01-30 13:36:30 +02:00
Igor Mandrigin
81a02dd88c
to-merge added
2020-01-30 13:36:30 +02:00