Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Account for multiple revisions of the same contract in the same block. If we only look at the data from ForEachFileContractElement we will only get the latest revision which will result in missing data in fcDBIDs (the map that connects file contract IDs and their revision numbers to the
file_contract_elements
id
in the database), which will cause addFileContracts or addFileContractRevisions to fail with "missing dbID". For example in block 22051: https://siascan.com/tx/293ba9948c6bf4ac4b639a6326421be234b73279934a9a0a4feda7012ca80722 and https://siascan.com/tx/60d7b56390e373c67066cb440f1821f46b2dd245e134556eaf4fac472a58d6e9