Add a bunch of traits to Network so I can use it as a HashMap key
This commit is contained in:
parent
8cd8947cf3
commit
020295f8c9
|
@ -24,7 +24,7 @@ use network::serialize::Serializable;
|
||||||
use util::misc::prepend_err;
|
use util::misc::prepend_err;
|
||||||
|
|
||||||
/// The cryptocurrency to operate on
|
/// The cryptocurrency to operate on
|
||||||
#[deriving(PartialEq, Eq, Clone, Show)]
|
#[deriving(Encodable, Decodable, PartialEq, Eq, Clone, Show, Hash)]
|
||||||
pub enum Network {
|
pub enum Network {
|
||||||
/// Classic Bitcoin
|
/// Classic Bitcoin
|
||||||
Bitcoin,
|
Bitcoin,
|
||||||
|
|
Loading…
Reference in New Issue