Skip to content

Commit

Permalink
adjust output_number type
Browse files Browse the repository at this point in the history
  • Loading branch information
zolting committed Nov 22, 2024
1 parent 341159f commit 1215dab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blocks/bitcoin/src/inputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn collect_transaction_inputs(transaction: &Transaction, timestamp: &BlockTi
index: index as u32,
spent_block_height: 0, // TODO: Need to look up from previous tx
spent_tx_id: input.txid.clone(),
spent_output_number: input.vout as u64,
spent_output_number: input.vout,
value: 0.0, // TODO: Need to look up from previous tx
address: String::new(), // TODO: Need to look up from previous tx
r#type: String::new(), // TODO: Need to look up from previous tx
Expand Down
4 changes: 2 additions & 2 deletions blocks/bitcoin/src/pb/pinax.bitcoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ pub struct Input {
pub spent_block_height: u32,
#[prost(string, tag="8")]
pub spent_tx_id: ::prost::alloc::string::String,
#[prost(uint64, tag="9")]
pub spent_output_number: u64,
#[prost(uint32, tag="9")]
pub spent_output_number: u32,
#[prost(double, tag="10")]
pub value: f64,
#[prost(string, tag="11")]
Expand Down
2 changes: 1 addition & 1 deletion proto/bitcoin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ message Input {
uint32 index = 6;
uint32 spent_block_height = 7;
string spent_tx_id = 8;
uint64 spent_output_number = 9;
uint32 spent_output_number = 9;
double value = 10;
string address = 11;
string type = 12;
Expand Down

0 comments on commit 1215dab

Please sign in to comment.