public class FetchTransactionsFlow
extends FetchDataFlow
Given a set of tx hashes (IDs), either loads them from local disk or asks the remote peer to provide them.
A malicious response in which the data provided by the remote peer does not hash to the requested hash results in
exception FetchDataFlow.DownloadedVsRequestedDataMismatch
being thrown. If the remote peer doesn't have an entry, it
results in a exception FetchDataFlow.HashNotFound
exception. Note that returned transactions are not inserted into
the database, because it's up to the caller to actually verify the transactions are valid.
FetchDataFlow.Request, FetchDataFlow.Result<T extends NamedByHash>
Constructor and Description |
---|
FetchTransactionsFlow(java.util.Set<? extends net.corda.core.crypto.SecureHash> requests,
Party otherSide)
Given a set of tx hashes (IDs), either loads them from local disk or asks the remote peer to provide them.
|
Modifier and Type | Method and Description |
---|---|
SignedTransaction |
load(SecureHash txid) |
call, convert, getOtherSide, getRequests, load, maybeWriteToDisk
call, getCounterpartyMarker, getLogger, getProgressTracker, getRunId, getServiceHub, getStateMachine, receive, send, sendAndReceive, setStateMachine, subFlow, subFlow, track, waitForLedgerCommit
public FetchTransactionsFlow(java.util.Set<? extends net.corda.core.crypto.SecureHash> requests, Party otherSide)
Given a set of tx hashes (IDs), either loads them from local disk or asks the remote peer to provide them.
A malicious response in which the data provided by the remote peer does not hash to the requested hash results in
exception FetchDataFlow.DownloadedVsRequestedDataMismatch
being thrown. If the remote peer doesn't have an entry, it
results in a exception FetchDataFlow.HashNotFound
exception. Note that returned transactions are not inserted into
the database, because it's up to the caller to actually verify the transactions are valid.
public SignedTransaction load(SecureHash txid)