Преглед изворни кода

darkfid/tx_store: update get_location to use u32 type for height

This commit changes the returned block height type from u64 to u32 in get_location to resolve deserialize Io(UnexpectedEof) error.
kalm пре 1 година
родитељ
комит
c14244b092
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/blockchain/tx_store.rs

+ 1 - 1
src/blockchain/tx_store.rs

@@ -225,7 +225,7 @@ impl TxStore {
         &self,
         tx_hashes: &[TransactionHash],
         strict: bool,
-    ) -> Result<Vec<Option<(u64, u16)>>> {
+    ) -> Result<Vec<Option<(u32, u16)>>> {
         let mut ret = Vec::with_capacity(tx_hashes.len());
 
         for tx_hash in tx_hashes {