Make SignedTransaction serializable and fix a test by adjusting constructor (#1420)

This commit is contained in:
Rick Parker 2017-09-05 11:34:55 +01:00 committed by GitHub
parent 17f7e39183
commit 875cfabd50
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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() }
} }
} }