fix: Even more refactoring to code and documentation

Thank you to @LLFourn and @danielabrozzoni for these suggestions.
This commit is contained in:
志宇
2023-08-01 18:27:24 +08:00
parent bea8e5aff4
commit b206a985cf
6 changed files with 44 additions and 45 deletions

View File

@@ -212,7 +212,7 @@ fn test_list_owned_txouts() {
(
*tx,
local_chain
.heights()
.blocks()
.get(&height)
.cloned()
.map(|hash| BlockId { height, hash })
@@ -232,7 +232,7 @@ fn test_list_owned_txouts() {
|height: u32,
graph: &IndexedTxGraph<ConfirmationHeightAnchor, KeychainTxOutIndex<String>>| {
let chain_tip = local_chain
.heights()
.blocks()
.get(&height)
.map(|&hash| BlockId { height, hash })
.unwrap_or_else(|| panic!("block must exist at {}", height));