MaybeSerializedSignedTransaction

class MaybeSerializedSignedTransaction(val id: SecureHash, val serialized: SerializedBytes<SignedTransaction>?, val nonSerialised: SignedTransaction?, val inFlight: Boolean) : NamedByHash

In the words of Matt working code is more important then pretty code. This class that contains code that may be serialized. If it were always serialized then the local disk fetch would need to serialize then de-serialize which wastes time. However over the wire we get batch fetch items serialized. This is because we need to get the exact length of the objects to pack them into the 10MB max message size buffer. We do not want to serialize them multiple times so it's a lot more efficient to send the byte stream.

Constructors

Link copied to clipboard
constructor(id: SecureHash, serialized: SerializedBytes<SignedTransaction>?, nonSerialised: SignedTransaction?)
constructor(id: SecureHash, serialized: SerializedBytes<SignedTransaction>?, nonSerialised: SignedTransaction?, inFlight: Boolean)

Properties

Link copied to clipboard
open override val id: SecureHash
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard