Add get_block_transactions_possible which automatically filters invalid TXs

Adds Clone to the various error types, which they already should've had.
This commit is contained in:
Luke Parker
2022-05-28 05:08:37 -04:00
parent ba032cca4a
commit e950b9682b
5 changed files with 70 additions and 30 deletions

View File

@@ -15,7 +15,7 @@ pub mod sign;
pub mod tests;
/// Set of errors for curve-related operations, namely encoding and decoding
#[derive(Error, Debug)]
#[derive(Clone, Error, Debug)]
pub enum CurveError {
#[error("invalid length for data (expected {0}, got {0})")]
InvalidLength(usize, usize),
@@ -150,7 +150,7 @@ impl MultisigParams {
pub fn i(&self) -> u16 { self.i }
}
#[derive(Error, Debug)]
#[derive(Clone, Error, Debug)]
pub enum FrostError {
#[error("a parameter was 0 (required {0}, participants {1})")]
ZeroParameter(u16, u16),