Просмотр исходного кода

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 год назад
Родитель
Сommit
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 {