From c0ac6c2b215fc853d4d979bb68fd13d8862c92ea Mon Sep 17 00:00:00 2001 From: danda Date: Wed, 7 Jul 2021 15:29:57 -0700 Subject: [PATCH] feat: remove IntoIterator requirement on SpendBook trait It may be too expensive for some trait implementers to support iterating eg over the network so we decided not to require it, at least for now. However the default SimpleSpendBook implementation does support iterating. --- src/mint.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mint.rs b/src/mint.rs index 782911a..e64da0b 100644 --- a/src/mint.rs +++ b/src/mint.rs @@ -27,9 +27,7 @@ pub type MintSignatures = BTreeMap -{ +pub trait SpendBook: std::fmt::Debug + Clone { type Error: std::error::Error; fn lookup(&self, dbc_hash: &DbcContentHash) -> Result, Self::Error>;