3
0
mirror of https://github.com/Qortal/qortal.git synced 2025-02-12 10:15:49 +00:00

Fixed loading bug when a transaction's data size is smaller than the chunk size.

This commit is contained in:
CalDescent 2021-11-03 21:54:57 +00:00
parent e50fd786da
commit b861b2dffb

View File

@ -282,7 +282,7 @@ public class ArbitraryDataReader {
// Load data file(s) // Load data file(s)
ArbitraryDataFile arbitraryDataFile = ArbitraryDataFile.fromHash(digest); ArbitraryDataFile arbitraryDataFile = ArbitraryDataFile.fromHash(digest);
if (!arbitraryDataFile.exists()) { if (!arbitraryDataFile.exists()) {
if (!arbitraryDataFile.allChunksExist(chunkHashes)) { if (!arbitraryDataFile.allChunksExist(chunkHashes) || chunkHashes == null) {
// Ask the arbitrary data manager to fetch data for this transaction // Ask the arbitrary data manager to fetch data for this transaction
ArbitraryDataManager.getInstance().fetchDataForSignature(transactionData.getSignature()); ArbitraryDataManager.getInstance().fetchDataForSignature(transactionData.getSignature());