Implement clone for some structs
This commit is contained in:
committed by
Jack Grigg
parent
885e09a82f
commit
b479981689
@@ -26,7 +26,7 @@ enum OpCode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A serialized script, used inside transparent inputs and outputs of a transaction.
|
/// 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>);
|
pub struct Script(pub Vec<u8>);
|
||||||
|
|
||||||
impl Script {
|
impl Script {
|
||||||
|
|||||||
@@ -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_INPUTS: usize = 2;
|
||||||
const ZC_NUM_JS_OUTPUTS: usize = 2;
|
const ZC_NUM_JS_OUTPUTS: usize = 2;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
pub struct OutPoint {
|
pub struct OutPoint {
|
||||||
hash: [u8; 32],
|
hash: [u8; 32],
|
||||||
n: u32,
|
n: u32,
|
||||||
@@ -81,7 +81,7 @@ impl TxIn {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct TxOut {
|
pub struct TxOut {
|
||||||
pub value: Amount,
|
pub value: Amount,
|
||||||
pub script_pubkey: Script,
|
pub script_pubkey: Script,
|
||||||
|
|||||||
Reference in New Issue
Block a user