Remove `Sized` requirement from ConsensusEncodable
This commit is contained in:
parent
14db7ee902
commit
c67608a435
|
@ -37,7 +37,7 @@ use util::hash::Sha256dHash;
|
||||||
use network::serialize::{SimpleDecoder, SimpleEncoder};
|
use network::serialize::{SimpleDecoder, SimpleEncoder};
|
||||||
|
|
||||||
/// Data which can be encoded in a consensus-consistent way
|
/// Data which can be encoded in a consensus-consistent way
|
||||||
pub trait ConsensusEncodable<S: SimpleEncoder> : Sized {
|
pub trait ConsensusEncodable<S: SimpleEncoder> {
|
||||||
/// Encode an object with a well-defined format
|
/// Encode an object with a well-defined format
|
||||||
fn consensus_encode(&self, e: &mut S) -> Result<(), S::Error>;
|
fn consensus_encode(&self, e: &mut S) -> Result<(), S::Error>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue