grin/api
Antioch Peverell 89c06ddab7
client invalidateheader and resetchainhead (#3618)
* wip - "reset_head" via owner api functionality

* jsonrpc pass hash in as a string

* sort of works

* not a reorg if we simply accept several blocks at once

* remember to reset header MMR separately
as it is readonly when interacting with txhashset extension

* basic client integration
needs error handling etc.

* reset sync status when reset chain head

* track "denylist" (todo) and validate headers against this via the ctx

* track denylist (header hashes) in chain itself

* header denylist in play

* expose invalidateheader as client cmd

* rework reset_chain_head - rewind txhashset then header MMR
2021-04-29 11:05:05 +01:00
..
src client invalidateheader and resetchainhead (#3618) 2021-04-29 11:05:05 +01:00
tests Revert "Allow rest api to shutdown (#3614)" (#3625) 2021-03-29 14:11:10 -04:00
Cargo.toml Bump master version to 5.1.0-alpha.1 (#3510) 2021-01-04 15:29:50 +00:00