Change places in code where instead of transaction id hash is used.

This commit is contained in:
Katarzyna Streich 2016-10-13 18:16:00 +01:00
parent 6b5ad92f9b
commit e823e11e85
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ data class SignedTransaction(val txBits: SerializedBytes<WireTransaction>,
val tx: WireTransaction by lazy { WireTransaction.deserialize(txBits) }
/** A transaction ID is the hash of the [WireTransaction]. Thus adding or removing a signature does not change it. */
override val id: SecureHash get() = txBits.hash
override val id: SecureHash get() = tx.id
class SignaturesMissingException(val missing: Set<PublicKey>, val descriptions: List<String>, override val id: SecureHash) : NamedByHash, SignatureException() {
override fun toString(): String {

View File

@ -250,7 +250,7 @@ data class TestLedgerDSLInterpreter private constructor (
labelToOutputStateAndRefs[label] = wireTransaction.outRef(index)
}
transactionMap[wireTransaction.serialized.hash] =
transactionMap[wireTransaction.id] =
WireTransactionWithLocation(transactionLabel, wireTransaction, transactionLocation)
return wireTransaction