mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
The assert in LedgerHistory.cpp was incorrect since getLedgerByHash() can return a null object. The assert has been seen to fire inappropriately during online_delete. The assert in LedgerMaster.cpp was simply misguided. If a null hash were returned by getLedgerHashForHistory(), then we should not forward that hash to peers. The assert only fires in a debug build, so a release build would forward the request for a null hash to peers.