diff --git a/blocks/bitcoin/src/inputs.rs b/blocks/bitcoin/src/inputs.rs index b12bc7f..1110c43 100644 --- a/blocks/bitcoin/src/inputs.rs +++ b/blocks/bitcoin/src/inputs.rs @@ -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 diff --git a/blocks/bitcoin/src/pb/pinax.bitcoin.rs b/blocks/bitcoin/src/pb/pinax.bitcoin.rs index 89c2a1c..e7ad085 100644 --- a/blocks/bitcoin/src/pb/pinax.bitcoin.rs +++ b/blocks/bitcoin/src/pb/pinax.bitcoin.rs @@ -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")] diff --git a/proto/bitcoin.proto b/proto/bitcoin.proto index 3b2ac37..1feb782 100644 --- a/proto/bitcoin.proto +++ b/proto/bitcoin.proto @@ -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;