bitcoin-s/core
Chris Stewart 44e4ab9a7e 2020 03 15 chainhandler getnancestor (#1247)
* Rename BlockHeaderDAO.getNChildren() to BlockHeaderDAO.getNAncestor() as that is what it actually does

* This changes the behavior of BlockHeaderDAO.getNAncestors from the previous implementation which just fetched headers in between two heights, to actually validating the headers that are fetched from the database with Blockchain.reconstructFromheaders()

* Run scalafmt

* Replace BlockHeader.getNAncestors call to Blockchain.reconstructFromHeaders() with Blockchain.connectWalkBackwards() so that we don't do full POW validation from the database, just make sure the headers connect to avoid reorg problems. Also add some more informative logs

* Address Roman's code review
2020-03-18 05:51:31 -05:00
..
src 2020 03 15 chainhandler getnancestor (#1247) 2020-03-18 05:51:31 -05:00
core.sbt Refactor sbt and make Eclair tests download bitcoind (#727) 2019-08-30 15:11:52 -05:00
README.md WIP: Docusaurus website (#465) 2019-05-14 18:05:14 -05:00

See the core module section on the Bitcoin-S website.