Skip to content

Commit

Permalink
Rename Transaction variants according to version.
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Nov 20, 2019
1 parent 28f38bb commit 965b7da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zebra-chain/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pub struct SaplingJoinSplitData {
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Transaction {
/// A fully transparent transaction (`version = 1`).
Transparent {
V1 {
/// The transparent inputs to the transaction.
inputs: Vec<TransparentInput>,
/// The transparent outputs from the transaction.
Expand All @@ -160,7 +160,7 @@ pub enum Transaction {
lock_time: LockTime,
},
/// A Sprout transaction (`version = 2`).
Sprout {
V2 {
/// The transparent inputs to the transaction.
inputs: Vec<TransparentInput>,
/// The transparent outputs from the transaction.
Expand All @@ -172,7 +172,7 @@ pub enum Transaction {
joinsplit_data: Option<LegacyJoinSplitData>,
},
/// An Overwinter transaction (`version = 3`).
Overwinter {
V3 {
/// The transparent inputs to the transaction.
inputs: Vec<TransparentInput>,
/// The transparent outputs from the transaction.
Expand All @@ -186,7 +186,7 @@ pub enum Transaction {
joinsplit_data: Option<LegacyJoinSplitData>,
},
/// A Sapling transaction (`version = 4`).
Sapling {
V4 {
/// The transparent inputs to the transaction.
inputs: Vec<TransparentInput>,
/// The transparent outputs from the transaction.
Expand Down

0 comments on commit 965b7da

Please sign in to comment.