grin/chain/src
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
..
txhashset client invalidateheader and resetchainhead (#3618) 2021-04-29 11:05:05 +01:00
chain.rs client invalidateheader and resetchainhead (#3618) 2021-04-29 11:05:05 +01:00
error.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
lib.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
linked_list.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
pipe.rs client invalidateheader and resetchainhead (#3618) 2021-04-29 11:05:05 +01:00
store.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
txhashset.rs Update copyright year to 2021 (#3592) 2021-03-10 10:14:48 -05:00
types.rs client invalidateheader and resetchainhead (#3618) 2021-04-29 11:05:05 +01:00