Original comment: #1846 (comment)
SubmitProvenBatch enforces that a submitted batch's reference block must be present in the chain by fetching its header from the store. SubmitProvenTransaction does not check this, and the responsibility is delegated to the block-producer instead. We should align these.
No matter where we keep these, we should reduce store trips by keeping an LRU of recent block headers.
Original comment: #1846 (comment)
SubmitProvenBatchenforces that a submitted batch's reference block must be present in the chain by fetching its header from the store.SubmitProvenTransactiondoes not check this, and the responsibility is delegated to the block-producer instead. We should align these.No matter where we keep these, we should reduce store trips by keeping an LRU of recent block headers.