https://github.com/tendermint/tendermint
Revision 6be0e138233a9d42667dcc8884fef098e3e733e6 authored by Callum Waters on 27 February 2020, 13:57:17 UTC, committed by GitHub on 27 February 2020, 13:57:17 UTC
closes #4469

Improved speed of cleanup by using SignedHeaderAfter instead of TrustedHeader to jump from header to header.

Prune() is now called when a new header and validator set are saved and is a function dealt by the database itself

## Commits:

* prune headers and vals

* modified cleanup and tests

* fixes after my own review

* implement Prune func

* make db ops concurrently safe

* use Iterator in SignedHeaderAfter

we should iterate from height+1, not from the end!

* simplify cleanup

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
1 parent 875b106
History
Tip revision: 6be0e138233a9d42667dcc8884fef098e3e733e6 authored by Callum Waters on 27 February 2020, 13:57:17 UTC
lite2: prune-headers (#4478)
Tip revision: 6be0e13
File Mode Size
.circleci
.github
DOCKER
abci
behaviour
blockchain
cmd
config
consensus
crypto
docs
evidence
libs
lite
lite2
mempool
mock
networks
node
p2p
privval
proxy
rpc
scripts
state
store
test
third_party
tools
types
version
.editorconfig -rw-r--r-- 280 bytes
.gitignore -rw-r--r-- 528 bytes
.golangci.yml -rw-r--r-- 1.1 KB
CHANGELOG.md -rw-r--r-- 143.2 KB
CHANGELOG_PENDING.md -rw-r--r-- 693 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 4.9 KB
CONTRIBUTING.md -rw-r--r-- 11.0 KB
LICENSE -rw-r--r-- 11.1 KB
Makefile -rw-r--r-- 7.9 KB
PHILOSOPHY.md -rw-r--r-- 7.5 KB
README.md -rw-r--r-- 7.5 KB
SECURITY.md -rw-r--r-- 1.7 KB
UPGRADING.md -rw-r--r-- 18.5 KB
Vagrantfile -rw-r--r-- 2.0 KB
appveyor.yml -rw-r--r-- 251 bytes
buf.yaml -rw-r--r-- 205 bytes
codecov.yml -rw-r--r-- 330 bytes
docker-compose.yml -rw-r--r-- 1.3 KB
dredd.yml -rw-r--r-- 700 bytes
go.mod -rw-r--r-- 1.2 KB
go.sum -rw-r--r-- 54.4 KB
tests.mk -rw-r--r-- 3.9 KB
tools.mk -rw-r--r-- 3.9 KB

README.md

back to top