Implement clone for some structs

This commit is contained in:
Aditya Kulkarni 2019-09-12 14:26:43 -07:00 committed by Jack Grigg
parent 885e09a82f
commit b479981689
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ enum OpCode {
}
/// A serialized script, used inside transparent inputs and outputs of a transaction.
#[derive(Debug, Default)]
#[derive(Clone, Debug, Default)]
pub struct Script(pub Vec<u8>);
impl Script {

View File

@ -21,7 +21,7 @@ const PHGR_PROOF_SIZE: usize = (33 + 33 + 65 + 33 + 33 + 33 + 33 + 33);
const ZC_NUM_JS_INPUTS: usize = 2;
const ZC_NUM_JS_OUTPUTS: usize = 2;
#[derive(Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct OutPoint {
hash: [u8; 32],
n: u32,
@ -81,7 +81,7 @@ impl TxIn {
}
}
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct TxOut {
pub value: Amount,
pub script_pubkey: Script,