mirror of
https://github.com/corda/corda.git
synced 2025-05-31 06:31:08 +00:00
Make SignedTransaction serializable and fix a test by adjusting constructor (#1420)
This commit is contained in:
parent
17f7e39183
commit
875cfabd50
@ -30,6 +30,7 @@ import java.util.function.Predicate
|
|||||||
* sign.
|
* sign.
|
||||||
*/
|
*/
|
||||||
// DOCSTART 1
|
// DOCSTART 1
|
||||||
|
@CordaSerializable
|
||||||
data class SignedTransaction(val txBits: SerializedBytes<CoreTransaction>,
|
data class SignedTransaction(val txBits: SerializedBytes<CoreTransaction>,
|
||||||
override val sigs: List<TransactionSignature>
|
override val sigs: List<TransactionSignature>
|
||||||
) : TransactionWithSignatures {
|
) : TransactionWithSignatures {
|
||||||
|
@ -52,8 +52,7 @@ class KotlinUtilsTest : TestDependencyInjectionBase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@CordaSerializable
|
@CordaSerializable
|
||||||
private class CapturingTransientProperty(prefix: String) {
|
private class CapturingTransientProperty(val prefix: String, val seed: Long = random63BitValue()) {
|
||||||
private val seed = random63BitValue()
|
|
||||||
val transientVal by transient { prefix + seed + random63BitValue() }
|
val transientVal by transient { prefix + seed + random63BitValue() }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user